Nested IFs?

Redwing2

New Member
Joined
Jan 7, 2015
Messages
10
Hi,
I'm looking for a formula to return TRUE or FALSE if any of the 4 cells in a row verify someone is over the age of 55 based on their Date of Birth. The cells maybe blank which tends to return an error. I used IF(ISNUMBER) to test. Something like this =IF ISNUMBER(F2) IF TRUE then IF Today()-F2/365>55 --If any of the cells are TRUE return TRUE, IF False test the next cell, and so on.

Thanks...
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Can you post a small sample of your data using the XL2BB button on the reply bar ?
 
Upvote 0
Here is one idea to consider. Note that the logical checks whether any date of birth is less than today's date - 55 years...so it will return TRUE if anyone is over 55. If you want 55 or over, change the sign to <=
mrexcel_20200408.xlsm
ABCDE
1DOB1DOB2DOB3DOB4Age (y)
24/13/19654/11/19824/11/1992FALSE
Sheet24
Cell Formulas
RangeFormula
E2E2=SMALL($A$2:$D$2,1)<DATE(YEAR(TODAY())-55,MONTH(TODAY()),DAY(TODAY()))
 
Upvote 0
Perhaps this?

20 04 13.xlsm
ABCDE
1DOB1DOB2DOB3DOB4Over 55
216-Apr-6511-Apr-8211-Apr-92FALSE
3FALSE
413-Apr-6511-Apr-5011-Apr-92TRUE
Over 55
Cell Formulas
RangeFormula
E2:E4E2=IF(COUNT(A2:D2),MIN(A2:D2)<=EDATE(TODAY(),-660))


Wasn't quite sure if all cells can be blank like row 3 above and, if so, whether you want FALSE or "" returned.
If you want "" in that circumstance, use

=IF(COUNT(A2:D2),MIN(A2:D2)<=EDATE(TODAY(),-660),"")
 
Upvote 0
@Redwing2

Your post has been reported as being cross posted with another site.

Whilst we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: > (Message Board Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Please provide the link(s) ASAP.
 
Upvote 0
Here is one idea to consider. Note that the logical checks whether any date of birth is less than today's date - 55 years...so it will return TRUE if anyone is over 55. If you want 55 or over, change the sign to <=
mrexcel_20200408.xlsm
ABCDE
1DOB1DOB2DOB3DOB4Age (y)
24/13/19654/11/19824/11/1992FALSE
Sheet24
Cell Formulas
RangeFormula
E2E2=SMALL($A$2:$D$2,1)<DATE(YEAR(TODAY())-55,MONTH(TODAY()),DAY(TODAY()))
Thanks, KRice. This is closer then I got but if all the cells are blank (a few of them are) then it returns #VALUE!
 
Upvote 0
Perhaps this?

20 04 13.xlsm
ABCDE
1DOB1DOB2DOB3DOB4Over 55
216-Apr-6511-Apr-8211-Apr-92FALSE
3FALSE
413-Apr-6511-Apr-5011-Apr-92TRUE
Over 55
Cell Formulas
RangeFormula
E2:E4E2=IF(COUNT(A2:D2),MIN(A2:D2)<=EDATE(TODAY(),-660))


Wasn't quite sure if all cells can be blank like row 3 above and, if so, whether you want FALSE or "" returned.
If you want "" in that circumstance, use

=IF(COUNT(A2:D2),MIN(A2:D2)<=EDATE(TODAY(),-660),"")

HI, thanks, Peter. This one works!!
 
Upvote 0
@Redwing2

Your post has been reported as being cross posted with another site.

Whilst we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: > (Message Board Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Please provide the link(s) ASAP.

Thanks. I posted on another site in case I did not receive any replies but members of this site have been very helpful!
 
Upvote 0
Yes, if all cells are blank, my earlier approach will return an error. The easy fix for that is to wrap the entire command in an IFERROR like this:
=IFERROR(SMALL(A3:D3,1)<DATE(YEAR(TODAY())-55,MONTH(TODAY()),DAY(TODAY())),"")

If you want nothing returned in the case of all empty cells, then leave the formula shown here, and if you want some other message displayed, just insert that message between the last set of double quotes.
 
Upvote 0

Forum statistics

Threads
1,215,325
Messages
6,124,252
Members
449,149
Latest member
mwdbActuary

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