+ Reply to Thread
Results 1 to 16 of 16

Summing values in ONE column using VLOOKUP

  1. #1
    Registered User
    Join Date
    10-28-2020
    Location
    oslo
    MS-Off Ver
    Office 365
    Posts
    5

    Summing values in ONE column using VLOOKUP

    Hi all revered Excel gods,

    I have a question.

    I have a sheet with payments from several vendors throughout the year, and some vendors have paid multiple times throughut the year.

    I'm trying to use VLOOKUP to return the SUM of these payments from the same column - so essentially return values based on a reference value, but if the value appears twice it sums these two, and if it only appears once it returns only that one value. Am I making sense?

    I only seem to find resources on how to sum values from MULTIPLE columns.

    THanks in advance to all of you kind souls,

    Best,
    Scott

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Summing values in ONE column using VLOOKUP

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    Which version of Excel are you using? Please update your profile with either 2019 or 365 as appropriate.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-28-2020
    Location
    oslo
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Summing values in ONE column using VLOOKUP

    Hey! Thanks for swift response. Done, dataset uploaded and profile update.

    THanks!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,126

    Re: Summing values in ONE column using VLOOKUP

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-21-2020
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    18

    Re: Summing values in ONE column using VLOOKUP

    why not use simple sumif instead of vlookup and sum??????

    =SUMIF(payments!$A$2:$A$39, A2, payments!$B$2:$B$39).

  6. #6
    Registered User
    Join Date
    10-28-2020
    Location
    oslo
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Summing values in ONE column using VLOOKUP

    Ah sweeet two responses!

    Unfortunately your suggestions do not work. I want it to return the single value (from the paid USD columns in 'payments' column) if it occurs once (based on the reference value 'vendor number') and if the reference value occurs twice it sums the amount paid.

    :

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,126

    Re: Summing values in ONE column using VLOOKUP

    Which is exactly what both formulae do. Did you actually try them?

  8. #8
    Registered User
    Join Date
    10-28-2020
    Location
    oslo
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Summing values in ONE column using VLOOKUP

    Yup, I did but I didn't get it to work. I just ended up getting a bunch of '0's. Attached (hoping I've made a newbie mistake)

    I'm sorry I'm not the most adept at Excel!

    Thanks again! really appreciate it
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-21-2020
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    18

    Re: Summing values in ONE column using VLOOKUP

    That is what both responses are for. Either option will give you the same result.
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Summing values in ONE column using VLOOKUP

    You need the formula in an adjacent column (to the right of the values in B). You have tried to overwrite the values!

  11. #11
    Registered User
    Join Date
    10-21-2020
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    18

    Re: Summing values in ONE column using VLOOKUP

    Just use sumifs add one s mean sumifs and you are good to go.

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,126

    Re: Summing values in ONE column using VLOOKUP

    The formula you have used should be SUMIFS not SUMIF

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Summing values in ONE column using VLOOKUP

    Yup! I didn't realise that the values are on the other sheet. Doh!!!

  14. #14
    Registered User
    Join Date
    10-28-2020
    Location
    oslo
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Summing values in ONE column using VLOOKUP

    It works! You guys are brilliant, thank you so so much for being EXCEL-men-at-arms (and women) !!

    Much appreciated!

  15. #15
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,126

    Re: Summing values in ONE column using VLOOKUP

    You're welcome & thanks for the feedback.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Summing values in ONE column using VLOOKUP

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 5
    Last Post: 05-03-2016, 04:52 PM
  2. Replies: 5
    Last Post: 12-24-2013, 08:38 AM
  3. [SOLVED] Summing values in one column based on their adjacent values
    By undoubtedlymegz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2013, 04:57 PM
  4. summing VLOOKUP values
    By abrilabs in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-19-2013, 10:33 PM
  5. Replies: 2
    Last Post: 11-11-2008, 11:19 AM
  6. Summing Vlookup Values
    By Marie1uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2007, 04:35 PM
  7. Summing with identical Vlookup values
    By kanuvas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2005, 06:36 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