+ Reply to Thread
Results 1 to 8 of 8

update sum when data changes based on 3 column unique id

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    update sum when data changes based on 3 column unique id

    Hi,

    i am enclosing a file to help explain what i am trying to do. I have a file with two sheets: Summary and Data. the data-sht is the raw data from which a summary is created and pasted on the summary sheet.

    what i want to happen is when data on the "Data" sheet is changed/updated i want the summary data to update as well. Not sure how to do this given that the summary data table is a summary such where i am
    calculating a total sum for a given (IDNum+ID_Psn+PI_Note). Not sure how to do this. I prefer not to use a pivot table but would rather use a formula if i can but if its only possible with pivot then i will provided i
    can get table to look like i have now.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: update sum when data changes based on 3 column unique id

    This formula (which you can put in G2 so as not to affect the layout of your table):

    =SUMIFS(Data!$H:$H,Data!$F:$F,A2,Data!$G:$G,B2,Data!$J:$J,C2)

    will return the totals that you have in D2. I presume the dates in column E are just the collection of unique dates that contribute to that particular combination of columns A, B and C values. Do you have the TEXTJOIN function in your version of Excel?

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: update sum when data changes based on 3 column unique id

    that seems to work. thanks! i do have "TextJoin" in my version of excel. Does this function help or make things easier?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: update sum when data changes based on 3 column unique id

    TEXTJOIN will enable the multiple dates to be concatenated together as shown in column E. I'm just trying to figure out how to get those dates for each combination of your unique IDs.

    Pete

  5. #5
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,673

    Re: update sum when data changes based on 3 column unique id

    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.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: update sum when data changes based on 3 column unique id

    So, the OP should update their profile then, to show which version of Excel they are actually using.

    Pete

  7. #7
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,673

    Re: update sum when data changes based on 3 column unique id

    Yes, indeed they should.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,888

    Re: update sum when data changes based on 3 column unique id

    hi @welchs101 If you insist on using 2016, Would you accept VBA custom user define functions? Similar in function to TEXTJOIN

+ 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. how to update row/s based on unique column/cell value?
    By cubangt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2021, 09:40 AM
  2. [SOLVED] Unique List From Row Name Based On Criteria from Column Data Header and Column Contents
    By jweatherford in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2020, 10:19 AM
  3. [SOLVED] Match data in 1 column and count unique data in another column based on matches
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2020, 12:31 PM
  4. Trying to update an access table from Excel based on unique ID. rst.Update not working
    By Newbie0924 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2015, 04:15 PM
  5. Compare & update unique data between 2 files based on selcted year (through input msgbox)
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2014, 01:35 AM
  6. Userform to Search based on Unique ID update and save data in an exel sheet
    By Rosco90 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 04:50 PM
  7. Update unique data based on criteria
    By starpiter in forum Excel General
    Replies: 0
    Last Post: 10-23-2009, 12:33 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