Hi, I am trying to create a formula (lets say the formula is in cell B15,) that will look at a date that I have in a cell e.g. cell B2 shows "2" which is formulated using =WORKDAY(DATE(A2,A3,0), 1). Where A2 has "2023" and A3 has "1" which signifies the first month of the year. I then want the formula to look at ranges of cells e.g. D29:M29, D33:M33, D35:M35 and D38:M38 (I will be doing multiple formulas, therefore some may have more and some may have less ranges) and if any of these cells contain the value 2, I would like B15 to show up as "holiday".
I have attempted to try this and one formula works but only work if it is looking at one range of data.
=IF(ISNUMBER(MATCH(DAY(B2),D25:M25,0)),"Holiday","")
if any cell from D25 to M25 contains 2, Holiday will show.
Another formula that works is =IF(SUMPRODUCT((J28:M28=DAY(F2))+(J31:M31=DAY(F2)))>0,"Holiday",""), but this only works for 2 ranges of data.
If anyone is able to assist me, that would be amazing
I have attempted to try this and one formula works but only work if it is looking at one range of data.
=IF(ISNUMBER(MATCH(DAY(B2),D25:M25,0)),"Holiday","")
if any cell from D25 to M25 contains 2, Holiday will show.
Another formula that works is =IF(SUMPRODUCT((J28:M28=DAY(F2))+(J31:M31=DAY(F2)))>0,"Holiday",""), but this only works for 2 ranges of data.
If anyone is able to assist me, that would be amazing