Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JP JP is offline
external usenet poster
 
Posts: 103
Default Round to nearest month

Hi all. I need a function that can take a date, no matter what date in that
month, and round to the first of the next month.

So for example if the cell has 1/4/07 I want the result to say 2/1/07
Or 1/1/07 would return 2/1/07

Thanks!

Jp
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Round to nearest month

=DATE(YEAR(A1),MONTH(A1)+1,1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jp" wrote in message ...
| Hi all. I need a function that can take a date, no matter what date in that
| month, and round to the first of the next month.
|
| So for example if the cell has 1/4/07 I want the result to say 2/1/07
| Or 1/1/07 would return 2/1/07
|
| Thanks!
|
| Jp


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
How to round up to the nearest five James Excel Discussion (Misc queries) 3 November 21st 09 12:37 PM
How can I Round up to the nearest .25 T. Valko Excel Discussion (Misc queries) 0 December 30th 08 07:57 PM
How can I Round up to the nearest .25 Brad Excel Discussion (Misc queries) 1 December 30th 08 07:56 PM
How do I round to the nearest 5? JoeBed Excel Worksheet Functions 2 April 28th 06 02:34 PM
How do I round to the nearest $250 Dedrie Excel Worksheet Functions 4 August 10th 05 06:35 PM


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