using =IF function with 12 variables

  • Thread starter swell estimator
  • Start date
S

swell estimator

intent: use 12 variables to get 3 products - 12, or 16, or 24

this formula works

=IF(A4="2 x 6 12 in centers",12,IF(A4="2 x 8 12 in centers",12,
IF(A4="2 x 10 12 in centers",12,IF(A4="2 x 12 12 in centers",12))))

but I have 8 more variables to go ending with ("2 x 12 24 in centers",24)
and the equation is going to be too long.

I tried using the special characters question mark "?" and asterik "*" but
got nowhere.

Any help out there? thank you - Chris, a swell estimator
 
J

Joe Mac

Excel will only allow for a maximum of 7 nested "IFs" in a formula... Not
knowing the full extent of your worksheet from the details presented , you
might try to use a Vlookup table, Column A contains the criteria and Column B
contains the value that you desire, then have you formula look up the desire
value...

Column "A" Column "B"
2 x 6 12 in centers 12
2 x 8 12 in centers 12
2 x 10 12 in centers 12
 
K

Ken Johnson

What does the -- do before the MID?
Thanks,
Barb Reinhardt

OPs formula expressed a desire to return a number (12) not text ("12")
hence the -- operator.

Ken Johnson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top