Rounding dates in Excel 2000

christal

New Member
Joined
Apr 7, 2002
Messages
45
I am in need of some help in rounding dates. For example: Cell A1 has 02/25/03 and cell B1 has 90 (days). Cell C1 should be 06/01/03 because 90 days added to 02/25/03 is 05/26/03, yet it rounds to the nearest month (06/01/03). Am I making sense??? Help! :eek:)

Thanks Christal
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
On 2002-04-08 07:14, christal wrote:
I am in need of some help in rounding dates. For example: Cell A1 has 02/25/03 and cell B1 has 90 (days). Cell C1 should be 06/01/03 because 90 days added to 02/25/03 is 05/26/03, yet it rounds to the nearest month (06/01/03). Am I making sense??? Help! /board/images/smiles/icon_eek.gif)

Thanks Christal

If A1 houses 02/25/03 (a date formatted entry) and B1 90,

=A1+B1

gives 05/26/03 (26-May-03) in C1.
 
Upvote 0
=EOMONTH(A1+B1,IF(DAY(A1+B1)>=15,0,-1))+1

Note: The EMONTH worksheet function is supplied by the Analysis ToolPak add-in.
This message was edited by Mark W. on 2002-04-08 07:31
 
Upvote 0
On 2002-04-08 08:15, christal wrote:
Can you tell me what to use in the tool pak in order for this calculation to work??

Thanks!

See the Excel Help topic for "Install and use the Analysis ToolPak".
 
Upvote 0
On 2002-04-08 07:14, christal wrote:
I am in need of some help in rounding dates. For example: Cell A1 has 02/25/03 and cell B1 has 90 (days). Cell C1 should be 06/01/03 because 90 days added to 02/25/03 is 05/26/03, yet it rounds to the nearest month (06/01/03). Am I making sense??? Help! :eek:)

Thanks Christal

Your question is somewhat unclear, do you want to "round" to the nearest month or not?
You cannot really round dates the way you round other numbers..

Here's a non ATP answer that will return the same as the answer you received from Mark

=DATE(YEAR(A1+B1),MONTH(A1+B1)+IF(DAY(A1+B1)>=15,1,0),1)

otherwise see Aladin's answer, if you add 90 days to 02/25/03 the result is 05/26/03, not 06/01/03..


Regards,

Peo Sjoblom
 
Upvote 0

Forum statistics

Threads
1,213,560
Messages
6,114,309
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top