IF ISNUMBER formula not working for two date fields

csenor

Board Regular
Joined
Apr 10, 2013
Messages
168
Office Version
  1. 365
Platform
  1. Windows
Hello all. I need to calculate Deceased Date in a list of about 1000 records. I have birthdates and deceased dates if the person has passed away. Not everyone in my list has passed away. My logical test is not working properly and I don't know why. There are instances where I only know one of the dates and not both. In that case, I don't want a calculation. As much as I can tell, my columns are formatted as dates, because I can filter by date using the dropdown boxes. I added a column1 below and I get a FALSE answer to indicate the DOB cell is not a number, yet I get an age calculation of 117.

Any help would be appreciated.

=IF(AND(ISNUMBER([@[Deceased Date]]),([@DOB])),ROUND(([@[Deceased Date]]-[@DOB])/365,0),"")

1604444211861.png

1604444419316.png
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
It looks like there is no function surround the ([@DOB]) part, could that be the problem?
 
Upvote 0
It looks like there is no function surround the ([@DOB]) part, could that be the problem?
It was. As soon as I posted it, I figured it out. That's how it usually works. I wish there was an undo post button. Thank you for responding.
 
Upvote 0

Forum statistics

Threads
1,214,613
Messages
6,120,515
Members
448,968
Latest member
Ajax40

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