Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KAA
 
Posts: n/a
Default Need help with a date function formula


I have an excel sheet header which includes a date, the date is to
represent yesterday's date ( =Today()-1 ), which then would come into
the spread sheet as August 8th, 2005, assuming today was August 9th.
The problem is on days like Monday when the previous day was sunday,
how can I make the formula output the Friday before the Monday instead
of Sunday ...example on Monday, August 11th, the formula would read
August 10th, I need it to read August 8th...? Please help, thanks


--
KAA
------------------------------------------------------------------------
KAA's Profile: http://www.excelforum.com/member.php...o&userid=26755
View this thread: http://www.excelforum.com/showthread...hreadid=400071

  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=WORKDAY(TODAY(),-1)

....which requires that the Analysis ToolPak be enabled...

Tools Add-Ins and check Analysis ToolPak

Hope this helps!

In article ,
KAA wrote:

I have an excel sheet header which includes a date, the date is to
represent yesterday's date ( =Today()-1 ), which then would come into
the spread sheet as August 8th, 2005, assuming today was August 9th.
The problem is on days like Monday when the previous day was sunday,
how can I make the formula output the Friday before the Monday instead
of Sunday ...example on Monday, August 11th, the formula would read
August 10th, I need it to read August 8th...? Please help, thanks

  #3   Report Post  
David Hepner
 
Posts: n/a
Default

Try this:

=IF(WEEKDAY(NOW()-1)=1,(NOW()-3),NOW()-1)

"KAA" wrote:


I have an excel sheet header which includes a date, the date is to
represent yesterday's date ( =Today()-1 ), which then would come into
the spread sheet as August 8th, 2005, assuming today was August 9th.
The problem is on days like Monday when the previous day was sunday,
how can I make the formula output the Friday before the Monday instead
of Sunday ...example on Monday, August 11th, the formula would read
August 10th, I need it to read August 8th...? Please help, thanks


--
KAA
------------------------------------------------------------------------
KAA's Profile: http://www.excelforum.com/member.php...o&userid=26755
View this thread: http://www.excelforum.com/showthread...hreadid=400071


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
Need to use IF formula with a Date cell Eric Mc Excel Worksheet Functions 2 June 8th 05 12:38 AM
Using date function in an if statement M Smith Excel Worksheet Functions 2 March 30th 05 06:53 PM
Date Formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 17th 04 07:25 PM
Date formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 16th 04 12:41 AM
how to enter a formula using column() function for a range Mike Peter Excel Worksheet Functions 6 December 8th 04 07:11 AM


All times are GMT +1. The time now is 09:16 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"