+ Reply to Thread
Results 1 to 12 of 12

Find and replace

Hybrid View

artj Find and replace 06-10-2012, 04:49 AM
npamcpp Re: Find and replace 06-10-2012, 04:55 AM
artj Re: Find and replace 06-10-2012, 04:01 PM
benishiryo Re: Find and replace 06-10-2012, 05:00 AM
npamcpp Re: Find and replace 06-10-2012, 05:08 AM
oeldere Re: Find and replace 06-10-2012, 05:08 AM
benishiryo Re: Find and replace 06-10-2012, 05:16 AM
oeldere Re: Find and replace 06-10-2012, 05:22 AM
benishiryo Re: Find and replace 06-10-2012, 05:36 AM
npamcpp Re: Find and replace 06-10-2012, 07:50 AM
benishiryo Re: Find and replace 06-10-2012, 08:09 AM
artj Re: Find and replace 06-10-2012, 04:00 PM
  1. #1
    Registered User
    Join Date
    11-16-2007
    Posts
    12

    Find and replace

    Hello.

    I have a sheet (original part numbers) of part numbers (and descriptions, prices etc). Many of these part numbers have been changed, so I have been supplied a 2nd sheet (recode list) with the old number and the new number in 2 columns.

    I need to get the old number in sheet 2 to search for search for the old number in sheet 1, and then replace it with the new number in sheet 2 - before moving to the next row and doing the same?

    Please note
    There may not be the same number of items in each sheet
    The parts are not always listed numerically (see the red text)
    I have attached 2 files for clarity.

    Many thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Find and replace

    With both files open, in the Original Part numbers workbook, enter this formula into cell D8

    =VLOOKUP(A8,'[RECODE LIST.xlsx]Sheet1'!$A$1:$C$27,2,FALSE)

    Copy down.

    Then copy the results in column D, and use paste special > Values to paste over the original part numbers in column A. Then you can delete column D.
    Like a post? Click the star below it!

  3. #3
    Registered User
    Join Date
    11-16-2007
    Posts
    12

    Re: Find and replace

    npamcpp - many thanks for such a simple solution. Solved!

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Find and replace

    hi artj, so when u refer to Sheet 2, i assume u mean the 2nd workbook u uploaded? try this in A4 of the 2nd workbook:
    =INDEX('[original part numbers.xlsx]Sheet1'!$A$8:$A$22,MATCH(C4,'[original part numbers.xlsx]Sheet1'!$C$8:$C$22,0))
    if it's a totally new product not in the old list, do u do it manually then? if u want in to continue in sequence, u may try:
    =IF(ISNA(INDEX('[original part numbers.xlsx]Sheet1'!$A$8:$A$22,MATCH(C4,'[original part numbers.xlsx]Sheet1'!$C$8:$C$22,0))),MAX($A$3:A3)+1,INDEX('[original part numbers.xlsx]Sheet1'!$A$8:$A$22,MATCH(C4,'[original part numbers.xlsx]Sheet1'!$C$8:$C$22,0)))
    let me know if it works

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Find and replace

    benishiryo, is something wrong with your "y" and "o" keys? This is a forum, not txt messaging. There are many people on this forum whose first language is not English and who will not be familiar with the common txt message and chat room abbreviations. So please, keeping that in mind, spend the extra millisecond and write "you" instead of "u" etc. Thanks.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find and replace

    Sort your data in the tabel (see example).
    Use Vloopup to search the new value (in column E)
    Then choose copy => paste special => value to collomn A
    Delete collumn E.

    See the example.
    Attached Files Attached Files

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Find and replace

    @npamcpp

    hmmm that is some awesome advice u got there. but i couldnt find "txt" in the dictionary. and u should go for some anger management courses, come back here with courtesy, and i shall start listening. thanks
    =)

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find and replace

    I support npamcpp in his statement.

    My language is not English and it helps me, if words are written correctly (forgive me if I write it wrong)!

  9. #9
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Find and replace

    @oeldere
    yeah i do agree but this person here could certainly learn how to communicate better. i've seen him replying impatiently to a newcomer, post sarcasms like this.
    which is a better way to tell people where the "log out" button is?
    1) it's at the top right hand side of the forum.
    2) are you blind or something? it's at the top right hand side of the forum.

  10. #10
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Find and replace

    benishiryo,

    I'm sorry you feel that I'm a bad communicator. I said "please" and "Thanks" and tried to make my post sound friendly. All the same, I must have offended you. I'm sorry about that. I just want to ensure that your valuable contributions to this forum can be understood by all visitors, not just those who are familiar with the abbreviations commonly used in chat rooms and txt messaging (txt = sms = the messaging system on mobile phones).

    I think my post and the way you read it is a classic example how written communication is mis-interpreted because other non-verbal communication is absent.

    Be assured that I only had the best interest of the forum members in mind.

    Kind regards.

  11. #11
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Find and replace

    @npamcpp
    is something wrong with your "y" and "o" keys?
    this is sarcasm. and since you were on the topic of not using abbreviations, "txt" is one of them. it should be "text". but as i mentioned to oeldere, i do agree with your statement that i should not use abbreviations. it's a habit i should change. so i'll take note of that.

  12. #12
    Registered User
    Join Date
    11-16-2007
    Posts
    12

    Re: Find and replace

    Many thanks to all who responded - never thought I would stir up a spelling hornets nest!
    Npamcpp offered the 1st suggestion which worked a treat (and was easy to understand with my limited excel knowledge!)
    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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