Formual Help

tmcshane224

New Member
Joined
Jan 31, 2011
Messages
30
Hi All,

I can't seem to get this to work.

=IF(AND(OR(AI7="a",AJ7="a",AK7="a"),(IF(R8<>"F",AND((R9<11),(R9<>"")),AND(R8="F",R9<11,R9<>"")))),"a","")

When I type M in R8 and 11 or above in R9 it doesnt put an "a" in my cell.

When I type F in R8 and 11 or above in R9 it doesnt put an "a" in my cell.

When I don't type M or F it seems to work when I put a number below 11 in R9.

I need it to populate the cell is there is an M in R8 and any age in R9 and if the there is an F in R8 and an age under 11 in R9.

Help would be great thanks.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
So try breaking down your formula into smaller test, like

=AND((R9<=11),(R9<>""))
=AND(R8="F",R9<=11,R9<>"")
then you can see where your statement is failing
 
Upvote 0
Hi,

From what I understood, this should work.

=IF(AND(IF(R8="M","a",IF(AND(R8="F",R9<11),"a",""))="a",OR(AI7="a",AJ7="a",AK7="a")),"a","")

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,814
Members
452,945
Latest member
Bib195

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