Adding multiple vlookups

G

Guest

I want to add 5 multiple vlookups together. Here's what I got:

=if(iserror(VLOOKUP(A2,ydt,2,false)),0,VLOOKUP(A2,ydt,2,false)+iserror(VLOOKUP(A2,wk1t,2,false)),0,VLOOKUP(A2,wk1t,2,false)+iserror(VLOOKUP(A2,wk2t,2,false)),0,VLOOKUP(A2,wk2t,2,false)+iserror(VLOOKUP(A2,wk3t,2,false)),0,VLOOKUP(A2,wk3t,2,false)+iserror(Vlookup(a2,wk4t,2,false)),0,vlookup(a2,wk4t,2,false)

But I keep getting an error message and it looks at the 2nd ,0, in the
formula.
 
G

Guest

It appears you have mismatched parenthesis. With your formula in b1,
=LEN(B1)-LEN(SUBSTITUTE(B1,"(","")) returns 16 and
=LEN(B1)-LEN(SUBSTITUTE(B1,")","")) returns 15. It looks like that missing
right parenthesis probably goes at the very end. I can't tell if there are
other errors, but this should get you started.
 
G

Guest

What are you trying to achieve here?
are you trying to say
=IF(ISERROR(VLOOKUP(A2,ydt,2,FALSE)),0,VLOOKUP(A2,ydt,2,FALSE)+IF(ISERROR(VLOOKUP(A2,wk1t,2,FALSE)),0,VLOOKUP(A2,wk1t,2,FALSE)+IF(ISERROR(VLOOKUP(A2,wk2t,2,FALSE)),0,VLOOKUP(A2,wk2t,2,FALSE)+IF(ISERROR(VLOOKUP(A2,wk3t,2,FALSE)),0,VLOOKUP(A2,wk3t,2,FALSE)+IF(ISERROR(VLOOKUP(A2,wk4t,2,FALSE)),0,VLOOKUP(A2,wk4t,2,FALSE))))))
 

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