+ Reply to Thread
Results 1 to 11 of 11

Match & Replace question

Hybrid View

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Lees Summit MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Match & Replace question

    This is what I have....
    P-id P-SKU P-SKU C-id
    88438 CATDJ AC1030812 528
    88439 CATPD AC1030812 168
    88440 CATSE AC1030812 532
    88441 CLA96001 AC2061414 528
    88442 CLA96007 AC2061414 531
    88443 CLA96009 AC2061414 28
    88444 CLA96012 AC2061414 532


    This is what I need..
    P-id = P-SKU P-SKU = C-id

    into this...

    P-id = C-id

    I have a list of about 18000 rows of P-SKU C-id
    and 800 rows of P-id P-SKU of single P-id and single P-SKU

    any ideas thanks guys

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Match & Replace question

    Can you please upload a workbook with a before and after example in it.

    Thanks

  3. #3
    Registered User
    Join Date
    08-12-2013
    Location
    Lees Summit MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Match & Replace question

    http://natesit.com/test.xlsx

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Match & Replace question

    I will assume that all data in the sample spreadsheet is in the correct columns as in your actual spreadsheet. If so, use this formula (if not, adjust this formula to match in your actual) to return the Product ID given the SKU (of course, adjust the absolute range references to suit the full range of your actual data):
    Formula: copy to clipboard
    =INDEX($A$2:$A$20,MATCH(F2,$B$2:$B$20,0))
    The MATCH function will look up the row number of the SKU from column F in column B, and return this value to the INDEX function, which will then return the corresponding Product ID of that SKU.

    Now the formatting is up to you. It might be easier to simply add this into, say, cell H2 and copy the formula down, and then move some columns around to have it display how you want it, or perhaps even on a new worksheet in the same workbook would suffice...this is all up to you.

    Let me know how this goes for you, and if I have helped you, please don't forget to click the star and mark this thread as solved.

    Thanks

  5. #5
    Registered User
    Join Date
    08-12-2013
    Location
    Lees Summit MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Match & Replace question

    My wife and I are sitting here going crazy LOL running into a error, here is the link to the full file to give you a better idea deliminator is ;

    Untitled-1.jpg

    http://natesit.com/mod.csv

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Match & Replace question

    Lol, use this formula in cell H2, and then copy the formula down column H from H2 to H65190:
    Formula: copy to clipboard
    =INDEX($A$2:$A$31111,MATCH(F2,$B$2:$B$31111,0))

    I noticed that you will get some "#N/A" results towards the bottom of column H. This simply means there is no SKU in column B that aligns with the SKU in column F that you are searching for.

    Also, this worksheet is set to manual calculation, so just make sure you press the "Calculate Now" button, or "F9" on your keyboard, to calculate the formulas once you have filled out the column.

    Hope this is a bit more helpful
    Last edited by ajryan88; 08-12-2013 at 11:37 PM.

  7. #7
    Registered User
    Join Date
    08-12-2013
    Location
    Lees Summit MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Match & Replace question

    keeps getting errors... what am I doing LOL

    I really appreciate your help too thanks

  8. #8
    Registered User
    Join Date
    08-12-2013
    Location
    Lees Summit MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Match & Replace question

    I had my wife try it and I think she got it update in a sec

  9. #9
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Match & Replace question

    Hmmm...I'm not sure what would be causing the errors. I've uploaded a copy of the formula that I used in the spreadsheet (but I've trimmed it down to only the first 5000 rows, so there are a lot of "#N/A" errors). Hopefully this will help you solve the error that you're receiving
    Attached Files Attached Files
    Last edited by ajryan88; 08-12-2013 at 11:57 PM. Reason: Attached spreadsheet

  10. #10
    Registered User
    Join Date
    08-12-2013
    Location
    Lees Summit MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Match & Replace question

    it worked on her computer but not mine LOL same Excel Ver

    the NA is most likely categorized items not on the list im going to play with it more thanks a ton been working on that all day LOL

  11. #11
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Match & Replace question

    Yes that's what the "#N/A" errors are.

    Let me know how you get on after having a look at my most recent attachment.

    What is the error that you are getting on your computer???

+ 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. Index, match, match Question!. Seems so simple but can't figure it out...
    By huikimhuikim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 01:57 PM
  2. Excel 2007 : Help: IF Blank - then MATCH and replace
    By cycmurray in forum Excel General
    Replies: 0
    Last Post: 10-26-2011, 09:34 AM
  3. Another match and replace problem
    By Jazmania in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-20-2008, 02:31 PM
  4. Match a cell & replace a row
    By AussieExcelUser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-17-2007, 09:06 PM
  5. [SOLVED] index/match/replace
    By InventoryQueryGuy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2006, 11:10 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