LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default IF Statement evaluating Dates and Weekdays

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


Replace @mailinator.com with @tiscali.co.uk


"jwfullerton" wrote in message
...
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!



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round dates to weekdays Nan Excel Worksheet Functions 8 November 11th 09 01:53 AM
Difference (weekdays) between two dates ant1983 Excel Worksheet Functions 5 October 29th 07 08:37 PM
dates for weekdays in non-contiguous cells spence Excel Worksheet Functions 1 June 10th 07 07:39 PM
IF statement with Weekends vs. weekdays edwardpestian Excel Worksheet Functions 4 May 7th 06 09:13 PM
How do i count number of weekdays between two dates? Sanjay Shah Excel Worksheet Functions 1 April 4th 05 04:40 PM


All times are GMT +1. The time now is 05:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"