+ Reply to Thread
Results 1 to 5 of 5

matching words and serial numbers

  1. #1
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Question matching words and serial numbers

    I have a word in cell B1 (example "apple"), and a list of many miscellaneous words in column D (including the word "apple"), and serial numbers in column C that are affiliated with each specific word in column D, (example "apple" has a serial number "URP548"). I wish to put a formula in cell A1 that will look at the word in cell B1, and then in column C to select the affiliated serial number that goes with the word "apple" (or whatever the word may be). I have attempted some different formulas found in the forum, and believe I'm close but have yet to break the code. Can you help with a formula that would work in this case? Regards, Gary
    Last edited by allgeef; 03-17-2011 at 11:13 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: matching words and serial numbers

    Try VLOOKUP formula

    Something like:

    =VLOOKUP(B1, $C$1:$D$1000, 2, FALSE)
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,736

    Re: matching words and serial numbers

    You need to employ the classic Excel tool =vlookup. You will have to re-arrange your table a bit for it to work. First, here is a link to the syntax and explanation on how it works. Then you will need to switch column D and column C to make this work.

    http://www.techonthenet.com/excel/formulas/vlookup.php

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: matching words and serial numbers

    If you don't want to switch cols C and D you can use INDEX() and MATCH()


    =INDEX(C:C,MATCH(B1,D:D,0),1)

  5. #5
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Re: matching words and serial numbers

    Cutter, this worked perfect. Thank you for taking the time to help. Regards, Gary

+ 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