Nested IF Statment?

christrz

New Member
Joined
Mar 6, 2004
Messages
15
Hi all - I'm trying return a calculation based on 3 possible conditions but can't seem to find my way.

What I am trying to do is:

If AA7 = "Tab" then Y7 x AN7
If AA7 = "Broad" then Y7 x AN8
If AA7 = "Q-fold" then Y7 x AN9

Any help is appreciated

C
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about this?

=IF(AA7="Tab",Y7*AN7,IF(AA7="Broad",Y7*AN8,IF(AA7="Q-fold",Y7*AN9,"error")))

You can replace the "error" with whatever you want the value to be if A7 does not equal Tab, Broad, or Q-fold.

Pete
 
Upvote 0
Thanks again all for the help - I now have sort of a follow up

The nested IF works well and now has 3 iterations which gibe me the KG per copy based on page width.

I now need to display the correct answer based on which one of the 3 iterations is in effect...something like this..

IF U7 = "12" Then cell Z29 displays the answer in cell AN11
IF U7 = "12.5" Then cell Z29 displays the answer in cell AV11
IF U7 = "14" Then cell Z29 displays the answer in cell AR11

I tried using the same syntax as above - but I can't seem to get it to do anything but display the error

Thanks again
 
Upvote 0
Thanks again all for the help - I now have sort of a follow up

The nested IF works well and now has 3 iterations which gibe me the KG per copy based on page width.

I now need to display the correct answer based on which one of the 3 iterations is in effect...something like this..

IF U7 = "12" Then cell Z29 displays the answer in cell AN11
IF U7 = "12.5" Then cell Z29 displays the answer in cell AV11
IF U7 = "14" Then cell Z29 displays the answer in cell AR11

I tried using the same syntax as above - but I can't seem to get it to do anything but display the error

Thanks again
Entered in Z29:

=IF(U7=12,AN11,IF(U7=12.5,AV11,IF(U7=14,AR11,"")))
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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