Add a person’s age to a contact form

May 18, 2011
By

Note: This form, like most custom forms, works in all versions of Microsoft Outlook.

Add a custom field and use one of the following formulas to calculate the age.

Using (Now() – [Birthday] ) /365 rounds the age to the closest age… less than 6 months until the next birthday and it reports the age at the next birthday, not the current age.

Age form fields in Outlook custom formExample: The birth date is 8/15/1961. The short formula displays the age as 39, since the age is more than 38.5 years. (Today is 4/1/2000.)

 

This longer formula gives the exact date.. the age doesn't change until the birthday.
IIf([Birthday]<>"None",DateDiff("yyyy",[Birthday],Date())-IIf(DateDiff("d",CDate(Month([Birthday]) & "/" & Day([Birthday]) & "/" & Year(Date())),Date())<0,1,0),"")

Custom Outlook form displaying age of Contact

Download age contact example as a template or a zip

To change existing forms to use the Age form, try DocMessageClass, a free utility used to change forms used on Outlook items.

Related posts:

Tip 161: Custom Field Formulas
Tip 437: Form can’t be Displayed
Tip 853: Poll: How many email address fields should be on a Contact form?
Add a date stamp to the notes field in Outlook appointments or contacts
Creating a Custom Field for the Reminder Time

Tags: , ,

« « Automatically BCC messages sent using Outlook
How to add a date stamp to the notes field of an Outlook item » »

2 Responses to Add a person’s age to a contact form

  1. Raymond Roch on December 27, 2011 at 10:43 pm

    I created a custom contact form and added birthday & age (using formula) and anniversary & years married (using formula edited for anniversaries). It worked – correct age and years married calculated. I used the DocMessageClass to convert existing contacts, which containted the birthdates and anniversary dates on the detailed pages.

    When I opened an existing contact, the birthday and annivesary fields I added to general information page contained the correct information but the age and years married fields contained ‘#ERROR’ message. When I re-enter the birthdate again, the correct age and years married appear. I ‘save & close.’ When I re-open the contact, I’m back to ‘#ERROR’ messages. Any idea what’s going on and how to correct?

  2. Diane Poremsky on December 28, 2011 at 11:18 am

    Can you forward me the custom form saved as a template? Send it to diane at slipstick com

Leave a Reply

Your email address will not be published. Required fields are marked *

Connect with Facebook

*


Outlook Daily Tips by Email

*  Your Email Address:

Resources

Ask questions and share your knowledge in Outlook Forums.

More Outlook and Exchange articles available at Outlook and Exchange Solutions Center

Follow me on:

Follow @Outlooktips on Twitter   Join Outlooktips on Facebook

Advertise here