Skip to content

Instantly share code, notes, and snippets.

@ExcelExciting
Created February 16, 2022 16:32
Show Gist options
  • Save ExcelExciting/4b4e4836296dc6927035c8f55f1b4950 to your computer and use it in GitHub Desktop.
Save ExcelExciting/4b4e4836296dc6927035c8f55f1b4950 to your computer and use it in GitHub Desktop.
Excel-Formulas - 0002 - Hijri Age Calculator Excel (Classic Formula)
=TEXT(INT(DATEDIF([DOB],TODAY(),"D")/(12*29.530575)),"00")&" years "&
TEXT(INT(((DATEDIF([DOB],TODAY(),"D")/(12*29.530575)-INT(DATEDIF([DOB],TODAY(),"D")/(12*29.530575)))*12)),"00")&" months "&
TEXT(INT((((DATEDIF([DOB],TODAY(),"D")/(12*29.530575)-INT(DATEDIF([DOB],TODAY(),"D")/(12*29.530575)))*12)-INT(((DATEDIF([DOB],TODAY(),"D")/(12*29.530575)-INT(DATEDIF([DOB],TODAY(),"D")/(12*29.530575)))*12)))*29.530575),"00")&" days"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment