+ Reply to Thread
Results 1 to 14 of 14

Autocalculate Age from Identity Card Number

Hybrid View

  1. #1
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Autocalculate Age from Identity Card Number

    Another way would be to assume that you can't have an I.D. card before you are born, and you die before you get to one hundred!
    =DATE(IF(LEFT(A2,2)*1<=YEAR(TODAY())-2000,2000+(LEFT(A2,2)*1),1900+(LEFT(A2,2)*1)),MID(A2,3,2)*1,MID(A2,5,2)*1)
    Last edited by Marcol; 01-04-2012 at 06:34 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1