+ Reply to Thread
Results 1 to 2 of 2

merge duplicate data and summing value with average price

  1. #1
    Forum Contributor
    Join Date
    05-24-2021
    Location
    Palestine
    MS-Off Ver
    2019
    Posts
    280

    merge duplicate data and summing value with average price

    hi
    first this is a simple data , but my real data are about 8000 rows and they are increasable .
    so what I want merge duplicate items based on COL B with considering in COL I should take the average price for duplicate item in sheet DATA after calculate the average and put in COL J should multiply in COL I , and the result in COL K in sheet stock . about columns E,F if repeates for duplicate item should merge with comma .
    note : it should create whole data in sheet stock and if they change in sheet data should update in sheet stock
    sheet data
    by the isuued another forum https://www.mrexcel.com/board/thread.../#post-5755157
    any help I appreciate that .
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: merge duplicate data and summing value with average price

    Attached, I have created a pivot table using Power Pivot (Create Pivot by checking the Data Model Checkbox). My calculations for Average and Total do not agree with yours. I had Excel Pivot Table functions calculate. Not sure how you arrived at yours. Needed to create a DAX Measure for the Customer Nr and Invoice Nr.

    Here is a tutorial on that: https://sfmagazine.com/post-entry/ju...a-pivot-table/

    Excel 2016 (Windows) 32 bit
    B
    C
    D
    E
    F
    G
    H
    I
    J
    9
    CODE BRAND TYPE ORIGIN Cust Nr Invoice Nr Sum of QTY Average of PRICE Sum of TOTAL
    10
    AA-100 ASGL-VEN SD-1 CCL1 CUS-100, CUS-101 INV1-BSJ4-1000, INV1-BSJ4-1001
    20
    75
    1500
    11
    AA-101 VLG-FRE SD-2 CCL2 CUS-102, CUS-103, CUS-104 INV1-BSJ4-1002, INV1-BSJ4-1003, INV1-BSJ4-1006
    60
    213.3333333
    12400
    12
    AA-102 VMC-EZER SD-3 CCL3 CUS-100 INV1-BSJ4-1000
    5
    100
    500
    13
    AA-103 C-ZER SD-4 CCL4 CUS-100 INV1-BSJ4-1004
    5
    20
    100
    14
    AA-104 MM-FR SD-5 CCL5 CUS-100 INV1-BSJ4-1005
    5
    30
    150
    Sheet: STOCK
    Attached Files Attached Files
    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

+ 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] merge data and summing values & create report
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-14-2021, 04:12 AM
  2. [SOLVED] merge data and summing values for across multiple sheets
    By Alaa-A in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2021, 07:44 AM
  3. [SOLVED] Calculate the average price of each product for each day from data table
    By mireg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2019, 08:16 AM
  4. Deleting Duplicate Data in Two Cells and Summing the Data
    By lassday in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2016, 10:57 AM
  5. Excel 2007 : Merge duplicate data
    By jeffrowhm in forum Excel General
    Replies: 1
    Last Post: 02-10-2010, 12:40 PM
  6. Displaying and summing data with duplicate data fields
    By thefarbeyond in forum Excel General
    Replies: 3
    Last Post: 06-07-2009, 12:45 PM
  7. [SOLVED] calculate/convert volume price to monthly average price
    By Bultgren in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2006, 05: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