Excel users frequently want to calculate age from date of birth. You can do this with a few simple steps in Easy Data Transform:
Drag the Excel spreadsheet with the dates of birth onto Easy Data Transform. If there are multiple sheets, you will be asked which one to input. A pink input item will be added.
You now need the date in ISO format (yyyy-mm-dd) for the calculation. You can skip the next 2 bullet points if the date is already in this format.
Ensuring the pink input item is selected, click the Date Format button in the Left pane.
yyyy-MM-dd
. The date of birth column should now change to the new format. No need to run anything. Your original spreadsheet has not been changed. Ensure the Date Format transform is selected.return new Date() - new Date( $(DOB) );
But replace DOB with the name of your date of birth column. Click Evaluate. The Age column should now show the difference (in milliseconds) between the current date and the date of birth.
Ensuring Javascript transform is selected, click the Units button in the Left pane.
The Units transform is added and selected. In the Right pane check the Age column and set Dimensions to Time, From to Milliseconds and To to Years. Age is now shown in years.
Ensuring the Units transform is selected, click the Num Format button in the Left pane.
The Num Format transform is added and selected. In the Right pane check the Age column, set Format to f and Precision to 0.
The Excel file is created immediately at the chosen location, no need to ‘run’ anything. It will be updated any time you change something ‘upstream’.
File>Save this series of transformations if you might want to use it again.
If you need to show duplicates in lots of Excel sheets you can do it in a single operation using the batch processing feature.
Easy Data Transform allows you to combine multiple transforms to quickly and easily create many different data transformations.
v2.0.0 for Windows 11 / 10 / 8 / 7 (51 MB)
Zip file version
v2.0.0 for Mac 15.x to 10.13 (82 MB)
No commitments.
You can uninstall any time.
You don't even have to give us your email address.
Questions or problems?