Please if someone can help, I have 31 rows in column-A starting at A9 (numbered 1 to 31)and in row 29 to 31 has this formula: =IF(OR(A36="",DAY(EOMONTH($L$4,0))=A36),"",A36+1), that checks the number of days based on referenced date in cell L4 and define the last day of month either 29, 30 or 31.
column-B has this formula: =CHOOSE(WEEKDAY(DATE(YEAR($L$4),MONTH($L$4),$A9),{1,2,3,4,5,6,7}),"sun","mon","tue","wed","thu","fri","sat") that provides the appropriate day of the week depending on referenced date in cell L4.
My problem is if the days of month in column-A are 29 or 30, then the column-B for the blanks cell in column-A giving an error #VALUE!.
I tried to add ‘IF’ function to my above formula for column-B but unable to write the correct formula.
Hope this make sense and I can get some help.
Thanks to all
column-B has this formula: =CHOOSE(WEEKDAY(DATE(YEAR($L$4),MONTH($L$4),$A9),{1,2,3,4,5,6,7}),"sun","mon","tue","wed","thu","fri","sat") that provides the appropriate day of the week depending on referenced date in cell L4.
My problem is if the days of month in column-A are 29 or 30, then the column-B for the blanks cell in column-A giving an error #VALUE!.
I tried to add ‘IF’ function to my above formula for column-B but unable to write the correct formula.
Hope this make sense and I can get some help.
Thanks to all