web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Power Up Program Community
Answered

Calculating Age

(1) ShareShare
ReportReport
Posted on by 55
Hi.
 
Can anybody guide me on the best formula for calculating the age based on the DOB.
 
Thank you
 
Best Regards,
Zar
 
Categories:
I have the same question (0)
  • Verified answer
    kasraouiah Profile Picture
    305 on at
    Hello try this formula,
     
     
    If(IsBlank('Birth Date'),
    0,
    RoundDown(DateDiff('Birth Date',Now(),TimeUnit.Years),0)
    )
  • Suggested answer
    AV-25101512-0 Profile Picture
    14 on at
    Kasraouia's formula didn't work for me.
     
    After much digging, I found a solution via "Power Platform Boost Podcast" on YouTube. (https://www.youtube.com/watch?v=lTHQR4xiHio)
     
    NOTE: Not endorsement implied.
     
     
    His formula returns values even when a 'Date of Birth" cell is blank, so this formula (courtesy of ChatGPT) returns "No Birth Info" when a cell is blank.
     
    If you'd rather it return a number, like a zero, just replace the "No Birth Info" with a 0.
     
    However, do so in a text editor before you paste it in to the formula field.  I'm not sure why, however once it's in the formula field, any typing to edit breaks everything.
     
     
    If(
        IsBlank('Date of Birth'),
        "No Birth Info",
        If(
            (Month(UTCToday()) > Month('Date of Birth')) ||
            (Month(UTCToday()) = Month('Date of Birth') && Day(UTCToday()) >= Day('Date of Birth')),
            Year(UTCToday()) - Year('Date of Birth'),
            Year(UTCToday()) - Year('Date of Birth') - 1
        )
    )
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Microsoft Power Up Program Community

#1
timl Profile Picture

timl 512 Super User 2025 Season 2

#2
mmbr1606 Profile Picture

mmbr1606 62 Super User 2025 Season 2

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 60 Super User 2025 Season 2

Last 30 days Overall leaderboard