Skip to main content

How to calculate age from ID number in Excel?

Supposing, you have a list of ID numbers which contain 13 digit numbers, and the first 6 numbers is the birth date. For example, the ID number 9808020181286 means the birth date is 1998/08/02. How could you get the age from ID number as following screenshot shown quickly in Excel?

doc age from ID 1

Calculate age from ID number with formula


arrow blue right bubble Calculate age from ID number with formula

To calculate age from ID number, the following formula can help you. Please do as this:

Enter this formula:

=DATEDIF(DATE(IF(LEFT(A2,2)>TEXT(TODAY(),"YY"),"19"&LEFT(A2,2),"20"&LEFT(A2,2)),MID(A2,3,2),MID(A2,5,2)),TODAY(),"y") into a blank cell where you want to calculate the age, and then drag the fill handle down to the cells you want to apply this formula, and the ages have been calculated from the ID numbers at once, see screenshot:

doc age from ID 2

Notes:

1. In the above formula, A2 is the cell contains the ID number you want to calculate the age based on.

2. With the above formula, if the year is less that current year it will be considered as 20, if year is greater than current year will be considered as 19. For instance, if this year is 2016, the ID number 1209132310091’s birth date is 2012/09/13; the ID number 3902172309334’s birth date is 1939/02/17.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What if the person in born in 1912? Surely you cant say 2012.
This comment was minimized by the moderator on the site
Hello, Mthembu

Yes, if the year in ID number is less that current year it will be considered as 20, if year is greater than current year will be considered as 19.
For example, this year is 2022, ID number 1009132310091’s birth date is 2010/09/13, the ID number 6802172309334’s birth date is 1968/02/17.

Thank you!
This comment was minimized by the moderator on the site
I also have the similar issue. Is there a way to distinguish between such scenario?
This comment was minimized by the moderator on the site
I think you are missing the point. If a person was born in 1920 (102 years old) , their ID would start with 20. A child born in 2020 (2 years old) will also start with 20. How do you determine now if the person is 102 or 2 years old by looking at the first 2 digits ?
This comment was minimized by the moderator on the site
Esta fórmula no funciona con Excel en español... Necesito la fórmula en español!! please
This comment was minimized by the moderator on the site
Cuál es la formula en español???
This comment was minimized by the moderator on the site
U are so cool. Can get two ic for we
This comment was minimized by the moderator on the site
very cool, works
This comment was minimized by the moderator on the site
mierda en españon
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations