#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 343
Default Date issue

I need to construct a formula which will subtract 1 month from the previous
month and return the first day of the preceding month.

Example:
A1 value is 24 April, I want A2's value to be 1 March

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Date issue

Why not =DATE(YEAR(A1),MONTH(A1)-1,1) ?

[That fits your example, but not your description.
From your description, the previous month is March, subtract one month would
give February, and the first day of the preceding month would be 1 January.
If that's what you want, use -3 instead of -1.]
--
David Biddulph

"Patrick C. Simonds" wrote in message
...
I need to construct a formula which will subtract 1 month from the previous
month and return the first day of the preceding month.

Example:
A1 value is 24 April, I want A2's value to be 1 March



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Date issue

Hi Patrick

Try
=DATE(YEAR(A1),MONTH(A1)-1,1)

--
Regards
Roger Govier

"Patrick C. Simonds" wrote in message
...
I need to construct a formula which will subtract 1 month from the
previous month and return the first day of the preceding month.

Example:
A1 value is 24 April, I want A2's value to be 1 March


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Date issue

Try this:

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

--
Biff
Microsoft Excel MVP


"Patrick C. Simonds" wrote in message
...
I need to construct a formula which will subtract 1 month from the previous
month and return the first day of the preceding month.

Example:
A1 value is 24 April, I want A2's value to be 1 March



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 791
Default Date issue

You can also try this:

=EOMONTH(A1,-1)-30
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Patrick C. Simonds" wrote:

I need to construct a formula which will subtract 1 month from the previous
month and return the first day of the preceding month.

Example:
A1 value is 24 April, I want A2's value to be 1 March




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Date issue

How about this?

=A1-DAY(A1)-DAY(A1-DAY(A1))+1

--
Rick (MVP - Excel)


"Patrick C. Simonds" wrote in message
...
I need to construct a formula which will subtract 1 month from the previous
month and return the first day of the preceding month.

Example:
A1 value is 24 April, I want A2's value to be 1 March


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default Date issue

Hi,

Try

=EOMONTH(A1,-2)+1

This function requires the ATP in 2003 or earlier - to attach it choose
Tools, Add-ins, and check Analysis ToolPak

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire

"Patrick C. Simonds" wrote in message
...
I need to construct a formula which will subtract 1 month from the
previous month and return the first day of the preceding month.

Example:
A1 value is 24 April, I want A2's value to be 1 March


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 issue Jim at SDSU Excel Worksheet Functions 3 July 28th 07 04:22 AM
Date issue Jim Savage Excel Discussion (Misc queries) 7 February 9th 07 03:48 PM
DATE ISSUE! Joan Excel Worksheet Functions 2 June 15th 06 03:39 PM
Date issue polk383 Excel Worksheet Functions 3 June 10th 06 06:21 PM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM


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