+ Reply to Thread
Results 1 to 15 of 15

merge duplicated data across multiple sheets and sum & subtracting (update inventory)

  1. #1
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    hello
    I need help about merge duplicated data and summing & subtracting among multiple sheets , what I want when I fill data in any sheet then combined the data and summing , subtracting among columns contain value and show in sheet "inventory" I have about 5000 row data but I attached a simple file to understand my idea I put the result in sheet " inventory about the data and value I put one to understand how the formula how can be

    thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    Use the sumif() function

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    thanks daves for the formula I think it needs code because I have ever said when I fill any sheet supposes merge data and sum & subtracting in sheet inventory moreover I think you misunderstood me the result in sheet inventory should be automatically not write manually every repeated brand , it takes more time
    Last edited by abdo meghari; 12-29-2020 at 05:45 AM.

  4. #4
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    any help guys ?

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    Are you just wanting to have seperate sheets for Sales & Purchases etc.
    If so you have the answer in a previous submission of mine.
    All you have to do is add your new sheets and direct the code/calculations to the individual sheets.
    torachan
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    thanks torachan but this case is different I have duplicated data in multiple sheets so before sum or subtract the value supposing merge duplicated data in sheet "inventory"

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    Try
    Please Login or Register  to view this content.

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    When you have got rid of your duplicates and have a set of unique data here is a simple inventory app with individual forms so that there is no confusion.
    torachan.
    Attached Files Attached Files
    Last edited by torachan; 01-01-2021 at 04:04 AM.

  9. #9
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    well done ! jindon this is what I want and if is possible explain some values especially 0 ,1
    in theses lines
    HTML Code: 
    thanks again
    Last edited by abdo meghari; 12-31-2020 at 02:20 PM.

  10. #10
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    @torachan your file is very interesting but you seem don't understand the whole story I repeat the same brand in sheet "purchase" it supposes showing value 12 in sheet "inventory" but it show 1 as the attached file
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    Elements in an array are all array(jugged array) and 1st element is the sheet name to loop and 2nd element is the switch for addition/subtraction.
    1 for addition, 0 for subtraction.
    used in the line of
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    many thanks @ jindon for your code and explanation
    best regards,
    abdo

  13. #13
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    hi, jindon
    first of all I issue a new thread but the moderator closes and consider this duplicated
    I would amend the code based on what I put in sheet"inventory1"
    it supposes summing duplicated data in other sheets and put the result in columns f, g, h, I based on name headers are the same sheets name to understand it
    thanks again
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    Change to
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: merge duplicated data across multiple sheets and sum & subtracting (update inventory)

    brilliant ! brilliant! thank word is Very little for your right
    million thanks
    take care buddy

+ 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] Inventory management macro subtracting too much inventory
    By Keegan1116 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-13-2020, 02:57 PM
  2. Update inventory worksheet by adding/subtracting stock with the quantity.
    By august20 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2015, 03:46 AM
  3. [SOLVED] Compare two sheets with multiple cells to see if the data is duplicated on the 2nd sheet
    By Lucille Boshoff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 07:59 AM
  4. adding/subtracting inventory between the sheets
    By non-pro in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-07-2013, 05:27 PM
  5. Merge sheets into one, update bi monthly of new data
    By Pattybreslin in forum Excel General
    Replies: 3
    Last Post: 06-20-2013, 08:51 AM
  6. Replies: 1
    Last Post: 10-25-2005, 09:05 AM
  7. subtracting from total multiple sheets (inventory) help.
    By nks1510 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2005, 01:05 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