+ Reply to Thread
Results 1 to 6 of 6

list of values where one value is replaced by another one

  1. #1
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    list of values where one value is replaced by another one

    Hello All

    I'm absolutely run out of any ideas how to approach my problem ...
    In column A in attached file i have list of part numbers and in column B list of part numbers that builds part number from column A

    I need to create list of unique values from column B based on criteria (in cell J1) however at the same time make sure that if in column B there is part number already mentioned in column A as the result I will get only part number that builds that specific part number, for instance
    part A32651 is build with parts mentioned in cells E12/13/14/15 and these part numbers are not appearing in column A
    however part A32657 is build with parts mentioned in cell E31/32/33 and I need excel to return values related to part numbers mentioned in these cells (that means as the result I should get from column B values that build part A32654/A32655/A32656)

    So basically I want to "replace" each part number (child part number) in column B with child part number (column B) while child part number is also master part number (column A) ... if that make sene

    I attached file where I explained more in details ...
    it seems Pivot Table needs to be build but I do not know how to build relationships between all those parts

    any help please?

    thanks
    Attached Files Attached Files
    Last edited by adsako; 06-07-2020 at 08:47 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: list of values where one value is replaced by another one

    You didn't show how you want to display child part number, so I guess.

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

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

  3. #3
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: list of values where one value is replaced by another one

    Hi
    thank you for this solution ... this helps only in this case (this part number) however I got file with different part numbers (different length and different nomenclature - some parts are 20 digits long and some only 3 with letters inside) therefore I'm looking for solution which help me to extract no matter how part number is build.
    I was thinking that pivot table would be the best solution but as I said I do not know how to build relation between each part number



    thanks

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,897

    Re: list of values where one value is replaced by another one

    Perhaps this will be generalized enough to work:
    1. Expand the table to include column N (previous results have been moved to columns Q)
    2. Populate column I using: =ISNUMBER(MATCH([@[Child Part No]],[Master Part No],0))
    3. Populate column J using: =AND([@[Mster Prt?]]=TRUE,COUNTIFS([Master Part No],[@[Child Part No]],[Mster Prt?],FALSE)=0)
    4. Populate column K using: =IF(SUMPRODUCT(--([@[Mster Prt?]]:[@Replace]))=2,COUNTIFS([Master Part No],[@[Child Part No]]),1)
    5. Populate column L using: =IF([@[Master Part No]]=R$1,SUM(L1,[@rows]),"")
    6. Populate column M using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    7. Populate column N using (final output):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If this does not work then I suggest uploading a sample file that illustrates the problem(s).
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: list of values where one value is replaced by another one

    Hello everyone

    apologies however due to unexpected circumstances i was not able to reply to your solution
    thank you for all ideas/solution

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,897

    Re: list of values where one value is replaced by another one

    You're Welcome. Thank You for the feedback and for marking the thread as 'solved'. I hope that you have a blessed day.

+ 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. Data Validation--List references being replaced
    By Halleli in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2019, 11:05 AM
  2. [SOLVED] BUG: formulas replaced by values when active content is enabled
    By mg.luis in forum Excel General
    Replies: 1
    Last Post: 12-18-2015, 11:56 AM
  3. Updating Date based on replaced Values Excel VBA Question
    By Rberndt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2013, 04:38 PM
  4. Filter a long list by a shorter list of values, keeping repeated values
    By mrfloopa in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-15-2012, 09:50 PM
  5. =IF() replaced by VBA code
    By jmwismer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2007, 02:07 PM
  6. VBA replaced ?
    By AD108 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2006, 09:30 PM
  7. [SOLVED] Excel VBA to be replaced by C# ?
    By anonymouse in forum Excel General
    Replies: 2
    Last Post: 12-17-2005, 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