+ Reply to Thread
Results 1 to 9 of 9

Sum according to unique data in row and column

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    67

    Sum according to unique data in row and column

    Dear Experts,

    I have different teams in rows which reflect more than one in randomly and different places in different columns with values in matrix in data sample sheet. I need sum of values for teams according to places in result working sheet. For better understanding I have attached template and have shown result for Team A which is marked in yellow colour. Since huge data wont possible to do addition manually. Need simple formula base result. Pls. help.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Sum according to unique data in row and column

    Here is my solution. I sorted the data sample according to Place, then used a sumif formula to get the totals for all combinations. I then picked the 3 you were looking for. Hide what you don't want to see.
    Good luck!
    Attached Files Attached Files

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

    Re: Sum according to unique data in row and column

    Another option, in D4 copied down
    =SUMPRODUCT(('Data sample'!$B$4:$B$11=C4)*('Data sample'!$C$2:$I$2=B4),'Data sample'!$C$4:$I$11)

  4. #4
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Sum according to unique data in row and column

    That's great. I need to study SUMPRODUCT.

  5. #5
    Registered User
    Join Date
    11-24-2013
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    67

    Re: Sum according to unique data in row and column

    Above formula works fine. But unfortunately neither I can rearrange rows or align or reshuffle columns to suite the formula due voluminous data and same is to share to other teams in part for processing and then consolidation again. Is it possible to work only on table range from B2 to J11 in "Data sample" worksheet without further manual activities like done from L2 to AI12 in "Data sample" worksheet and get result ? Appreciate your efforts.

    Regards,

  6. #6
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Sum according to unique data in row and column

    Not sure I understand. Did Fluff13's formula not work? It should work by itself without making additions. If your chart is bigger then adjust the points inside the formula and it should work. Rearrangements are not needed as far as I can tell.

  7. #7
    Registered User
    Join Date
    11-24-2013
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    67

    Re: Sum according to unique data in row and column

    Fluff13's formula worked only after he additionally rearranged the data from L2 to AI12 in "Data sample" worksheet. But if you refer my original attachment I had given table from B2 to J11 in "Data sample" worksheet. By referring that table only I need formula based result in "Result working" worksheet. Hope I cleared your doubts.

    Regards,

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

    Re: Sum according to unique data in row and column

    I did not rearrange your data in any way, the formula looks at the data in cells C4:I11 based on the values in B4:B11 & C2:I2
    In other words, it does exactly what you asked for.
    Why not try it?

  9. #9
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Sum according to unique data in row and column

    Hi vijayca,
    It was my solution, not Fluff13, where I added the extra columns. I did not rearrange the originals either. Fluff13 provided a solution that works with only the provided information by putting his formulas directly in the appropriate cells, D4-D6 of the Result tab. I plugged it in and verified that. Go look at his first entry in this chain. It works!

    Squeaky.

+ 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] Count number of unique values corresponding to unique data in another column
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2019, 12:32 PM
  2. Replies: 2
    Last Post: 11-11-2015, 10:25 AM
  3. Replies: 0
    Last Post: 11-10-2015, 05:59 PM
  4. [SOLVED] Count unique data in Column, but exclude if certain data is in another Column
    By dgroff in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-12-2014, 01:41 PM
  5. Replies: 7
    Last Post: 06-27-2014, 02:26 AM
  6. [SOLVED] Unique Alphanumeric number increament in column B when data in column E is entered
    By Bharathi27 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-10-2013, 12:12 PM
  7. [SOLVED] List Unique Data referencing column C for Team and column B for Name
    By arekkusu03 in forum Excel General
    Replies: 7
    Last Post: 09-04-2012, 09:40 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