PC Review


Reply
Thread Tools Rate Thread

Coding for a specific day

 
 
cmatera
Guest
Posts: n/a
 
      18th Aug 2008
I had a question about dates and times before and you all were very
helpful so thank you - here's another question :-)

Is there a way to code in excel for a specific day... like

If the day = sat or sunday then do XXXXX

Also is there a good..site that lists a lot of date specific
functions?

Thanks for the help!

-Chris


 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      18th Aug 2008
>If the day = sat or sunday then do XXXXX

If what day? Today's date? Or a date in a cell?

If the day is today:

=IF(WEEKDAY(TODAY(),2)>5,"do this","do that")

If the day is a date in a cell:

=IF(WEEKDAY(A1,2)>5,"do this","do that")


--
Biff
Microsoft Excel MVP


"cmatera" <(E-Mail Removed)> wrote in message
news:be549ff2-18b3-4db4-ba02-(E-Mail Removed)...
>I had a question about dates and times before and you all were very
> helpful so thank you - here's another question :-)
>
> Is there a way to code in excel for a specific day... like
>
> If the day = sat or sunday then do XXXXX
>
> Also is there a good..site that lists a lot of date specific
> functions?
>
> Thanks for the help!
>
> -Chris
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
coding help to set a specific time frame jzamilpa3@yahoo.com Microsoft Excel Programming 0 12th May 2008 07:16 PM
How do i set up color coding emails from specific senders? =?Utf-8?B?bGV4eV9zY2huYWNraWU=?= Microsoft Outlook Discussion 6 30th Oct 2007 01:31 PM
Looking for coding help for a specific design =?Utf-8?B?Q1A=?= Microsoft Access Form Coding 3 27th Apr 2007 04:37 PM
IIF VBA coding to open a specific form depending on field value =?Utf-8?B?TWF0dHk=?= Microsoft Access Form Coding 3 30th May 2006 03:09 PM
Color-coding msgs sent to specific address TechWriterMpls Microsoft Outlook 0 25th Mar 2004 02:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:36 AM.