#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 385
Default Date question

Hello,

I am trying to create a formula that will give the result of "friday" if
payday falls on a Saturday or Sunday. I am assuming that I need an If/Then
function, but I am not sure how to do this with dates. For example, If
payday is on 8/1/2009, it will give me the result of "Friday" Thank you very
much for your help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Date question

hi
with the date in A1, in B1 enter =Text(A1,"dddd")

regards
FSt1

"jennifer" wrote:

Hello,

I am trying to create a formula that will give the result of "friday" if
payday falls on a Saturday or Sunday. I am assuming that I need an If/Then
function, but I am not sure how to do this with dates. For example, If
payday is on 8/1/2009, it will give me the result of "Friday" Thank you very
much for your help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 385
Default Date question

I am not sure what "dddd" means....

"FSt1" wrote:

hi
with the date in A1, in B1 enter =Text(A1,"dddd")

regards
FSt1

"jennifer" wrote:

Hello,

I am trying to create a formula that will give the result of "friday" if
payday falls on a Saturday or Sunday. I am assuming that I need an If/Then
function, but I am not sure how to do this with dates. For example, If
payday is on 8/1/2009, it will give me the result of "Friday" Thank you very
much for your help!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default Date question

jennifer wrote:
Hello,

I am trying to create a formula that will give the result of "friday" if
payday falls on a Saturday or Sunday. I am assuming that I need an If/Then
function, but I am not sure how to do this with dates. For example, If
payday is on 8/1/2009, it will give me the result of "Friday" Thank you very
much for your help!


Is this what you want?

=IF(WEEKDAY(A1,2)=6,"Friday","")

Of course, I do not know when your paydays are.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Date question

hi
it the format.
if you enter"dddd", it will say Friday
if you enter "ddd", it will say Fri
if you enter "mmmm", it will July
if yo enter "mmm" , it will say jul
you did specify the full day name and not just the abriviation.
read up on the text function in help.
Regards
FSt1

"jennifer" wrote:

I am not sure what "dddd" means....

"FSt1" wrote:

hi
with the date in A1, in B1 enter =Text(A1,"dddd")

regards
FSt1

"jennifer" wrote:

Hello,

I am trying to create a formula that will give the result of "friday" if
payday falls on a Saturday or Sunday. I am assuming that I need an If/Then
function, but I am not sure how to do this with dates. For example, If
payday is on 8/1/2009, it will give me the result of "Friday" Thank you very
much for your help!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 385
Default Date question

Yes, Thank you very much! I did not have the If/Then statement just right...

"smartin" wrote:

jennifer wrote:
Hello,

I am trying to create a formula that will give the result of "friday" if
payday falls on a Saturday or Sunday. I am assuming that I need an If/Then
function, but I am not sure how to do this with dates. For example, If
payday is on 8/1/2009, it will give me the result of "Friday" Thank you very
much for your help!


Is this what you want?

=IF(WEEKDAY(A1,2)=6,"Friday","")

Of course, I do not know when your paydays are.

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
Date question M Thompson Excel Discussion (Misc queries) 4 June 8th 09 11:41 AM
Date Question Pat Rice Excel Worksheet Functions 3 October 30th 08 03:08 PM
DATE Question Terry Excel Worksheet Functions 1 October 11th 07 08:16 PM
Date Question Andrew Mackenzie Excel Discussion (Misc queries) 7 September 21st 07 04:30 PM
DATE Question jlynn2000 Excel Discussion (Misc queries) 6 December 8th 06 03:43 PM


All times are GMT +1. The time now is 09:37 AM.

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"