IF Formula and more levels

ashaari777

New Member
Joined
Oct 17, 2016
Messages
18
Office Version
  1. 2019
Platform
  1. MacOS
Dear Gents,

I need some help please. this Formula not working ( the specified formula cannot be entered because it uses more levels of nesting than are allowed in the current file format )
do you have any idea to solve this .

=IF(H2:H2="401";"A";
IF(H2:H2="403";"B";
IF(H2:H2="408";"C";
IF(H2:H2="411";"D";
IF(H2:H2="412";"E";
IF(H2:H2="413";"F";
IF(H2:H2="416";"G";
IF(H2:H2="417";"H";
IF(H2:H2="418";"I";
IF(H2:H2="419";"J";
IF(H2:H2="420";"K";
IF(H2:H2="421";"L";
IF(H2:H2="424";"M";
IF(H2:H2="425";"N";
IF(H2:H2="427";"O";
IF(H2:H2="428";"P";
IF(H2:H2="429";"Q";
IF(H2:H2="430";"R";
IF(H2:H2="431";"S";
IF(H2:H2="434";"T";
IF(H2:H2="435";"U";
IF(H2:H2="438";"V";
IF(H2:H2="439";"W";
IF(H2:H2="440";"X";
IF(H2:H2="449";"Y";)))))))))))))))))))))))))
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hello,

A simple solution :

1. Create a table with your 26 Letters

2. Use the vlookup() function

HTH
 
Upvote 0
deleted....
 
Last edited:
Upvote 0
A table of values will certainly be better. You can hard code the table array though...

=VLOOKUP(D1, {401,"A";403,"B";408,"C";411,"D";412,"E";413,"F";416,"G";417,"H";418,"I";419,"J";420,"K";421,"L";424,"M";425,"N";427,"O";428,"P";429,"Q";430,"R";431,"S";434,"T";435,"U";438,"V";439,"W";440,"X";449,"Y"}, 2, 0)

or if you think that won't look nice you can put the table array in a defined name

MyTable - ={401,"A";403,"B";408,"C";411,"D";412,"E";413,"F";416,"G";417,"H";418,"I";419,"J";420,"K";421,"L";424,"M";425,"N";427,"O";428,"P";429,"Q";430,"R";431,"S";434,"T";435,"U";438,"V";439,"W";440,"X";449,"Y"}

=VLOOKUP(D1, MyTable, 2, 0)
 
Upvote 0
Thank you guys for your support.
I just used VLOOKUP function and it's work like what I want.
 
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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