ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Rounddown Dates (https://www.excelbanter.com/excel-discussion-misc-queries/163325-rounddown-dates.html)

Micki

Rounddown Dates
 
Hello. I have a ROUNDDDOWn question with dates
Cell C8 = 2/1/04
Cell D8 = 2/28/08
The difference between the two when I enter ((YEAR(D10)-YEAR(C10)) is 2
years. In actuality, it's 20 months, but is rounding up to 2 years. I need it
to round down to 1 year. How do I use the ROUNDDOWN function with dates?



Brad

Rounddown Dates
 
=DATEDIF(C5,C6,"y")

Assuming c5 has 2/1/04 and c6 gas 2/28/08 this will round down for you
Note in your exampel the difference is 4+ years

"Micki" wrote:

Hello. I have a ROUNDDDOWn question with dates
Cell C8 = 2/1/04
Cell D8 = 2/28/08
The difference between the two when I enter ((YEAR(D10)-YEAR(C10)) is 2
years. In actuality, it's 20 months, but is rounding up to 2 years. I need it
to round down to 1 year. How do I use the ROUNDDOWN function with dates?



Micki

Rounddown Dates
 
Perfect! Thanks.

"Brad" wrote:

=DATEDIF(C5,C6,"y")

Assuming c5 has 2/1/04 and c6 gas 2/28/08 this will round down for you
Note in your exampel the difference is 4+ years

"Micki" wrote:

Hello. I have a ROUNDDDOWn question with dates
Cell C8 = 2/1/04
Cell D8 = 2/28/08
The difference between the two when I enter ((YEAR(D10)-YEAR(C10)) is 2
years. In actuality, it's 20 months, but is rounding up to 2 years. I need it
to round down to 1 year. How do I use the ROUNDDOWN function with dates?




All times are GMT +1. The time now is 10:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com