+ Reply to Thread
Results 1 to 5 of 5

Paste sum per unique value

Hybrid View

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    87

    Exclamation Paste sum per unique value

    Hi

    In attached workbook you'll find 2 sheets, i.e. Workfile and Raw_data.
    I want it to automatically do following 2 things:

    1. In the Raw_data tab it should make a sum of all quantities per unique detail number. (example: HESO11922 should give 1 line stating 3 as a qty). After that it should delete all duplicate detail number lines, except for the ones that has the total sum.

    2. In the Workfile tab you'll see that the same detailnumber is also shown multiple times. All data should remain in the sheet, however it should paste the sum we got in step 1 and paste it in column D next to the first line showing a unique detail number. I've provided an example in the sheet with the HESO11922 (see step 1), which is in line 213 in the sheet.

    I hope you guys can help me out here.

    Thanks a lot in advance.

    Tino XXL
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Paste sum per unique value

    hi Tino XXL, formula solution just in case. Are you interested in getting result as on Workfile sheet or both of them?
    Attached Files Attached Files

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Paste sum per unique value

    Hi Tino,

    See the attached file where I have given you VB + Formula solution. Let me know in case of any queries. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Registered User
    Join Date
    11-29-2010
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    87

    Smile Re: Paste sum per unique value

    Hi

    Thank you very much for your help. In the end I decided to have a pivot table sum up the values per unique number.

    For step 2 I used countif and a normal if function to define the unique detail numbers, and then combined a vlookup to that.

    Kind regards,
    Tino XXL

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Paste sum per unique value

    You are welcome Tino XXL...

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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