Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Adding 1 year and keeping time as well

I have a column of date and time stamps I want to add excatly 1 year to.

The cell I want to add a year to is has this: 6/1/2007 6:35

If I use the forumula =EDATE(G2,12)

I get 6/1/2008 12:00 AM

How do I get it to leave the time along or carry that accross as well?

Sincerely

Hugh





  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Adding 1 year and keeping time as well

Try this:

=EDATE(G2,12)+MOD(G2,1)

--
Biff
Microsoft Excel MVP


"Hugh G. Johnson" wrote in message
...
I have a column of date and time stamps I want to add excatly 1 year to.

The cell I want to add a year to is has this: 6/1/2007 6:35

If I use the forumula =EDATE(G2,12)

I get 6/1/2008 12:00 AM

How do I get it to leave the time along or carry that accross as well?

Sincerely

Hugh







  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Adding 1 year and keeping time as well

=EDATE(G12,12)+MOD(G12,1)


or without using the ATP


=DATE(YEAR(G12)+1,MONTH(G12),DAY(G12))+MOD(G12,1)

--


Regards,


Peo Sjoblom

"Hugh G. Johnson" wrote in message
...
I have a column of date and time stamps I want to add excatly 1 year to.

The cell I want to add a year to is has this: 6/1/2007 6:35

If I use the forumula =EDATE(G2,12)

I get 6/1/2008 12:00 AM

How do I get it to leave the time along or carry that accross as well?

Sincerely

Hugh







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Adding 1 year and keeping time as well

Excellent! This did the trick.

Thank you so much.

Sincerely,

Joe



"T. Valko" wrote in message
...
Try this:

=EDATE(G2,12)+MOD(G2,1)

--
Biff
Microsoft Excel MVP


"Hugh G. Johnson" wrote in message
...
I have a column of date and time stamps I want to add excatly 1 year to.

The cell I want to add a year to is has this: 6/1/2007 6:35

If I use the forumula =EDATE(G2,12)

I get 6/1/2008 12:00 AM

How do I get it to leave the time along or carry that accross as well?

Sincerely

Hugh








  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Adding 1 year and keeping time as well

On Wed, 20 Aug 2008 09:26:11 -0700, "Hugh G. Johnson"
wrote:

I have a column of date and time stamps I want to add excatly 1 year to.

The cell I want to add a year to is has this: 6/1/2007 6:35

If I use the forumula =EDATE(G2,12)

I get 6/1/2008 12:00 AM

How do I get it to leave the time along or carry that accross as well?

Sincerely

Hugh






=EDATE(G2,12)+MOD(A1,1)



--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Adding 1 year and keeping time as well

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Hugh G. Johnson" wrote in message
...
Excellent! This did the trick.

Thank you so much.

Sincerely,

Joe



"T. Valko" wrote in message
...
Try this:

=EDATE(G2,12)+MOD(G2,1)

--
Biff
Microsoft Excel MVP


"Hugh G. Johnson" wrote in message
...
I have a column of date and time stamps I want to add excatly 1 year to.

The cell I want to add a year to is has this: 6/1/2007 6:35

If I use the forumula =EDATE(G2,12)

I get 6/1/2008 12:00 AM

How do I get it to leave the time along or carry that accross as well?

Sincerely

Hugh










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
KEEPING THE TOTAL IN C3 WHEN ADDING B3 bouncer8 Excel Discussion (Misc queries) 3 August 19th 06 01:21 AM
KEEPING THE TOTAL IN C3 WHEN ADDING B3 bouncer8 Excel Discussion (Misc queries) 1 August 18th 06 02:41 PM
Adding columns w/new formulas BUT keeping subtotals Exceldawg Excel Discussion (Misc queries) 0 April 19th 06 02:58 PM
adding new rows and keeping same formulas [email protected] Excel Discussion (Misc queries) 3 March 7th 06 07:28 PM
adding new rows and keeping the same formulas [email protected] Excel Worksheet Functions 1 March 7th 06 05:07 PM


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