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
 
You could try these. I think they both do what you want.
Code:
=IF(AND(CHOOSE(COUNTBLANK(G12:G13)+1,CopyRME!$AA9,CopyRME!$AA8,CopyRME!$AA7)="REPORT",CHOOSE(COUNTBLANK(G12:G13)+1,CopyRME!$Z9,CopyRME!$Z8,CopyRME!$Z7)="Within Limits"),CHOOSE(COUNTBLANK(G12:G13)+1,CopyRME!$R9,CopyRME!$R8,CopyRME!$R7),"")

=CHOOSE(COUNTBLANK(G12:G13)+1,IF(AND(CopyRME!$AA9="REPORT",CopyRME!$Z9="Within Limits"),CopyRME!$R9,""),IF(AND(CopyRME!$AA8="REPORT",CopyRME!$Z8="Within Limits"),CopyRME!$R8,""),IF(AND(CopyRME!$AA7="REPORT",CopyRME!$Z7="Within Limits"),CopyRME!$R7,""))
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,391
Messages
6,119,244
Members
448,879
Latest member
VanGirl

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