Nested Ifs, how many levels?

JeffGrant

Well-known Member
Joined
Apr 7, 2021
Messages
516
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am looking for some advice.

I have a Nested If statement, such is = If(logic, if true, If(logic, if true....... that is 25 levels deep and is likely to go another 5 levels.

Is there a better way of handling this?
 

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.
Well, there may be, but you haven't provided any useful information !
Rich (BB code):
If(logic, if true, If(logic, if true..
tells us nothing.
 
Upvote 0
Well actually Michael, you have answered the question. By saying there maybe a better way indicates that there could be. That is all I was looking for. Thanks
 
Upvote 0
Hmmm, I was suggesting that there could be many and varied methods depending on what "if True" you are looking for.
If it's a table of data, it could be a LOOKUP, VLOOKUP,XLOOKUP oR INDEX?MATCH !!
It could Be a SUMPRODUCT as well....the list goes on .....hope you find your solution.. :cool: (y)
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,947
Members
449,095
Latest member
nmaske

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