#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default help req on date

=TODAY()-WEEKDAY(TODAY()+1,1)+7

This gives me the date Feb 29..
but instead it should gibve me march 1

how do i alter this
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default help req on date

Why using "+1"?

"deepika :excel help" wrote:

=TODAY()-WEEKDAY(TODAY()+1,1)+7

This gives me the date Feb 29..
but instead it should gibve me march 1

how do i alter this

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default help req on date

Today() is 39504
Adding 1 (I don't understand why?) makes it 39505
Weekday of 39505 is 4
Deducting 4 from 39504 would be 39500
Adding 7 again would result to 39507
Date of which would be 29-Feb-2008
NOT 01-Mar-2008

"deepika :excel help" wrote:

=TODAY()-WEEKDAY(TODAY()+1,1)+7

This gives me the date Feb 29..
but instead it should gibve me march 1

how do i alter this

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default help req on date

i use =TODAY()-WEEKDAY(TODAY(),1)+7 on J2 to get the friday of every week
then in I2 i should need a thursday etc till F2 which is Mon... how do i do
this else???



"FARAZ QURESHI" wrote:

Today() is 39504
Adding 1 (I don't understand why?) makes it 39505
Weekday of 39505 is 4
Deducting 4 from 39504 would be 39500
Adding 7 again would result to 39507
Date of which would be 29-Feb-2008
NOT 01-Mar-2008

"deepika :excel help" wrote:

=TODAY()-WEEKDAY(TODAY()+1,1)+7

This gives me the date Feb 29..
but instead it should gibve me march 1

how do i alter this

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default help req on date

I don't know which part of the world you are in, but here in the UK today is
Tuesday 26th. Adding 1 to TODAY() gets you to a Wednesday. The WEEKDAY
function would return 4 [look at Excel Help for WEEKDAY if you don't know
how it works for the various options]. Your formula therefore starts from
Feb 26th, subtracts 4 and adds 7. In my book that gets you to Feb 29th, not
to March 1st. You did remember that this year is a leap year, didn't you?
--
David Biddulph

"deepika :excel help" wrote in
message ...
=TODAY()-WEEKDAY(TODAY()+1,1)+7

This gives me the date Feb 29..
but instead it should gibve me march 1

how do i alter this





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default help req on date

hey david,
thank you very much.
now is when i realized tah this is a leap year... ha ha thank you again

"David Biddulph" wrote:

I don't know which part of the world you are in, but here in the UK today is
Tuesday 26th. Adding 1 to TODAY() gets you to a Wednesday. The WEEKDAY
function would return 4 [look at Excel Help for WEEKDAY if you don't know
how it works for the various options]. Your formula therefore starts from
Feb 26th, subtracts 4 and adds 7. In my book that gets you to Feb 29th, not
to March 1st. You did remember that this year is a leap year, didn't you?
--
David Biddulph

"deepika :excel help" wrote in
message ...
=TODAY()-WEEKDAY(TODAY()+1,1)+7

This gives me the date Feb 29..
but instead it should gibve me march 1

how do i alter this




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default help req on date

Hi

You don't need the +1
=TODAY()-WEEKDAY(TODAY(),1)+7

--
Regards
Roger Govier

"deepika :excel help" wrote in
message ...
=TODAY()-WEEKDAY(TODAY()+1,1)+7

This gives me the date Feb 29..
but instead it should gibve me march 1

how do i alter this


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
how to get the random date between the start date and the end date? Sebation Excel Worksheet Functions 3 October 13th 07 12:20 PM
Report Date - Date Recv = Days Late, but how to rid completed date MS Questionnairess Excel Worksheet Functions 1 January 24th 07 11:05 PM
Make date change in excel to current date when opening daily? jamie Excel Discussion (Misc queries) 3 March 1st 06 03:37 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM
Date updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 03:00 PM


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