+ Reply to Thread
Results 1 to 12 of 12

complicated case to merge and sum values for many items

  1. #1
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    complicated case to merge and sum values for many items

    Hello experts
    I have data for each itemز so each item contain data and end to empty cell and somtimes there is no empty cell for specific item as in row 16,17 in sheet data so what I want merge duplicated data based on COL C,D,E for each item in COL B
    it should create whole data in sheet result
    Attached Files Attached Files
    Last edited by Mussa-A; 08-24-2021 at 04:10 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: complicated case to merge and sum values for many items

    Hi, Mussa-A
    Try this:
    Adjust this part:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: complicated case to merge and sum values for many items

    thanks for your solution . I know what I ask it . it's very complicated . I wish achieving like wht I put the in sheet result and you forgot the item
    I updated my file about the item how should be .

  4. #4
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: complicated case to merge and sum values for many items

    Try this one:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: complicated case to merge and sum values for many items

    thanks again you fixed the item but not what I want as the result in my file
    the reason which insest for this complicated I have another macro depends on this complicated way .

  6. #6
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: complicated case to merge and sum values for many items

    thanks again you fixed the item but not what I want as the result in my file
    which part?

  7. #7
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: complicated case to merge and sum values for many items

    did you see my file ? did you test the code on my file ? when merge the data should merge for each ITEM IN col B for instance CC1 starts from ROW2 : ROW4 then when merge the data are relating for this item shouldn't fill CC1 repeatedly for the others empty cells . it should show in first cell in COL B and the rest cells stays empty each item in COL B contain data start from cell in COL B to last empty cell and start a new item in COL B . when merge the data are relating the item in COLB shouldn't fill in empty cells are relating for that item
    last thing the sequences the in COL A should start from filled cell in COL B to last empty cell 1,2,3 and when start a new item in COLB should start again from the beggining 1,2,3 to last empty cell and so on for the rest of items in COL B

  8. #8
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    O365 V2408
    Posts
    15,202

    Re: complicated case to merge and sum values for many items

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  9. #9
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: complicated case to merge and sum values for many items

    @sintek wow ! you're legend . but I said this
    in COL A should start from filled cell in COL B to last empty cell 1,2,3 and when start a new item in COLB should start again from the beggining 1,2,3 to last empty cell and so on for the rest of items in COL B
    I no know if this is not clear
    each item in COL B (DEL NO) the serial number should be separately. may you see the numbers in COL A in sheet tester ?
    Attached Files Attached Files

  10. #10
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    O365 V2408
    Posts
    15,202

    Re: complicated case to merge and sum values for many items

    Okay...this was not the case in your initial upload though...
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    07-14-2021
    Location
    LY
    MS-Off Ver
    2019
    Posts
    298

    Re: complicated case to merge and sum values for many items

    @sintek well done ! thanks so much for your solution

  12. #12
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    O365 V2408
    Posts
    15,202

    Re: complicated case to merge and sum values for many items

    Glad I could help...Tx for rep +

    Slight simplification...
    Please Login or Register  to view this content.
    Last edited by Sintek; 08-24-2021 at 02:01 PM.

+ 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: 8
    Last Post: 08-03-2021, 07:40 AM
  2. Replies: 1
    Last Post: 08-02-2021, 12:16 AM
  3. Increasing gap between columns ( complicated case)
    By coltan123 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-04-2020, 02:57 PM
  4. [SOLVED] Merge same items with positive and negative values
    By besis in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-04-2019, 02:56 AM
  5. [SOLVED] Find and replace Lower case values with upper case values
    By Gssoc777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2016, 12:52 PM
  6. [SOLVED] Combine rows with duplicate items in one cell and merge values in other cell
    By Niclal in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-18-2014, 07:04 AM
  7. Complicated SUMIF Case
    By John in forum Excel General
    Replies: 9
    Last Post: 10-14-2005, 06:05 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