Multi level ifs function

ohmedic88

Board Regular
Joined
Jun 24, 2013
Messages
124
I'm working in Excel 365 and I have a multi level if function that I'm having trouble figuring out.

I'm not sure how to write the formula.

I want to add:
IF G12 is blank and G13 is blank use AA7
IF G12 not blank and G13 is blank use AA8
IF G12 is blank and G13 is not blank use AA8
IF G12 not blank and G13 not blank use AA9

to this formula:
=IF(AND(CopyRME!$AA9="REPORT",CopyRME!$Z9="Within Limits"),CopyRME!$R9,"")

I need Z9 and R9 to change according to the Row # as well. So the first cell ref above would be AA7 Z7 and R7 and so on depending on the G12 and G13 contents.

Much appreciated any help.

ohmedic88
G
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi there,
Give this one a try.

Code:
=IF(AND(ISBLANK(G12),ISBLANK(G13)),AA7,IF(OR(AND(G12<>"",ISBLANK(G13)),AND(G12<>"",ISBLANK(G13))),AA8,IF(AND(G12<>"",G12<>""),AA9)))
 
Upvote 0
I didn't get this one to work properly. The test I ran returned the value in AA9, but I need the value in R8. Maybe I'm confused do I need to add my original formula to your calculation?
 
Upvote 0
I haven't yet implemented your solution, but I'm confused. Do I also need to add my formula to part of your calculation.

Eric
 
Upvote 0
My formula should return this part of the OP
IF G12 is blank and G13 is blank use AA7
IF G12 not blank and G13 is blank use AA8
IF G12 is blank and G13 is not blank use AA8
IF G12 not blank and G13 not blank use AA9

Its not clear what you want about R9
 
Upvote 0
My formula should return this part of the OP


Its not clear what you want about R9


I am trying to align with a row of data on the CopyRME tab. It is the formula at the bottom of my original comment.
=IF(AND(CopyRME!$AA9="REPORT",CopyRME!$Z9="Within Limits"),CopyRME!$R9,"")

So if G12 and G13 is blank I need to align data to AA7 Z7 and R7 values
So if G12 and G13 is not blank I need to align data to AA9 Z9 and R9 values
If 1 is blank and the other is not I need to align data to AA8 Z8 and R8

I'm not sure how to write that code. So it will adjust to the correct result.

Eric
 
Upvote 0
I need to the Row number to change so it finds the correct data in the correct location of the report that I have.
 
Upvote 0
Ok I finaly was able to research the choose formula and I just put my if formula in the aa7, aa8 and aa9. makes for a long formula but I'm gonna try to test it out today.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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