+ Reply to Thread
Results 1 to 6 of 6

Find and replace script

  1. #1
    Registered User
    Join Date
    04-26-2010
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    9

    Find and replace script

    Hello.

    I have 70,000 skus I like to change their category numberical value into a text format.

    Out of those 70,000 skus, there are 2,000 categories which I have a sheet as example below:



    Column A : Column B
    03937284 : Sporting Goods
    29835729 : Tents


    What I want to do is search Column A into my sku excel sheet and replace it with column b but on a mass scale. It will take me forever to do a search and replace all for 2000 categories.

    Not sure what to do.

    Thanks!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Find and replace script

    Obviously, with 70K sku's a category will contain several different sku's. So, the question becomes how are the sku's related to the categories? Do they have some type of unique identifier?

    You haven't provided enough detail to get a precise answer, but if the sku contains some type of unique ID relative to the category, then it may be possible to use a look up table and an INDEX/MATCH formula. Otherwise, you will need VBA.

    It would be best if you uploaded a sample workbook and provided more details about the structure & data.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    04-26-2010
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Find and replace script

    Palmetto,

    The the skus have a category id and multiple skus will have the same category id.

    This might help out more on what I am trying to do

    Columnn A: Column B:
    53213 Tools
    53214 Drills
    53215 Bits
    That is a master category sheet

    Now I have a product sheet
    Sku: Categoryid
    Tool1 53213
    Drill2 53214
    Bit1 53215
    Drill1 53214

    How do I that on a mass scale so it looks like the final product

    Sku: Categoryid
    Tool1 Tools
    Drill2 Drills
    Bit1 Bits
    Drill1 Drills

    I know you can do find and replace but i need to do this on a mass scale, I have 2000 categories and 70,000 skus

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find and replace script

    This should do it. Just edit the sheet names for your workbook:
    Please Login or Register  to view this content.
    Last edited by dominicb; 08-17-2011 at 02:12 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    04-26-2010
    Location
    nj
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Find and replace script

    How do I enter this into Office 2010?

    Thanks for the help a donation is on its way.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find and replace script

    Hit the View menu and choose the Macros > View Macros.


    Perhaps the standard instructions will work in 2010:

    =============
    How/Where to install the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save as a macro-enabled workbook

    The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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