+ Reply to Thread
Results 1 to 5 of 5

I want to make a summation of all values that equal my Vlookup value.

  1. #1
    Registered User
    Join Date
    07-07-2018
    Location
    Belgium
    MS-Off Ver
    2017
    Posts
    2

    Lightbulb I want to make a summation of all values that equal my Vlookup value.

    I have 2 columns with different data: column A with names, column B with different values. The same name can be used multiple times in column A.

    I want to create a table with the total value (so the sum of the different values with the samen name) for each unique name.

    Since Vlookup only shows me the first match and I need to sum of all matches, how can I do this? the number of rows can be infinite.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: I want to make a summation of all values that equal my Vlookup value.

    You will need to use the SUMIF function:

    https://support.office.com/en-us/art...2-1697a653039b

    https://exceljet.net/excel-functions...sumif-function

    The number of rows cannot be infinite: Excel has an upper (finite) limit of 1,048,576.
    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
    07-07-2018
    Location
    Belgium
    MS-Off Ver
    2017
    Posts
    2

    Re: I want to make a summation of all values that equal my Vlookup value.

    How would that syntax look like with this simplified example?

    example.JPG

    Thanks a lot for your help

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: I want to make a summation of all values that equal my Vlookup value.

    Like this (are you not able to follow the information in the links I gave you?):

    =SUMIF(lookup_range,criteria,sum_range)

    So, this in E2 copied down:

    =SUMIF(A$2:A$8,D2,B$2:B$8)

    In Belgium you might need this:

    =SUMIF(A$2:A$8;D2;B$2:B$8)

    i.e. semi-colons instead of commas.
    Last edited by AliGW; 07-07-2018 at 05:07 AM.

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: I want to make a summation of all values that equal my Vlookup value.

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

+ 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. Please help me figure out how to make this summation work
    By egoldin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2017, 06:20 PM
  2. How to make the summation to zero?
    By lubbamkt in forum Excel General
    Replies: 3
    Last Post: 06-28-2014, 01:39 PM
  3. Replies: 6
    Last Post: 01-31-2014, 10:00 PM
  4. VLookup 2 or more values that equal a total.
    By weaseltron in forum Excel General
    Replies: 2
    Last Post: 10-26-2012, 09:46 AM
  5. [SOLVED] How to make a loop stop running when two values get close to each other instead of equal
    By Clue_Less in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2012, 07:06 PM
  6. Replies: 9
    Last Post: 07-13-2011, 09:59 AM
  7. distributing values to make them equal
    By Mishka1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2008, 12:10 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