Checking crossword numbers

S

shanjar

I want to write a formula that works out what the crossword number in a
daily newspaper should be.

For example, say the crossword number for today is 4000 and today is
Friday.

What formula would return tomorrow's (Saturday's) number (4001)
correctly?

And - most crucially - what formula would return Monday' correct
crossword number - 4002 - as there is no daily newspaper on a Sunday?

Help very gratefully received. I'm going round in circles...
 
D

Dave O

Assuming the puzzles are numbered sequentially, one per day, you could
try this:
Enter today's date in cell A1, and the number 4000 in B1.
In A2 enter the formula =A1+1, and in cell B2 enter the formula
=B1+(A2-A1)
You may need to format B2 as a number, because Excel may try to format
it as a date.
 
S

Sandy Mann

With the date in B2 then

=B2-INT((B2-38809)/7)-34814

seems to return the right number and if the date is a Sunday it returns the
previous day's (ie Saturday) date so if your list misses out Sundays the
formula will do so also.

If you have a complete list of dates then use:

=IF(WEEKDAY(B2,1)=1,"No paper",B2-INT((B2-38809)/7)-34814)

--
HTH

Sandy
In Perth, the ancient capital of Scotland

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top