+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Vlookup & SUM

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Tennessee
    MS-Off Ver
    Excel 2007
    Posts
    29

    Question Vlookup & SUM

    I want to create a formula that will lookup an item in a table array and return the sum of multiple column index numbers. This is what I have so far:

    =VLOOKUP(B45,'Qtr2 CY BEx'!$B$26:$CF$580,{6,12,18},FALSE)

    It works, but only partially. It returns only what it finds in column 6. I thought the {} would accomplish what I needed.

    I did try this and it seemed to work, =VLOOKUP(B45,'Qtr2 CY BEx'!$B$26:$CF$580,6,FALSE) + =VLOOKUP(B45,'Qtr2 CY BEx'!$B$26:$CF$580,12,FALSE) ....and so on.


    but I really don't want to have to repeat this multiple times throughout such a large spreadsheet, I'm bound to screw it up.



    Does anyone have any suggestions?

    Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup & SUM

    Try:

    =SUMPRODUCT(VLOOKUP(B45,'Qtr2 CY BEx'!$B$26:$CF$580,{6,12,18},FALSE))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Vlookup & SUM

    how about sumifs?

    something like this

    sumifs.xlsx

    or what NVBC said lol beat to it again
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  4. #4
    Registered User
    Join Date
    05-30-2012
    Location
    Tennessee
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Vlookup & SUM

    Try:

    =SUMPRODUCT(VLOOKUP(B45,'Qtr2 CY BEx'!$B$26:$CF$580,{6,12,18},FALSE))

    That worked wonderfully! I can't thank you enough. I'm on a deadline and I'm trying to revamp this monstrous spreadsheet that I didn't create! You are now my new best friend!!

    Thanks NBVC!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup & SUM

    You're welcome and good luck!

+ 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