Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Reverting to a date

I am looking for a formula that will use todays date and
revert the cell date to the 1st of last month. i.e.
6/7/2004 would = 5/1/2004.

Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default Reverting to a date

=DATE(YEAR(NOW()),MONTH(NOW())-1,1)

Ronbo wrote:

I am looking for a formula that will use todays date and
revert the cell date to the 1st of last month. i.e.
6/7/2004 would = 5/1/2004.

Thanks for any help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Reverting to a date

On Mon, 7 Jun 2004 09:59:00 -0700, "Ronbo"
wrote:

I am looking for a formula that will use todays date and
revert the cell date to the 1st of last month. i.e.
6/7/2004 would = 5/1/2004.

Thanks for any help.


With a Date in A6,
=A6-DAY(A6)-DAY(A6-DAY(A6))+1

or for today:

=TODAY()-DAY(TODAY())-DAY(TODAY()-DAY(TODAY()))+1


--ron
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
Reverting Chart T Maddux Charts and Charting in Excel 0 September 3rd 08 01:17 AM
Links reverting Wanson Excel Discussion (Misc queries) 0 December 12th 05 09:49 AM
Reverting formats [email protected] Excel Discussion (Misc queries) 3 December 8th 05 09:15 PM
cells reverting Ming Excel Discussion (Misc queries) 3 May 11th 05 06:52 AM
reverting to first page on exit mhillis Excel Programming 5 January 8th 04 06:05 PM


All times are GMT +1. The time now is 10:52 PM.

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"