Multiple IF statement - Alternative method

mrsushi

Board Regular
Joined
Nov 18, 2006
Messages
180
Office Version
  1. 2010
HI, I have an IF statement which cannot add more if statements because it uses more levels of nesting than are allowed in the current file format.

Is there an alternative way of writing the below formula?

Many thanks

=IF(G3="ORDINARY SHARE","YES",IF(G3="AUTH UNIT TRUST-CAPITAL UNITS","YES",IF(G3="RIGHTS","YES",IF(G3="AUTH UNIT TST-INC(CGT EXEMPT)","YES",IF(G3="ICAV Capital Units","YES",IF(G3="ADR","YES",IF(G3="REIT","YES",IF(G3="OEIC","YES","NO"))))))))
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about
Excel Formula:
=IF(OR(G3={"ORDINARY SHARE","AUTH UNIT TRUST-CAPITAL UNITS","RIGHTS","AUTH UNIT TST-INC(CGT EXEMPT)","ICAV Capital Units","ADR","REIT","OEIC"}),"YES","NO")
 
Upvote 0
How about
Excel Formula:
=IF(OR(G3={"ORDINARY SHARE","AUTH UNIT TRUST-CAPITAL UNITS","RIGHTS","AUTH UNIT TST-INC(CGT EXEMPT)","ICAV Capital Units","ADR","REIT","OEIC"}),"YES","NO")

Hi Fluff,

Thank you for the posting. I think its missing a parenthesis....can you advise please?
 
Upvote 0
Fluff,
Can Or, And statements be stacked the same in VBA? Contained in brackets like you did above? That would surely save me some typing! Lol
 
Upvote 0
Depends on what exactly you mean, but as that has nothing to do with this thread you would need to start your own.
 
Upvote 0
(y)
Thank you Chipsworld. :)(y)

If I wanted a change only one of the criteria ie N8="Manual" to produce "Manually Overwritten" instead of the " "Ladder used", how would the below be changed please?

=IF(OR(N8="JPM EM-BIG Price", N8="High Yield",N8="BarCap-GCF",N8="Manual",N8="Bloomberg BVAL(BVIC)"),N8&" Ladder used","")
 
Upvote 0
How about
Excel Formula:
=IF(OR(N8={"JPM EM-BIG Price","High Yield","BarCap-GCF","Bloomberg BVAL(BVIC)"}),N8&" Ladder used",IF(N8="Manual","Manually Overwritten",""))
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,539
Members
449,038
Latest member
Guest1337

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