So Moons.B3 = 01/11/2024
Moons.B4 = 02/09/2024
These are dates of the new moon each month.
I have a calendar that displays 7 day per row, but based on the moon not julian calendar
The first week starts B4, ends H4 (Jan 11, Jan 12, Jan 13…Jan 17)
Second week starts B5, ends H5 etc
I used this function to check the new moon date, and if the current date is less than the new moon date, to write in the next day in the cell, otherwise do nothing
=IF(DATEVALUE(B4)<Moons.$B4,TEXT(B4+1,“MMM DD”),"")
Shows Jan 12
=IF(DATEVALUE(C8)<Moons.$B4,TEXT(C8+1,“MMM DD”),"")
Show Feb 9
C8 is Feb 9, which is the next new moon, my intention was that it should be blank, but instead it displays “Feb 9”, and every cell after that also shows a date, when it should be blank
lbo 7.6.4.1 windows