banner



How To Find Age Using Date Of Birth

At that place are a multitude of situations when you might need to summate the age of a group of people based on their date of nascency. If y'all search the Internet, yous might find various techniques to do this.

It's not as simple as just taking the birth yr and subtracting it from the current year. At that place are a lot of things you need to consider.

For example, say it is 29th Jan 2020 and you have to find the historic period of a person born on 8th Nov 2007. Simply subtracting 2007 from 2020 volition requite yous 13 years.

However, you demand to consider the fact that the person was built-in in November, then technically, he/ she has not yet completed xiii years.

In this Google Sheets tutorial, I will bear witness you how to chop-chop calculate age in Google Sheets using the date of nascency using formulas.

Also, y'all can calculate historic period to show you how many years take passed in the appointment of birth, and even get more specific about how many years, months and days have passed since the date of nativity of the person.

Summate Age in Google Sheets – Number of Years

Suppose you lot have the dataset equally shown below where you have the date of nascence in prison cell B1 and the current engagement in cell B2. Note that I have used the TODAY part to get the date of nascency in prison cell B2.

Data to calculate Age

At present there are two formulas you can use to calculate the age in Google Sheets in years (i.due east., to get the full number of years that have elapsed betwixt the two given dates).

The commencement formula that you tin use to do this is the DATEDIF formula (chosen the Date Departure formula), and the second one is using the YEARFRAC function.

Using the DATEDIF Formula

Allow me commencement testify you how to use the DATEDIF function.

The below formula will summate the age in the full number of years between the two given dates:

          =          DATEDIF          (          B1          ,          B2          ,          "Y"          )        

Calculating Age in Google Sheets using DATEDIF

The above formula takes three arguments:

  • Beginning Engagement – this is the date of birth in our example
  • End Engagement – this is the electric current date in this example
  • Unit – this is the argument that tells the DATEDIF office what needs to be calculated. In this instance, I take used "Y", which tells the formula to merely calculate the full number of years that accept elapsed between the two given dates.

Annotation that I have used the current engagement as a cell reference (where I already accept the current date in cell B2). Simply you tin can also use the below formula to do this (where the electric current date is automatically calculated using the TODAY function within the formula itself):

          =          DATEDIF          (          B1          ,          TODAY          (          )          ,          "Y"          )        

Also, let me requite you all the other units yous can utilise in the third argument of the DATEDIF function (nosotros will be using these in the side by side section where we need to calculate age in years months, and dates in Google Sheets).

Below are all the values you can employ in the unit argument in the DATEDIF function;

  • "Y" – this will give y'all the total number of years that have passed between the two given dates
  • "M" – this will give you the total number of months that have passed between the two given dates
  • "D" – this volition give you the full number of days that take passed between the 2 given dates
  • "MD" – this will give you the full number of days that take passed between the two given dates but doesn't count the ones in the Years and Months that have been completed.
  • "YM" – this will give yous the total number of months that have passed betwixt the ii given dates merely doesn't count the ones in the years and months that have been completed.
  • "YD" – this will give you the total number of days that accept passed between the two given dates but doesn't count the ones in the years that accept been completed.

These will go a lot more clear when we look at more examples in the next section.

Using the YEARFRAC Formula

Another way to summate the age in years in Google Sheets is past using the YEARFRAC function.

Below is the formula that will give you age in years when you have the date of nascence and the electric current appointment:

=INT(YEARFRAC(B1,TODAY()))

Calculating Age in Google Sheets using YEARFRAC

The YEARFRAC function will give you the number of years (including fractional years), between ii given dates. Since we merely want to go the age in years, I have used the INT function, which simply gives united states the integer part of the age.

Notation: When working with dates in Google Sheets, if yous want a specific date in a cell, it's best to apply the Engagement office to get it. This volition forbid whatever chances of error – most common could exist having a appointment that Google Sheets doesn't recognize equally a date

Calculate Age in Google Sheets – Number of Years, Months, and Days

If y'all merely want to calculate the historic period in years, y'all can utilise the formulas covered above. Just to become the historic period in years as well equally in months and days would need slightly dissimilar formulas.

Over again, you can use the DATEDIF function to calculate the historic period which has been cleaved downwards by years, months and days.

Using the DATEDIF Formula

Suppose you have the aforementioned dataset and yous desire to summate the age in years likewise as months and days.

The below formula will requite you lot the age in years (i.e., the total number of years that have passed in between the two given dates):

          =          DATEDIF          (          B1          ,          B2          ,          "Y"          )        

Years Elapsed between two dates

Now, to get the total number of months that accept passed (not counting the completed years), y'all can use the beneath formula:

          =          DATEDIF          (          B1          ,          B2          ,          "YM"          )        

Months Elapsed between two dates

This returns eight in our example, as 8 months have passed afterwards 41 completed years.

And the below formula will give you the total number of days that have elapsed (not counting the completed months):

          =          DATEDIF          (          B1          ,          B2          ,          "Doctor"          )        

Days elapsed between two dates

And if yous want to combine all these values to testify the age in years, months and days, yous can apply the below formula:

          =          DATEDIF          (          B1          ,          B2          ,          "Y"          )          &          " Years "          &          DATEDIF          (          B1          ,          B2          ,          "YM"          )          &          " Months "          &          DATEDIF          (          B1          ,          B2          ,          "MD"          )          &          " Days"        

Full age in years months and days

Note that I take used a cell reference in the formula above to get the current date, but yous tin can also use TODAY function to fo this instead of using B2.

And then there are the formulas yous tin can utilize to calculate historic period in Google Sheets. If you lot just need the age in years, you tin can utilise DATEDIF or YEARFRAC, but if yous need it to be broken down by years, months, and days, you demand to utilize the DATEDIF function only.

Hope you establish this tutorial useful!

Note that you lot tin as well use these same formulas if you want to summate age in Excel (using the appointment of birth).

While I have used these formulas to calculate historic period in Google Sheets, y'all can also use these to calculate years/months/dates that have elapsed between any ii dates. Be careful when using the functions with IMPORTRANGE as information technology can sometimes crusade errors.. This could help you get a better idea of the projection duration or while forecasting/planning using time to come dates.

You may also like the following Google Sheets tutorials:

  • How to Calculate Days Between Two Dates in Google Sheets
  • Count Cells IF NOT Bare (Not-Empty cells) in Google Sheets
  • How to Add Fourth dimension in Google Sheets
  • How to Round Numbers in Google Sheets

Source: https://spreadsheetpoint.com/calculate-age-google-sheets/

Posted by: nashhanch1962.blogspot.com

0 Response to "How To Find Age Using Date Of Birth"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel