+ Reply to Thread
Results 1 to 5 of 5

Multiple replacement items

  1. #1
    Registered User
    Join Date
    06-24-2017
    Location
    Banja Luka
    MS-Off Ver
    MS 2010
    Posts
    10

    Multiple replacement items

    Dear all, I am having an Excel issue that I am trying to solve for quite long. I have items that I sell on a regular bases. At one time, that item is replaced with another one. My challenge is to transfer sold quantities to substitute item, together with qty sold of the original item. The most challenging are the duplicates, meaning that one item can be replaced by two same items. Just to mention, there are more than 190.000 items that might be replaced anytime, so I would like to make this as automatic as possible. Thanks in advance. Attached is an example of what I am trying to accomplish.


    Excel replacement issue.PNG
    Attached Files Attached Files
    Last edited by charizard; 09-23-2019 at 11:15 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Multiple replacement items

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    06-24-2017
    Location
    Banja Luka
    MS-Off Ver
    MS 2010
    Posts
    10

    Re: Multiple replacement items

    Hi Pepe Le Mokko,

    Thanks for your suggestions. The sample workbook is now uploaded, with before and after sheets.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Multiple replacement items

    Here's how I would solve this:

    F2 =IF(C2="No replacement",A2,C2)

    A12 =INDEX(F$2:F$6,MATCH(0,COUNTIF(A$11:A11,F$2:F$6),0)) Ctrl Shift Enter

    B12 =SUMPRODUCT((B$2:B$6+D$2:D$6)*((C$2:C$6=A12)+(A$2:A$6=A12)))

    Drag all formulas down.

    See attachment.
    Attached Files Attached Files

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Multiple replacement items

    Quote Originally Posted by charizard View Post
    Hi Pepe Le Mokko,

    Thanks for your suggestions. The sample workbook is now uploaded, with before and after sheets.
    Most welcome

+ 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. Find and replace multiple values at once (double replacement)
    By Lyubomyr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-09-2018, 11:41 PM
  2. Macro for same text replacement on multiple sheets of a workbook
    By naragam in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-07-2017, 10:50 AM
  3. Data Validation - Selecting multiple items with ability to deselect items
    By dsklein85 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-12-2016, 09:02 AM
  4. [SOLVED] Multiple IF Statement: I can't figure out a suitable replacement option
    By JHC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2013, 07:17 AM
  5. [SOLVED] Help with cell value replacement across multiple worksheets
    By alma1219 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-26-2012, 09:34 AM
  6. Replies: 1
    Last Post: 10-11-2007, 05:15 AM
  7. loop replacement of multiple if-then's
    By dsi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-31-2006, 05:00 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