IF Statement evaluating Dates and Weekdays

J

jwfullerton

I have the date in cell B7 (shows 1 for 1 Sept 08). In cell B6 I have the
corresponding day of the week (formula in B6 is =B7, formatted to show ddd).

B C D
6 Mon Tue Wed
7 1 2 3
8 450 450 450


In cell B8, I want to input a formula to evaluate B6. If B6 equals Saturday
or Sunday, then return " ", otherwise return 7.5*60.

Can anyone help me with this?

Thanks!
 
J

jwfullerton

Sean,

Thanks for the formula. It is returning the FALSE response (7.5*60) even on
the days when the cells are Saturday or Sunday. Any suggestions?
 
S

Sandy Mann

Are the values in Row 7 dates? If not I would make them dates. Enter
1/9/08 in B7 and drag across on the fill handle to fill in all dates in
September. Then format the cells as "d" (without the quotes) to give the
nunbers.

Next enter =B7 in cell B6 and format as "ddd" (again without the quotes),
and drag along on the fill handle to give the day names.

In B8 I would then use the formula:

=IF(WEEKDAY(B7,2)>5,"",7.5*60)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com 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