SOLVED

Excel Date Mapping

Copper Contributor

Screenshot 2023-03-23 192918.png

I am trying to write some logic to populate the yellow above. Have tried various options but keep hitting blocks. Anyone able to help?

 

 

4 Replies

@jamief1503 

Assuming that your screenshot has A1 as upper left cell, enter the following formula in B9, then fill down and to the right:

 

=IF(SUMPRODUCT(($A$2:$A$6=$A9)*($B$2:$B$6<=B$8)*($C$2:$C$6>=B$8)),"H","")

@jamief1503 

Perhaps with COUNTIFS:

=IF(COUNTIFS(employee,$A9,Start,"<="&B$8,End,">="&B$8)>0,"H","")
best response confirmed by jamief1503 (Copper Contributor)
Solution

@Patrick2788 thank you for this, works a treat and I understand the logic 👍

You're welcome! Glad I could help.
1 best response

Accepted Solutions
best response confirmed by jamief1503 (Copper Contributor)
Solution

@Patrick2788 thank you for this, works a treat and I understand the logic 👍

View solution in original post