+ Reply to Thread
Results 1 to 4 of 4

Adding multiple vlookups

  1. #1
    John K
    Guest

    Adding multiple vlookups

    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.

  2. #2
    Kevin Vaughn
    Guest

    RE: Adding multiple vlookups

    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.
    --
    Kevin Vaughn


    "John K" wrote:

    > 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.


  3. #3
    kassie
    Guest

    RE: Adding multiple vlookups

    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))))))


    "John K" wrote:

    > 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.


  4. #4
    Kevin Vaughn
    Guest

    RE: Adding multiple vlookups

    Oops, this looks more like it will work then what I said.
    --
    Kevin Vaughn


    "kassie" wrote:

    > 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))))))
    >
    >
    > "John K" wrote:
    >
    > > 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.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1