+ Reply to Thread
Results 1 to 6 of 6

Sum for adjacent column of matching references

  1. #1
    Registered User
    Join Date
    07-22-2020
    Location
    UK
    MS-Off Ver
    Professional 2010
    Posts
    3

    Sum for adjacent column of matching references

    Hi,

    If anyone can assist, it would be a real help

    I have a table with a column of repeating references. Lets call them MR1. Alongside is a second column with figures which vary. So we get A1:A5 with MR1 and B1:B5 with a random numerical sequence. Below we have MR2 in column A and another set of numbers in column B.

    What I need to do is get a sum of all of the figures in column B which have the shared MR1 ref. Then the same for MR2 and so on. There is no consistent pattern with the number of matching refs in column A.

    I have 500 or so groups so a formula will save oodles of time vs manually summing each block.

    Is there a way to do this?

    Thank you!
    Attached Files Attached Files
    Last edited by MrM-X; 07-23-2020 at 04:10 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2506
    Posts
    13,792

    Re: Sum for adjacent column of matching references

    Hello MrM-X. Welcome to the forum.

    Text descriptions seldom give enough detail.

    Please note the instructions for attaching an Excel workbook in the 'gold' banner at the top of each page.
    Dave

  3. #3
    Registered User
    Join Date
    07-22-2020
    Location
    UK
    MS-Off Ver
    Professional 2010
    Posts
    3

    Re: Sum for adjacent column of matching references

    Thank you FlameRetired, example attached. I hope this helps to illustrate what I need.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Sum for adjacent column of matching references

    In D2 copied down:

    =IF(A3=A2,"",SUMIF($A$2:$A$25,A2,$B$2:$B$25))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    07-22-2020
    Location
    UK
    MS-Off Ver
    Professional 2010
    Posts
    3

    Re: Sum for adjacent column of matching references

    AliGW, thank you so much, this is perfect for me with adjustment of absolute refs to fit my main dataset.

    Wonderful, thank you very much indeed.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Sum for adjacent column of matching references

    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 relatively new 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. [SOLVED] Find matching value in one column to copy adjacent cell on same row
    By soradsauce in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-21-2020, 12:40 AM
  2. Replies: 6
    Last Post: 09-09-2018, 07:43 AM
  3. [SOLVED] Create Unique List based on matching value in adjacent column
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-06-2016, 01:29 PM
  4. Named references, referencing an adjacent column
    By T86157 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2015, 11:01 PM
  5. Replies: 1
    Last Post: 07-29-2015, 02:30 AM
  6. [SOLVED] How to Find a Matching Pattern and Retrieve Data from the Adjacent Column
    By Saarang84 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-10-2014, 09:58 PM
  7. Replies: 2
    Last Post: 06-12-2012, 06:39 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