SOLVED

Why can't I nest more than 8 IF Functions?

%3CLINGO-SUB%20id%3D%22lingo-sub-100022%22%20slang%3D%22en-US%22%3EWhy%20can't%20I%20nest%20more%20than%208%20IF%20Functions%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100022%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAccording%20to%20the%20Excel%20Help%20tutorial%2C%20you%20can%20nest%20up%20to%2064%20IF%20functions.%20But%20I%20am%20only%20permitted%20to%20nest%208.%20Excel%20returns%20this%20error%20message%20as%20soon%20as%20I%20press%20enter%3A%20The%20specified%20formula%20cannot%20be%20entered%20because%20it%20uses%20more%20levels%20of%20nesting%20than%20are%20allowed%20in%20the%20current%20file%20format.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20formula%3A%3C%2FP%3E%3CP%3E%3DIF(G22%26lt%3B%3D10%2C%2260%22%2CIF(G22%26gt%3B%3D11%2C%2275%22%2CIF(G22%26gt%3B%3D21%2C%2290%22%2CIF(G22%26gt%3B%3D31%2C%22105%22%2CIF(G22%26gt%3B%3D41%2C%22120%22%2CIF(G22%26gt%3B%3D51%2C135%22%2CIF(G22%26gt%3B%3D61%2C%22150%22%2CIF(G22%26gt%3B%3D71%2C%22165%22%2CIF(G22%26gt%3B%3D81%2C%22180%22%2CIF(G22%26gt%3B%3D91%2C%22195%22%2CIF(G22%26gt%3B%3D101%2C%22210%22%2CIF(G22%26gt%3B%3D111%2C%22225%22%2CIF(G22%26gt%3B%3D121%2C%22240%22%2CIF(G22%26gt%3B%3D131%2C%22255%22%2CIF(G22%26gt%3B%3D141%2C%22270%22%2CIF(G22%26gt%3B%3D151%2C%22285%22%2CIF(G22%26gt%3B%3D161%2C%22300%22%2CIF(G22%26gt%3B%3D171%2C%22315%22%2CIF(G22%26gt%3B%3D181%2C%22330%22%2C%22%22)))))))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBasically%2C%20if%20the%20test%20is%20not%20true%2C%20there%20should%20be%20an%20incremental%20increase%20of%2015%20each%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20am%20I%20doing%20wrong%20that%20prevents%20nesting%20beyond%20eight%20nests%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-100022%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20Desktop%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-100786%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20can't%20I%20nest%20more%20than%208%20IF%20Functions%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100786%22%20slang%3D%22en-US%22%3EYou're%20welcome!%3CBR%20%2F%3EYou%20can%20makr%20my%20answer%20as%20%22Best%20response%22%20if%20you%20ike%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-100349%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20can't%20I%20nest%20more%20than%208%20IF%20Functions%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100349%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20so%20much.%20I%20was%20not%20familiar%20with%20the%20VLOOKUP%20function%20but%20it%20works.%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-100238%22%20slang%3D%22en-US%22%3ERe%3A%20Why%20can't%20I%20nest%20more%20than%208%20IF%20Functions%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100238%22%20slang%3D%22en-US%22%3EYou%20have%20probably%20saved%20the%20file%20as%20an%20Excel%202003%20file%20type%2C%20which%20will%20limit%20this%20feature%20to%20what%20Excel%202003%20was%20capable%20of.%20But%20you%20shouldn't%20be%20using%20that%20many%20nested%20ifs.%20Create%20a%20small%20table%20which%20has%20the%20limits%20like%20so%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E10%2060%3CBR%20%2F%3E11%2075%3CBR%20%2F%3E21%2090%3CBR%20%2F%3E31%20105%3CBR%20%2F%3E41%20120%3CBR%20%2F%3E%3CBR%20%2F%3E(truncated%2C%20you%20get%20the%20idea)%3CBR%20%2F%3E%3CBR%20%2F%3ESuppose%20this%20table%20is%20on%20Sheet2!%24A%241%3A%24B%2419%20then%20use%20this%20formula%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3DVLOOKUP(G22%2CSheet2!%24A%241%3A%24B%2419%2C2%2CTRUE)%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

According to the Excel Help tutorial, you can nest up to 64 IF functions. But I am only permitted to nest 8. Excel returns this error message as soon as I press enter: The specified formula cannot be entered because it uses more levels of nesting than are allowed in the current file format.

 

My formula:

=IF(G22<=10,"60",IF(G22>=11,"75",IF(G22>=21,"90",IF(G22>=31,"105",IF(G22>=41,"120",IF(G22>=51,135",IF(G22>=61,"150",IF(G22>=71,"165",IF(G22>=81,"180",IF(G22>=91,"195",IF(G22>=101,"210",IF(G22>=111,"225",IF(G22>=121,"240",IF(G22>=131,"255",IF(G22>=141,"270",IF(G22>=151,"285",IF(G22>=161,"300",IF(G22>=171,"315",IF(G22>=181,"330","")))))))

 

Basically, if the test is not true, there should be an incremental increase of 15 each time.

 

What am I doing wrong that prevents nesting beyond eight nests?

 

4 Replies
best response confirmed by Sergei Baklan (MVP)
Solution
You have probably saved the file as an Excel 2003 file type, which will limit this feature to what Excel 2003 was capable of. But you shouldn't be using that many nested ifs. Create a small table which has the limits like so:



10 60
11 75
21 90
31 105
41 120

(truncated, you get the idea)

Suppose this table is on Sheet2!$A$1:$B$19 then use this formula:

=VLOOKUP(G22,Sheet2!$A$1:$B$19,2,TRUE)

Thank you so much. I was not familiar with the VLOOKUP function but it works. Thanks!

You're welcome!
You can makr my answer as "Best response" if you ike it.
Yes, My problem occurred when save file to .xls format . Problem Solved. Thanks@ Muza Wever