Cannot figure out what I am doing wrong

BokiB

New Member
Joined
Jul 19, 2010
Messages
40
Hey,

I have this formula and I cannot figure out what I am doing wrong:

=IF(AND(E3="Australia";I3="Canada");'Exchange rates'!E2); IF(AND(E3="Australia";I3="New Caledonia");'Exchange rates'!M2))

Am I missing a bracket somewhere, or something else I am doing wrong?

Thanks for your help!
 
It is not the maximum number of IF statements, it is the maximum number of NESTED functions that is relevant, and this barrier has been removed in Excel 2007.

For instance,
=IF(A1=10,"Yes",IF(A1=17,"Maybe",...
is just one nested function. Whereas,
=IF(A1=10,"Yes","")&IF(A1=17,"Maybe","")&...
is no nested functions (a bit of a crass example, but hopefully you get the point.

If you have 33 conditions to test, it would probably be better to have a lookup table, and check against that.
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,215,746
Messages
6,126,647
Members
449,325
Latest member
Hardey6ix

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