#VALUE error

Baggeepants

New Member
Joined
Jan 9, 2018
Messages
8
I am trying to get Excel to calculate the age of a person on a certain date but have found the formula I am using in column C =(YEAR(B1)-YEAR(A1)) works in some cells but most are returning the #VALUE error code. I have formatted the cells in column A & B as 'Date' & column C as 'Number' with zero decimal points. In rows 1, 3, 4 & 7 I expect the error code until I can correct the spreadsheet with the actual date but rows 2, 5 & 6 should show the approx. age of the person as rows 8 to 13 do. Is there another formula that can do this subtraction or does the formula I am using require tweaking?
1653580853944.png
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I think you've got two problems here.

First of all, Excel isn't very good at dealing with dates before the year 1900 / 1904 - try Googling it.
There are ways round that - for example you could try storing the year as a separate field from the rest of the date.

Second - if you have vague dates like "Jul-Sep 1884", Excel is always going to struggle to deal with that.
I'm guessing an entry like this means that the date is not known exactly, but it's some time between those months.
For these, I think you'll have to pick a specific data in the range, such as 1st July, or 30th September, or somewhere in between.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top