Coding for a specific day

C

cmatera

I had a question about dates and times before and you all were very
helpful so thank you - here's another question :)

Is there a way to code in excel for a specific day... like

If the day = sat or sunday then do XXXXX

Also is there a good..site that lists a lot of date specific
functions?

Thanks for the help!

-Chris
 
T

T. Valko

If the day = sat or sunday then do XXXXX

If what day? Today's date? Or a date in a cell?

If the day is today:

=IF(WEEKDAY(TODAY(),2)>5,"do this","do that")

If the day is a date in a cell:

=IF(WEEKDAY(A1,2)>5,"do this","do that")
 

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