Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BLW
 
Posts: n/a
Default adding months to an inputted date

I need a function that will take a date that a user has typed in a different
cell and will then add two months to the date. For instance, if I type
"2/12/05" in B1, then I want C2 to be: "4/12/05". Thank you for any help
that you may be able to give.

Logan
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=DATE(YEAR(B1),MONTH(B1)+2,DAY(B1))

however what do you want the date to be in C2 if B1 is
01/30/05?

Regards,

Peo Sjoblom

"BLW" wrote:

I need a function that will take a date that a user has typed in a different
cell and will then add two months to the date. For instance, if I type
"2/12/05" in B1, then I want C2 to be: "4/12/05". Thank you for any help
that you may be able to give.

Logan

  #3   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi Logan

=DATE(YEAR(B1),MONTH(B1)+1,DAY(B1))

HTH. Best wishes Harald

"BLW" skrev i melding
...
I need a function that will take a date that a user has typed in a

different
cell and will then add two months to the date. For instance, if I type
"2/12/05" in B1, then I want C2 to be: "4/12/05". Thank you for any help
that you may be able to give.

Logan



  #4   Report Post  
Harald Staff
 
Posts: n/a
Default

Sorry. +2 of course.

Best wishes Harald

"Harald Staff" skrev i melding
...
Hi Logan

=DATE(YEAR(B1),MONTH(B1)+1,DAY(B1))

HTH. Best wishes Harald

"BLW" skrev i melding
...
I need a function that will take a date that a user has typed in a

different
cell and will then add two months to the date. For instance, if I type
"2/12/05" in B1, then I want C2 to be: "4/12/05". Thank you for any

help
that you may be able to give.

Logan





  #5   Report Post  
Myrna Larson
 
Posts: n/a
Default

however what do you want the date to be in C2 if B1 is
01/30/05?


Since he's adding 2 months, you probably meant 12/30/2005, no?



  #6   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Correct <g

--
Regards,

Peo Sjoblom

(No private emails please)


"Myrna Larson" wrote in message
...
however what do you want the date to be in C2 if B1 is
01/30/05?


Since he's adding 2 months, you probably meant 12/30/2005, no?


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
adding occurrences for date range Mike Excel Discussion (Misc queries) 1 April 28th 05 09:14 PM
Excel Adding years or months to a date Joan Excel Discussion (Misc queries) 2 April 25th 05 08:09 PM
adding occurrences for date range Mike Excel Discussion (Misc queries) 0 April 11th 05 05:24 PM
adding occurrences for date range Mike Excel Discussion (Misc queries) 0 April 8th 05 11:33 PM
Return a date 6 months from a date in another cell Qaspec Excel Worksheet Functions 1 January 21st 05 04:59 PM


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