+ Reply to Thread
Results 1 to 4 of 4

Combine Values from several rows into 1

  1. #1
    Forum Contributor
    Join Date
    12-18-2012
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    158

    Combine Values from several rows into 1

    Hi!

    This sohuld be an easy thing that I feel like I have done many times, but I am drawing a blank and hoping I can get help here (like many times before! )

    Since the issue is, from what I think, easy Ill start by explaning it, if anyone needs an example file I'll fix one but I think its simple enough!

    A1: John B1: 5
    A2: Sarah B2: 1
    A3: Tom B3: 14
    A4: John B4: 23
    A5: Tom B5: 13
    A6: Sarah B6: 76


    I want E1 to show The combined value from B from John.
    I want E2 to show the combined value from B from Sarah
    I want E3 to show the combined value from B from Tom

    So basically I want D1 to show the name John only once, but E1 the value from all entries (in this case, 28) and the same for the other names.

    I tried using the Consolidate function but I dont know if the format is off or what is causing issues but I am getting the names to combine properly, but the numbers next to them just dont show up at all so I am hoping for a formula that can grab this for me.

    As stated, if you want an example file I will throw one together, Got a meeting in a few minutes so wanted to throw this question out there before heading into the meeting!

    Thank you in advance!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Combine Values from several rows into 1

    You will want to use the Sumif function. Here is the syntax for that.

    https://www.techonthenet.com/excel/formulas/sumif.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    12-18-2012
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    158

    Re: Combine Values from several rows into 1

    Quote Originally Posted by alansidman View Post
    You will want to use the Sumif function. Here is the syntax for that.

    https://www.techonthenet.com/excel/formulas/sumif.php
    And once again Excelforum users coming to my rescue, exactly what I was looking for and it annoys me I couldnt find it but I have used that many times before, it's just one of those days! Will add Rep! thank you! :D

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Combine Values from several rows into 1

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

    Also, as a member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Combine duplicate rows with unique values
    By newyorknix in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-10-2020, 08:29 AM
  2. [SOLVED] Combine Duplicate Rows and Sum the Values
    By Neuk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2018, 09:17 AM
  3. [SOLVED] Need a Macro to Transpose and Combine like Values from rows to columns
    By Isara-NJ in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-27-2017, 08:38 AM
  4. Replies: 7
    Last Post: 03-25-2016, 07:02 PM
  5. [SOLVED] Combine values multiple rows
    By spiklz in forum Excel General
    Replies: 5
    Last Post: 09-06-2015, 09:13 PM
  6. Combine rows with similar values in one column.
    By sgtpepper in forum Excel General
    Replies: 1
    Last Post: 12-06-2011, 09:31 PM
  7. Combine rows with similar values in one column.
    By sgtpepper in forum Excel General
    Replies: 3
    Last Post: 12-06-2011, 01:43 PM

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