Multiple If Stmts

K

Kgov

I've attempted to create a formula that by changing the value in one
designated cell would look up the the value in different vlookup ranges. the
formula is:

=IF($H8=1,(VLOOKUP($I8,$H$14:$M$92,3,IF($H8=2,(VLOOKUP($I8,H95:M173,3,IF($H8=3,(VLOOKUP($I8,H176:M254,3,0)))))))))

so if H8=1 then it would look up the above reference and return the value in
column 3. The formula works until I try and add multiple if stmts. Could
use your help....thanks
 
M

Mike H

Hi,

Try it this way

=CHOOSE(H8,VLOOKUP(I8,H14:M92,3),VLOOKUP(I8,H95:M173,3),VLOOKUP(I8,H176:M254,3))

Mike
 

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