+ Reply to Thread
Results 1 to 8 of 8

EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

  1. #1
    Registered User
    Join Date
    10-16-2022
    Location
    Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    5

    Question EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    Hello. I need some help. I have this Excel workbook attached for inventory of medical supplies. Is there any formula alternative of consolidation that whenever the data in Sheet "Stock In" or "Stock out" would be entered, the duplicate data would be merged in another Sheet "Consolidated data' and its quantity would be automatically calculated. QMEDICAL SUPPLIES.xlsx
    originally, "stock out" "stock in" sheets are blank it will be filled-up only once there are stocks to be entered on each sheets respectively.
    Last edited by Sherina; 07-01-2023 at 09:17 AM. Reason: clearer title

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,791

    Re: EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    crossposted: https://www.mrexcel.com/board/thread...value.1240386/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    However, if you continue to crosspost, you can expect to have your thread BLOCKED until you update it yourself.
    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
    Registered User
    Join Date
    10-16-2022
    Location
    Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    5

    Re: EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    My apologies. Mistake will not be repeated in future posts.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,085

    Re: EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    The following seems to work for the sample file.
    1. For column A: =IFERROR(INDEX('Stock Out'!C$2:C$220,MATCH(0,INDEX(COUNTIF(A$4:A4,'Stock Out'!C$2:C$220),,),)),"")
    2. For column B: =IF(OR(A5=0,A5=""),"",INDEX('Stock Out'!D$2:D$220,MATCH(A5,'Stock Out'!C$2:C$220,0)))
    3. For column C: =IF(OR(A5=0,A5=""),"",SUMIFS('Stock Out'!E$2:E$220,'Stock Out'!C$2:C$220,A5))
    4. For column D: =IFERROR(INDEX('Stock In'!C$2:C$220,MATCH(0,INDEX(COUNTIF(A$4:A4,'Stock In'!C$2:C$220),,),)),"")
    5. For column E: =IF(OR(D5=0,D5=""),"",SUMIFS('Stock In'!E$2:E$220,'Stock In'!C$2:C$220,D5))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,241

    Re: EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    Since you are using Office 365, you can do this with one formula in cell A5:

    =LET(a,UNIQUE(FILTER('Stock Out'!C2:D220,'Stock Out'!C2:C220<>"")),b,UNIQUE(FILTER('Stock In'!C2:C220,'Stock In'!C2:C220<>"")),
    IFERROR(HSTACK(a,SUMIFS('Stock Out'!E2:E220,'Stock Out'!D2:D220,INDEX(a,,2)),b,SUMIFS('Stock In'!E2:E220,'Stock In'!C2:C220,b)),""))
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-16-2022
    Location
    Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    5

    Re: EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    Thank you so much for this! I will study also the formulas that you have given me. It will help alot on my work..

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,085

    Re: EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,241

    Re: EXCEL FORMULA for "Merge Duplicate Data and Sum the Value

    You're welcome. Thanks for the rep and feedback!

+ 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] Consolidate duplicate data in 1 row
    By wiewie002 in forum Excel General
    Replies: 6
    Last Post: 06-27-2023, 05:36 AM
  2. Merge/Consolidate data in specific columns
    By tjohnpok in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-25-2016, 02:15 PM
  3. Consolidate and Merge Data on a Separate Sheet
    By astole in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2014, 04:32 PM
  4. Get, Merge & Consolidate Data - Help Request!!!
    By techzia in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2012, 05:35 PM
  5. MERGE and Consolidate excel data from 750 wookbooks into one wookbook.
    By AZZ70 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2012, 11:55 PM
  6. Merge / Consolidate data
    By jhayes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2007, 08:15 PM
  7. [SOLVED] Consolidate and Merge Data on a Separate Sheet
    By in forum Tips and Tutorials
    Replies: 0
    Last Post: 01-01-1970, 12:00 AM

Tags for this Thread

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