Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
FC FC is offline
external usenet poster
 
Posts: 130
Default how do I calculate years between two dates

I'm trying to calculate age between A1 ( TODAYS' DATE) and B1 customer's
birthday, but all the formulas that I write in C1 ( that's where I want the
age ) will give me for example 33.56, and if I take off the decimals then it
will ROUND UP to 34 and thats not the real age. I basically want a formula
that DOES NOT ROUND UP and gime JUST THE YEARS ( in this case 33). Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default how do I calculate years between two dates

=DATEDIF(B1,A1,"y")


"FC" wrote:

I'm trying to calculate age between A1 ( TODAYS' DATE) and B1 customer's
birthday, but all the formulas that I write in C1 ( that's where I want the
age ) will give me for example 33.56, and if I take off the decimals then it
will ROUND UP to 34 and thats not the real age. I basically want a formula
that DOES NOT ROUND UP and gime JUST THE YEARS ( in this case 33). Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default how do I calculate years between two dates

To get fraction year
c1=datedif(b1,a1,"m")/12
format c1 as number with two decimals

"FC" wrote:

I'm trying to calculate age between A1 ( TODAYS' DATE) and B1 customer's
birthday, but all the formulas that I write in C1 ( that's where I want the
age ) will give me for example 33.56, and if I take off the decimals then it
will ROUND UP to 34 and thats not the real age. I basically want a formula
that DOES NOT ROUND UP and gime JUST THE YEARS ( in this case 33). Thanks.

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 add 100 years to a column of dates Albert Einstein New Users to Excel 3 May 20th 06 05:04 PM
NUMBER OF YEARS BETWEEN TWO DATES - HOW TO GET AJAY KUMAR DIXIT Excel Worksheet Functions 2 May 16th 06 10:17 AM
Need formula to calculate days between dates or back date KVN Excel Discussion (Misc queries) 3 May 3rd 06 10:08 PM
calculate number of days btw dates Nelson Excel Worksheet Functions 2 March 2nd 06 01:02 AM
calculate with dates before 1-1-1900 jan wan Excel Worksheet Functions 3 October 29th 04 10:54 PM


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