+ Reply to Thread
Results 1 to 17 of 17

Sum the entries in a column by avoiding duplicates in multiple columns

  1. #1
    Registered User
    Join Date
    02-05-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    7

    Sum the entries in a column by avoiding duplicates in multiple columns

    S.No. ID SEM TCP
    1 R111010 E1S1 158
    2 R111010 E1S1 158
    3 R111010 E1S1 158
    4 R111010 E1S2 175
    5 R111010 E1S2 175
    6 R111010 E1S2 175
    7 R111010 E2S1 182
    1 R111010 E2S1 182
    2 R111010 E2S1 182
    3 R111010 E2S2 136
    4 R111010 E2S2 136
    5 R111010 E2S2 136

    I need to sum the TCP column by avoiding duplicate entries in ID and SEM. For a single ID, different TCP are there in different SEM. I need to sum the TCP of that student in each SEM by avoiding /neglecting duplicates. Please help me with excel 2010/2007 formula.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    Maybe if you attach a sample with the expected outcomes next to the table.

  3. #3
    Registered User
    Join Date
    02-05-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    7

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    thank you sir for your response. please see the attachment with output should be and discription
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    E2=IF(MATCH(C2,C:C,0)=ROW(),SUM(E1,D2),SUM(E1))
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    02-05-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    7

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    nflsales,
    thank you for your reply. But output should be column should not be considered as reference. I keep that column to tell how the output should be. that column will not be in my database. One more thing, the same should be applicable to more than one student. please see the attachment.
    Attached Files Attached Files

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    OR,

    Try the following in E2:

    Please Login or Register  to view this content.
    drag it down the cells (See the attached file).
    Attached Files Attached Files

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    What cells will contain the outcome? Is there some output section we're not seeing?
    Last edited by leelnich; 02-07-2018 at 02:54 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  8. #8
    Registered User
    Join Date
    02-05-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    7

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    cbatrody,
    Thank you for your response. But please check the attachment once again. It is not producing as i need. please check output should be once again in the below attachment. I need to sum each student's TCP cumulatively till the end by avoiding repeated/duplicate rows.
    Attached Files Attached Files
    Last edited by vamsivgn; 02-07-2018 at 05:45 AM.

  9. #9
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    Ok, now you're not showing duplicates. Can you just upload the whole thing (minus actual student names), your samples are different every time. And if the yellow column isn't part of your actual spreadsheet, where do the formula(s) go?
    Last edited by leelnich; 02-07-2018 at 03:37 AM.

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    May be
    =SUMIFS(D$2:D2,B$2:B2,B2)

  11. #11
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    I think the post #8 wbook goes by student, so:
    Please Login or Register  to view this content.
    ...but who knows?

  12. #12
    Registered User
    Join Date
    02-05-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    7

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    leelnich,

    please see the attachment now. it is final copy modified. In that output should be and description columns are kept to explain in detailed. these two columns will not be in my database. I need to sum each student's TCP cumulatively till the end by avoiding duplicate entries/repeated rows.
    Attached Files Attached Files

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    e2=SUMPRODUCT(($B$2:$B$25=$B2)*($C$2:$C$25=$C2)*($E$2:$E$25)/COUNTIFS($B$2:$B$25,$B$2:$B$25,$C$2:$C$25,$C$2:$C$25))
    Try this and copy towards down

  14. #14
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    or can try
    =IFERROR(LOOKUP(2,1/($B$1:$B1=$B2)*($C$1:$C1=$C2),$E$1:$E1),0)+IF(MATCH(B2&C2,INDEX(B$1:B2&C$1:C2,),0)=ROWS(C$1:C2),D2,0)

  15. #15
    Registered User
    Join Date
    02-05-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    7

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    nflsales,

    the Column E (output should be) should not be used as data. For viewers convenience I manually typed the result. I need the output like that with formula.
    Attached Files Attached Files

  16. #16
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    sorry see the attached file
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    02-05-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    7

    Re: Sum the entries in a column by avoiding duplicates in multiple columns

    nfsales,
    Thank you so much for your reply. And the formula mentioned in column #H in the attachment is working as i need. Its a great help to me. thank you once again.

+ 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: 7
    Last Post: 01-31-2016, 12:18 PM
  2. [SOLVED] Formula to Calculate Subtotal - Count of #'s Column While Avoiding Duplicates
    By swoosh1014 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-30-2014, 10:09 AM
  3. [SOLVED] One column into multiple columns and losing multiple entries
    By sitakott in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2014, 06:53 AM
  4. Replies: 13
    Last Post: 05-11-2014, 06:51 PM
  5. Column duplicates - how to clear cell entries three columns to the right
    By HankMcSpank in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2013, 01:32 PM
  6. Lookup Data in One Column, Find Multiple Entries in Next, Copy to Multiple Columns
    By nzxt1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 01:17 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