NARAYANK991
Excel Ninja
Hi Jamie ,
Having both the holidays listed in the same cell is either difficult or impossible ; I do not know which !
You can have the multiple holidays listed in successive columns , an example of which is in the uploaded file Question_1.xlsx ; with reference to the latest formulae , which you have put in column D , you can have additional formulae in columns E , F ,... depending on how many additional holidays will be present in any one week.
An example would be :
=IFERROR(INDEX($L$3:$L$12,SMALL(IF(ISNA(MATCH($M$3:$M$12,ROW(INDEX($B$3:$B$65536,$B3-2):INDEX($B$3:$B$65536,$B3+7-1-2)),0)),999,ROW($M$3:$M$12)-MIN(ROW($M$3:$M$12))+1),2)),"")
where the MIN function has been replaced by the SMALL function , and the 2 which is in RED , signifies the second holiday in the same week ; if there will be more than 2 such holidays in the same week , you can extend this formula to columns F , G ,... by changing the 2 to 3 , 4 ,...
Check the uploaded file.
Narayan
Having both the holidays listed in the same cell is either difficult or impossible ; I do not know which !
You can have the multiple holidays listed in successive columns , an example of which is in the uploaded file Question_1.xlsx ; with reference to the latest formulae , which you have put in column D , you can have additional formulae in columns E , F ,... depending on how many additional holidays will be present in any one week.
An example would be :
=IFERROR(INDEX($L$3:$L$12,SMALL(IF(ISNA(MATCH($M$3:$M$12,ROW(INDEX($B$3:$B$65536,$B3-2):INDEX($B$3:$B$65536,$B3+7-1-2)),0)),999,ROW($M$3:$M$12)-MIN(ROW($M$3:$M$12))+1),2)),"")
where the MIN function has been replaced by the SMALL function , and the 2 which is in RED , signifies the second holiday in the same week ; if there will be more than 2 such holidays in the same week , you can extend this formula to columns F , G ,... by changing the 2 to 3 , 4 ,...
Check the uploaded file.
Narayan