A while ago I asked for help in compiling a formula that would act as a daily check on puzzle numbers that appear in a newspaper.
The daily crossword would appear from Monday to Saturday (but not on Sundays or on Christmas Day)
The formula some genius in the forum came up with was:
=IF((A1)="","",IF(OR(WEEKDAY((A1))=1,TEXT((A1),"d-m")="25-12"),"0",24962+SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(DATE(2006,4,11)&":"&(A1))))<>1),--(TEXT(ROW(INDIRECT(DATE(2006,4,11)&":"&(A1))),"d-m")<>"25-12"))))
In Cell A1 I would input the date.
For today's date, this would produce the answer that the correct crossword should be number 25,720.
Now I need help to revise this formula because the puzzle appears only on the following days: Tues Wed Thurs Fri
It will not appear on Mon, Sat and Sun nor will it appear on Christmas Day.
Thus, next week the puzzle numbers should appear as:
Today (25,720) Sat () Sun () Mon () Tues (25,721)
Wed (25,722) Thu (25,723) Fri (25,724) Sat () Sun () Mon ()
Tues (25,725) Wed (25,726) etc
Anyone up for the challenge?
Many thanks....
The daily crossword would appear from Monday to Saturday (but not on Sundays or on Christmas Day)
The formula some genius in the forum came up with was:
=IF((A1)="","",IF(OR(WEEKDAY((A1))=1,TEXT((A1),"d-m")="25-12"),"0",24962+SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(DATE(2006,4,11)&":"&(A1))))<>1),--(TEXT(ROW(INDIRECT(DATE(2006,4,11)&":"&(A1))),"d-m")<>"25-12"))))
In Cell A1 I would input the date.
For today's date, this would produce the answer that the correct crossword should be number 25,720.
Now I need help to revise this formula because the puzzle appears only on the following days: Tues Wed Thurs Fri
It will not appear on Mon, Sat and Sun nor will it appear on Christmas Day.
Thus, next week the puzzle numbers should appear as:
Today (25,720) Sat () Sun () Mon () Tues (25,721)
Wed (25,722) Thu (25,723) Fri (25,724) Sat () Sun () Mon ()
Tues (25,725) Wed (25,726) etc
Anyone up for the challenge?
Many thanks....
Last edited: