Dates

A

Anthony

In column A the date is entered
In column B the date is copied and formatted as dddd ie full name of day of
week.
I wish to create a formula: if(B2 = "Saturday", etc etc) Unfortunately it
will not work because the entry in column B is not text. Is there any way I
can get the formula to recognise days of the week?
 
W

William

Hi Anthony

With Sunday being equal to 1, Monday being equal to 2 and so on........
=IF(WEEKDAY(B2)=5, "Its Thursday", "Its not Thursday")

You don't actually need column B for this as Column A would also return the
same result.
=IF(WEEKDAY(A2)=5, "Its Thursday", "Its not Thursday")

--
XL2002
Regards

William

(e-mail address removed)

| In column A the date is entered
| In column B the date is copied and formatted as dddd ie full name of day
of
| week.
| I wish to create a formula: if(B2 = "Saturday", etc etc) Unfortunately it
| will not work because the entry in column B is not text. Is there any way
I
| can get the formula to recognise days of the week?
 

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