+ Reply to Thread
Results 1 to 5 of 5

Formula Help Pls - Search cell for WORD, return fields from WORD lookup

  1. #1
    Registered User
    Join Date
    12-28-2016
    Location
    AU
    MS-Off Ver
    2013
    Posts
    7

    Formula Help Pls - Search cell for WORD, return fields from WORD lookup

    Hello all,

    I've been working for hours on a formula to search for a list of words within a field, and if it finds one of those words, to lookup and return a couple of fields. Sounded so easy, but when i got into it, it really wasnt for me! Really hope someone can help me.

    I've attached a document template with instructions and example data for the formula i'm trying to build. Essentially it is:

    1. In Column N above e.g. cell N3, formula should:
    •look up and match words from "1.1 Lookup" tab, column H21:H100 e.g. "Description 3", "Description 4", etc
    •match this against "1) I&E" tab, column C e.g. cell C3, "Description 3"
    •formula should then return corresponding Category from"1.1 Lookup" tab, column i e.g. cell i21 "Shopping"

    2. Repeat the same for "Sub Category"

    Any help you can give would be appreciated :-)

    Thanks in advance,
    Tom
    Attached Files Attached Files

  2. #2
    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,754

    Re: Formula Help Pls - Search cell for WORD, return fields from WORD lookup

    Here is a VBA solution

    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    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

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula Help Pls - Search cell for WORD, return fields from WORD lookup

    and a formula solution:

    =IFERROR(LOOKUP(1000,SEARCH('1.1) Lookup'!$H$21:$H$24,$C3),'1.1) Lookup'!I$21:I$24),"")

    in N3, copied across and down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    12-28-2016
    Location
    AU
    MS-Off Ver
    2013
    Posts
    7

    Re: Formula Help Pls - Search cell for WORD, return fields from WORD lookup

    Quote Originally Posted by Glenn Kennedy View Post
    and a formula solution:

    =IFERROR(LOOKUP(1000,SEARCH('1.1) Lookup'!$H$21:$H$24,$C3),'1.1) Lookup'!I$21:I$24),"")

    in N3, copied across and down.

    Thank you both for you replies... Glenn, you legend, it works perfectly!!!

  5. #5
    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,754

    Re: Formula Help Pls - Search cell for WORD, return fields from WORD lookup

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. A word search to return words found in given fields
    By JonBrett in forum Excel General
    Replies: 2
    Last Post: 03-28-2014, 10:16 PM
  2. Replies: 2
    Last Post: 08-05-2013, 04:45 PM
  3. Replies: 4
    Last Post: 05-07-2012, 10:53 PM
  4. export cell contents to Word fields in a protected Word document
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2011, 09:31 AM
  5. Replies: 1
    Last Post: 01-25-2011, 10:50 PM
  6. Cell search fuzzy word match lookup
    By datacruncher in forum Excel General
    Replies: 1
    Last Post: 12-03-2009, 07:05 AM
  7. [SOLVED] need formula to search column for a word and return another word
    By Skyline in forum Excel General
    Replies: 5
    Last Post: 11-18-2005, 06:10 PM

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