#1   Report Post  
Posted to microsoft.public.excel.misc
KA Madrigal-Young
 
Posts: n/a
Default Date Functions

I need to come up with a way to take dates in one column (C), add a year, and
show the result in the next column(D). I've come up with the following
formula: =DATE(YEAR(C2)+2,MONTH(C2),DAY(C2)), which I've placed in my D
column (first row for dates). The formula itself works, but if I don't have
a number in a particular row in my C column (say, the next or 2nd row for
dates), I get a 1901 date or, sometimes, a #VALUE error. Is there a way add
2 years to a date in one column & show the result in the next column when
there is an entry to a row, but show a blank cell when the initial date is
blank?

Many thanks...
  #2   Report Post  
Posted to microsoft.public.excel.misc
Heckuvaseeker
 
Posts: n/a
Default Date Functions



"KA Madrigal-Young" wrote:

I need to come up with a way to take dates in one column (C), add a year, and
show the result in the next column(D). I've come up with the following
formula: =DATE(YEAR(C2)+2,MONTH(C2),DAY(C2)), which I've placed in my D
column (first row for dates). The formula itself works, but if I don't have
a number in a particular row in my C column (say, the next or 2nd row for
dates), I get a 1901 date or, sometimes, a #VALUE error. Is there a way add
2 years to a date in one column & show the result in the next column when
there is an entry to a row, but show a blank cell when the initial date is
blank?

Many 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
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
Help with Date Functions Sharon19 Excel Worksheet Functions 4 November 8th 05 07:13 PM
Advanced Date Functions enright_m Excel Worksheet Functions 1 October 26th 05 04:08 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Date functions John New Users to Excel 3 August 15th 05 08:50 PM


All times are GMT +1. The time now is 12:58 AM.

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"