#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default Today()-1

Hello I have a cell formatted as =TODAY()-1 which is fine. The problem is
on Monday I want Friday's date, and of course, I get Sunday's date. How can I
correct this? thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Today()-1

=IF(WEEKDAY(TODAY())=2,TODAY()-3,TODAY()-1)

--
Gary's Student


"Wanna Learn" wrote:

Hello I have a cell formatted as =TODAY()-1 which is fine. The problem is
on Monday I want Friday's date, and of course, I get Sunday's date. How can I
correct this? thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Today()-1

What does this mean in English: IF today is Monday, then TODAY minus 3, ELSE
TODAY minus 1?
--
Brevity is the soul of wit.


"Gary''s Student" wrote:

=IF(WEEKDAY(TODAY())=2,TODAY()-3,TODAY()-1)

--
Gary's Student


"Wanna Learn" wrote:

Hello I have a cell formatted as =TODAY()-1 which is fine. The problem is
on Monday I want Friday's date, and of course, I get Sunday's date. How can I
correct this? thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Today()-1

Get the previous WORKING day.

If today is a Monday, subtract 3 days from it so as to avoid Saturday and
Sunday, otherwise just subtract 1 day.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Dave F" wrote in message
...
What does this mean in English: IF today is Monday, then TODAY minus 3,

ELSE
TODAY minus 1?
--
Brevity is the soul of wit.


"Gary''s Student" wrote:

=IF(WEEKDAY(TODAY())=2,TODAY()-3,TODAY()-1)

--
Gary's Student


"Wanna Learn" wrote:

Hello I have a cell formatted as =TODAY()-1 which is fine. The

problem is
on Monday I want Friday's date, and of course, I get Sunday's date.

How can I
correct this? thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Today()-1


=WORKDAY(TODAY(),-1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Wanna Learn" wrote in message
...
Hello I have a cell formatted as =TODAY()-1 which is fine. The problem

is
on Monday I want Friday's date, and of course, I get Sunday's date. How

can I
correct this? thanks





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default Today()-1

Gary Thank you
and Dave F
an extra thanks for the "English" explanation. Since the only way to learn
is to understand what is being said.
"Dave F" wrote:

What does this mean in English: IF today is Monday, then TODAY minus 3, ELSE
TODAY minus 1?
--
Brevity is the soul of wit.


"Gary''s Student" wrote:

=IF(WEEKDAY(TODAY())=2,TODAY()-3,TODAY()-1)

--
Gary's Student


"Wanna Learn" wrote:

Hello I have a cell formatted as =TODAY()-1 which is fine. The problem is
on Monday I want Friday's date, and of course, I get Sunday's date. How can I
correct this? thanks

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Today()-1

I think Dave was asking for an English explanation.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Wanna Learn" wrote in message
...
Gary Thank you
and Dave F
an extra thanks for the "English" explanation. Since the only way to

learn
is to understand what is being said.
"Dave F" wrote:

What does this mean in English: IF today is Monday, then TODAY minus 3,

ELSE
TODAY minus 1?
--
Brevity is the soul of wit.


"Gary''s Student" wrote:

=IF(WEEKDAY(TODAY())=2,TODAY()-3,TODAY()-1)

--
Gary's Student


"Wanna Learn" wrote:

Hello I have a cell formatted as =TODAY()-1 which is fine. The

problem is
on Monday I want Friday's date, and of course, I get Sunday's date.

How can I
correct this? thanks



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default Today()-1

Thanks Bob

"Bob Phillips" wrote:


=WORKDAY(TODAY(),-1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Wanna Learn" wrote in message
...
Hello I have a cell formatted as =TODAY()-1 which is fine. The problem

is
on Monday I want Friday's date, and of course, I get Sunday's date. How

can I
correct this? thanks




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
Sum a range of cells starting from an offset date list from TODAY() [email protected] Excel Worksheet Functions 3 November 5th 06 12:19 PM
Today() & Now() function Luke Excel Worksheet Functions 2 August 2nd 06 06:59 PM
Automatically filling date of today (without it changing tomorrow) Jaydubs Excel Discussion (Misc queries) 5 June 27th 06 05:11 PM
Today() Str8 Excel Worksheet Functions 1 February 15th 06 03:54 PM
Conditional Formatting Cell < Today() sagan Excel Worksheet Functions 3 September 21st 05 03:43 PM


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

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"