+ Reply to Thread
Results 1 to 6 of 6

How to assign 'ID' to 'manufacturer' in datafeed

  1. #1
    Registered User
    Join Date
    11-02-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to assign 'ID' to 'manufacturer' in datafeed

    Hi,

    I have a large datafeed from a supplier which needs to be remapped into my application. This can be done pretty easily but I foresee a problem with the long-term maintenance of updated data and so I am looking for help in solving this, if you'd be so kind. Please note, the solution is required for excel 2007

    Problem: Each item in the feed has a 'manufacturer name' assigned to it, which is no problem in itself, but the 'remapped' version (or version to be imported) requires a 'manufacturer ID' in addition to the 'manufacturer name'. This means that each 'manufacturer name' currently has to be converted to a number (predefined by the 'manufacturer id' in the database), then put into the 'manufacturer id' column in the remapped datafeed, in order to be imported successfully (takes ages if you 'find and replace' in excel).

    Solution wanted: I'm sure it's pretty simple for an excel expert - can you create a function that will take care of this automatically?

    Let's say I have a worksheet in which column A is the predefined 'manufacturer ID', column B is the corresponding 'manufacturer name' for the whole database. (ie all manufacturers in a list for the whole application).

    Next, we have a datafeed with, say, 3000 items in it, each item has a column for 'manufacturer name', which could be any one of the manufacturers in the database, but no 'manufacturer id'.

    How do you convert those names to their corresponding 'IDs' to populate the 'manufacturer id' column, using excel?

    I would think you'd paste the names into an excel worksheet and run some kind of script that looks for the manufacturer name and ID and replaces this data accordingly..?

    hope that makes sense. Be a huge help if it can be explained, or a solution given.

    Thanks in advance

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to assign 'ID' to 'manufacturer' in datafeed

    Hi,

    There's no need for a VBA procedure. You can do this with standard Excel functions.

    Assuming the Manufacturers name is in column A of your datafeed sheet, and your list of manufacturers is in a sheet called "Sheet1", do the following.

    In the Data feed sheet where you want the Manufacturers ID enter

    Please Login or Register  to view this content.
    and copy down.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: How to assign 'ID' to 'manufacturer' in datafeed

    Reading your extensive question I think the solution would be in the Vlookup or Match.

    Please provide a small WB with
    Manufacturer ID, Manufacturer Name (Both unique!!)

    ... and a few lines of data with a few Manufacturer names.

    If Richards' (solution above) Man ID, Man Name was organized a bit different (Sheet1 Column A and B swopped)
    Please Login or Register  to view this content.
    Last edited by rwgrietveld; 11-02-2009 at 06:59 AM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    11-02-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to assign 'ID' to 'manufacturer' in datafeed

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    There's no need for a VBA procedure. You can do this with standard Excel functions.

    Assuming the Manufacturers name is in column A of your datafeed sheet, and your list of manufacturers is in a sheet called "Sheet1", do the following.

    In the Data feed sheet where you want the Manufacturers ID enter

    Please Login or Register  to view this content.
    and copy down.

    HTH

    So it is. Thanks so much for your help, not least for the astounding speed with which it was delivered.
    Donavichi

    www.donavichi.com
    Excel 2003 / 2007 - used mainly for remapping datafeeds for client websites (price comparison, shopping carts)

  5. #5
    Registered User
    Join Date
    11-02-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to assign 'ID' to 'manufacturer' in datafeed

    Quote Originally Posted by rwgrietveld View Post
    Reading your extensive question I think the solution would be in the Vlookup or Match.

    Please provide a small WB with
    Manufacturer ID, Manufacturer Name (Both unique!!)

    ... and a few lines of data with a few Manufacturer names.

    If Richards' (solution above) Man ID, Man Name was organized a bit different (Sheet1 Column A and B swopped)
    Please Login or Register  to view this content.
    Thanks very much, although not too sure what you're doing there (i really should have stayed in school and paid attention to the excel tutor). How does this solution differ from Richard's? is there much of a difference/benefit?

  6. #6
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: How to assign 'ID' to 'manufacturer' in datafeed

    lookup is an index and match in one. Therefore it does not differ much.

+ 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