#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Amend year

I have data for 2008 which originally was just day and month (eg, 12 Jan)
which when input into Excel 2007 has become day, month and year, eg, 12 Jan
09. As this should be 2008 instead, is there a formula where I can minus one
year from the date?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Amend year

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


On 15 Sty, 16:22, E wrote:
I have data for 2008 which originally was just day and month (eg, 12 Jan)
which when input into Excel 2007 has become day, month and year, eg, 12 Jan
09. As this should be 2008 instead, is there a formula where I can minus one
year from the date?
Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Amend year

Put a full date in the cell (you can use any day since you don't care about
the day... I'd use the 1st) and then use this custom cell format...

dd mmm

to make it display the way you want.

--
Rick (MVP - Excel)


"E" wrote in message
...
I have data for 2008 which originally was just day and month (eg, 12 Jan)
which when input into Excel 2007 has become day, month and year, eg, 12
Jan
09. As this should be 2008 instead, is there a formula where I can minus
one
year from the date?
Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Amend year

Thanks, just what I needed.

"Jarek Kujawa" wrote:

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


On 15 Sty, 16:22, E wrote:
I have data for 2008 which originally was just day and month (eg, 12 Jan)
which when input into Excel 2007 has become day, month and year, eg, 12 Jan
09. As this should be 2008 instead, is there a formula where I can minus one
year from the date?
Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Amend year

Thanks, but I'm pivoting so I need the correct year.

"Rick Rothstein" wrote:

Put a full date in the cell (you can use any day since you don't care about
the day... I'd use the 1st) and then use this custom cell format...

dd mmm

to make it display the way you want.

--
Rick (MVP - Excel)


"E" wrote in message
...
I have data for 2008 which originally was just day and month (eg, 12 Jan)
which when input into Excel 2007 has become day, month and year, eg, 12
Jan
09. As this should be 2008 instead, is there a formula where I can minus
one
year from the date?
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
amend formula [email protected] Excel Discussion (Misc queries) 1 August 20th 08 05:02 AM
how can I amend my address data source Kim New Users to Excel 2 July 5th 07 01:24 AM
how to amend pivot table structure Rasoul Khoshravan Excel Worksheet Functions 1 January 26th 07 06:35 PM
Printing: how do I amend my print defaults? joo Excel Discussion (Misc queries) 7 September 21st 06 02:00 PM
Amend formula to include addition condition Pat Excel Worksheet Functions 1 March 16th 05 03:36 PM


All times are GMT +1. The time now is 12:39 PM.

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"