get day of week from date?

L

lalani

I'm trying to find a way to return the day of week (mon-fri) from a
date.

Additionally, is there vb code or a formula to shade cells if they are
certain days (such as sat/sun)?

TIA
 
H

Harlan Grove

I'm trying to find a way to return the day of week (mon-fri) from a
date.

See WEEKDAY function in online help.
Additionally, is there vb code or a formula to shade cells if they are
certain days (such as sat/sun)?

See conditional formatting in online help.
 
J

J.E. McGimpsey

One way:

A1: 10 December 2003
A2: = A1 ===> Wed

when you format A2 with Format/Cells/Number/Custom ddd

For shading, take a look at Conditional formatting in XL Help. One
way:

CF1: Formula is =WEEKDAY(A1,3)>=5
 

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