You are here:

# Excel/Nest of More than 6

Question
Here is what I have; I need to add three more to make a total of nine in the nest. Is that possible? If not, is there another way?

=IF(K14=1,(0.29*K13),IF(K14=2,(0*K13),IF(K14=3,(0*K13),IF(K14=4,(0.4*K13),IF(K14=5,(0.28*K13),IF(K14=6,(0*K13)))))))

Thank you for your help!

Tawnie,

In excel 2007 and later you can nest 64 deep so you could continue with your current nesting.

In earlier versions, you would need another approach. You could put a table in another location such as in A1:B9 of Sheet2

A1:  1  B1:  0.29
A2:  2  B2:  0
A3:  3  B3:  0
A4:  4  B4:  0.4
etc

then you formula would be

=Vlookup(K14,Sheet2!\$A\$1:\$B\$9,2,False)*K13

or you could use choose

=choose(K14,0.29,0,0,0.4,0.28,0,value for 7, value for 8, value for 9)*K13

--
Regards,
Tom Ogilvy

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Tom Ogilvy

##### Expertise

Selected as an Excel MVP by Microsoft since 1999. Answering Excel questions in Allexperts since its inception in 2001. Able to answer questions on almost all aspects of Excel's internal capabilities. If seeking a VBA solution, please specify that in your question itself so I give you the answer you want. [Excel has weak protection - if you are distributing an application, I don't answer questions on how to protect your project from your users.]

##### Experience

Extensive experience.

Education/Credentials
Master of Science (MS) degree Operations Research (ORSA)

Awards and Honors
Microsoft MVP in Excel.