Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Day of week question

I have a monthly time sheet. Each sheet represents a week of the
month. An initial date is entered and the rest of the dates for the
month fill in.

I am trying to verify that the date is actually a Sunday. J4 is
custom formatted as "mmmm" and displays correctly based on the date
entered. This is the formula I am using, but it always returns false.


=IF(AND(J4<"Sunday", J4 < ""), "Error! The date you entered is not
a Sunday", "")

Is there a way to do this?


tia

jp
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Day of week question

Perfect.

Thank you very much!

On Sat, 02 Sep 2006 16:39:06 -0500, Dave Peterson
wrote:

=if(weekday(j4)=1,"Sunday","Not a Sunday")

or

=if(text(j4,"dddd")="Sunday", ....

(You meant dddd not mmmm, right?



wrote:

I have a monthly time sheet. Each sheet represents a week of the
month. An initial date is entered and the rest of the dates for the
month fill in.

I am trying to verify that the date is actually a Sunday. J4 is
custom formatted as "mmmm" and displays correctly based on the date
entered. This is the formula I am using, but it always returns false.

=IF(AND(J4<"Sunday", J4 < ""), "Error! The date you entered is not
a Sunday", "")

Is there a way to do this?

tia

jp


Reply
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
Week Numbers (Counting Backwards) JulieS Excel Discussion (Misc queries) 4 July 31st 06 08:37 PM
Can anyone shorten this one. (not overly clear on array usage) Down'd Pilot Excel Worksheet Functions 4 June 3rd 06 03:45 PM
Line or bar graphs for tracking stocks profit and loss. Mocity Charts and Charting in Excel 1 January 21st 05 01:21 AM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM
first week of year - according to european standard soren Excel Worksheet Functions 3 November 2nd 04 07:21 PM


All times are GMT +1. The time now is 12:53 PM.

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

About Us

"It's about Microsoft Excel"