+ Reply to Thread
Results 1 to 12 of 12

VLOOKUP SUM multiple values...

  1. #1
    Registered User
    Join Date
    12-18-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    4

    VLOOKUP SUM multiple values...

    Hi All,

    Apologies if this question has been asked already!

    I am having trouble with the vlookup as it's only taking the first value it finds in the list.

    All i want to do is to vlookup a value based on a unique ID (made up of a country&date) and match this same Unique ID on another tab to pull in the totals, though it's only pulling in the 1st one it finds!

    I'm using this right now and it doesnt work

    =SUM(IFERROR(VLOOKUP(I9,'Online Data'!$A:$F,8,0),"-"))


    would really appreciate any advise.

    Thanks,

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: VLOOKUP SUM multiple values...

    USE SUMIF FUNCTION Otherwise attach a sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: VLOOKUP SUM multiple values...

    You need SUMIF

    =SUMIF('Online Data'!$A:$A,I9,'Online Data'!$F:$F)

    Adjust ranges accordingly
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: VLOOKUP SUM multiple values...

    The table you have defined in the VLOOKUP function is only 6 columns wide, but you are trying to return data from the 8th column, so it is bound to return an error. Use SUMIF, as others have suggested.

    Pete

  5. #5
    Registered User
    Join Date
    12-18-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    4

    Re: VLOOKUP SUM multiple values...

    Ive attached my file. Im still struggling =(

    Really grateful for all the quick responses Im getting, you guys are ace!
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: VLOOKUP SUM multiple values...

    Try

    IGNORE se next post
    Last edited by JohnTopley; 12-18-2015 at 09:48 AM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: VLOOKUP SUM multiple values...

    =SUMIF('Online Data'!$A:$A,I9,'Online Data'!$F:$F)

  8. #8
    Registered User
    Join Date
    12-18-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    4

    Re: VLOOKUP SUM multiple values...

    Thanks for that, i tried the formula but it pulling int he same values as before unfortunately

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: VLOOKUP SUM multiple values...

    The SUMIF works: my other post was in error.

  10. #10
    Registered User
    Join Date
    12-18-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    4

    Re: VLOOKUP SUM multiple values...

    Yes! It works now John.

    Thanks so so much, you don't know how much this actually has helped me =)

    Cheers to everyone else, and have a merry xmas all

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: VLOOKUP SUM multiple values...

    To be fair you were given the solution in posts #2 and #3!

    Merry Christmas to you.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: VLOOKUP SUM multiple values...

    If SOLVED can you please mark as such ("Thread Tools" at top of first post)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 07-25-2015, 01:41 PM
  2. [SOLVED] Vlookup multiple criteria returning multiple values
    By ykobure in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-16-2015, 07:28 AM
  3. Replies: 13
    Last Post: 10-13-2014, 02:00 AM
  4. Replies: 3
    Last Post: 07-24-2014, 01:58 AM
  5. Vlookup function to return multiple values from multiple sheets
    By bsamant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-13-2013, 11:31 AM
  6. VLookup - Return multiple values in multiple cells HELP
    By sreeves1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 12:58 PM
  7. Replies: 6
    Last Post: 03-24-2011, 06:19 AM

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