LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to change the year digit?

Does anyone have any suggestions on how to change the year digit?
In cell A1, there is a given date, and
In cell B1, there is a number of month, which will add into the date in cell
A1.
In cell C1, it should return the result.

For example,
In cell A1, 1-Jul-2098. and in cell A2, 5-Apr-2009 for today
In cell B1, 21
In cell C1, it return 1-Apr-2100 by Date(year(A1),month(A1)+B1,day(A1))

I would like to keep all date into the same century as today, if today in
cell A2 is 21 century, then 2100 year should become 2000 year.

For example,
In cell A1, 1-Jul-2098. and in cell A2, 5-Apr-2209 for today
In cell B1, 21
In cell C1, it return 1-Apr-2200

I would like to keep all date into the same century as today, if today in
cell A2 is 22 century, then 2100 year should become 2200 year.


Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

 
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
Automatically convert Text with 2-digit year juniper810 Excel Discussion (Misc queries) 3 April 24th 23 03:46 AM
need formula 4 %change on both neg and pos movemnt year to year co suesolotel Excel Discussion (Misc queries) 4 January 13th 08 12:19 AM
Addendum to 2 digit year to 4 digit year RealGomer Excel Discussion (Misc queries) 2 December 14th 06 05:48 PM
Format 2 digit year to 4 digit RealGomer Excel Discussion (Misc queries) 5 December 14th 06 01:45 PM
2 digit year in dates return 19xx not 20xx moranbo Excel Discussion (Misc queries) 1 September 7th 05 01:44 AM


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