+ Reply to Thread
Results 1 to 7 of 7

Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

  1. #1
    Registered User
    Join Date
    07-01-2011
    Location
    Somerset, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

    1st Post, I have been trying for hours to crack this and cant figure it out!

    I have a Problem...

    I need to search for a Cell in a seperate worksheet looking in a long description field. Matching only part of the text string in the search range. If search target found to then return a Partcode from adjacent cell.

    i.e.

    Q60001A is value in C66

    HP Color Laserjet 1600 2600 2605 Cyan Toner Q6001A is one Cell in range B2:B6000

    I want to find this Cell and then show the adjacent value from column C.

    I wont bore you with my numerous attempts but I can not get this figured out.. Anyone put me out of my misery? I have searched the forumns but any answers I find I can not apply to this problem and get a result..

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,539

    Re: Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

    I'd be inclined to just use an AutoFilter with a "Contains: Q6001A" filter.

    This would also highlight any "multiple" returns.

    You could record a macro whilst you undertake the task manually if you want a VBA solution.

    Not sure how you'd do it with formulae ... but I'm sure it's possible.

    Regards


    Regards
    Last edited by TMS; 07-01-2011 at 08:31 AM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-01-2011
    Location
    Somerset, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

    Thanks for the suggestion, I am hoping to figure out a formulae solution as we often get lists of parts from suppliers with Mnf codes in but no reference to our internal SKU I want to develop a template that will allow us to drop the supplier data in and it to return a populated list of our sku/description/stock holding etc etc.

    I will keep my fingers crossed for a genius/godsend reply..

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,539

    Re: Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

    Q1: would you expect to get more than one return to the query?

    Q2: would you be happy with a VBA solution?

    It would help if you posted a sample workbook with some typical data.

    Regards

  5. #5
    Registered User
    Join Date
    07-01-2011
    Location
    Somerset, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

    I would not expect/Need more than 1 return per query

    Sample attached. Need to populate SKU's Column C in Sample Supplier Data by searching for B2 in Inventory data Column A but need to find partial matches and return B2 number.
    Attached Files Attached Files

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

    Using your sample workbook...
    This regular formula returns the SKU on the InventoryData sheet that corresponds the the SHORT CODE on the SampleSupplierData sheet
    Please Login or Register  to view this content.
    Copy that formula down as far as you need (after adjusting range references to suit your actual situation)

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  7. #7
    Registered User
    Join Date
    07-01-2011
    Location
    Somerset, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Searching AlphaNumeric in Description Table to rtn a stock code.. HELP

    Ron,

    Thank you. Thats the answer I was looking for.. simple when you know how I was doing my nut trying to figure out Wildcard Vlookup! Your a star.

+ 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