+ Reply to Thread
Results 1 to 7 of 7

Formula to look at a cell and if it finds a key word in an array, return the adjecent cell

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    Formula to look at a cell and if it finds a key word in an array, return the adjecent cell

    hi guys,

    I hope you can help me with this formula

    Basically in the attached file we have hotel names. What I need is a formula in the yellow cells (column B). It needs to look for a key word (column D). If it finds a key word then return the value in column E.

    For example, in cell A2, it contains the word "Aloft". "Aloft" is in column D, so I need it to return "Starwood" (column E).

    Many Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Formula to look at a cell and if it finds a key word in an array, return the adjecent

    Try

    B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Formula to look at a cell and if it finds a key word in an array, return the adjecent

    Thanks Shukla!

    2 quick things.

    What does the 15^15 mean?

    Also, is there any way i can extend the ranges $D$2:$D$4 and $E$2:$E$4 to go down futher. just so i can add to it in the future. when i extend the ranges to say row 15 then i just get a "0" value

    Many thanks!

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Formula to look at a cell and if it finds a key word in an array, return the adjecent

    Have a look http://www.homeandlearn.co.uk/excel2...l2007s7p9.html

    You will get all the answers about Lookup Function.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,039

    Re: Formula to look at a cell and if it finds a key word in an array, return the adjecent

    Quote Originally Posted by shukla.ankur281190 View Post
    Have a look http://www.homeandlearn.co.uk/excel2...l2007s7p9.html

    You will get all the answers about Lookup Function.
    That link has no explanation of the exponential 15^15. Please remember that not all of us are mathematical wizards! Please explain why you have used 15^15 in this LOOKUP query.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Formula to look at a cell and if it finds a key word in an array, return the adjecent

    Quote Originally Posted by AliGW View Post
    That link has no explanation of the exponential 15^15. Please remember that not all of us are mathematical wizards! Please explain why you have used 15^15 in this LOOKUP query.
    In my idea, biggest number came with this exponential 15^15=4.37894E+17 and Lookup function is always look nearest biggest value in array and retrieve the results.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to look at a cell and if it finds a key word in an array, return the adjecent

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] Formula required to return YES/NO if a specified word is present in a cell
    By @MeDaveT in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2014, 04:33 AM
  2. [SOLVED] Macro to find a word and out a % in a cell when it finds it
    By mmurphy77 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-30-2013, 06:38 PM
  3. Replies: 11
    Last Post: 04-14-2013, 12:02 AM
  4. identifying last cell in a row and copy donn the formula in adjecent cell
    By kiranpat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2013, 08:08 PM
  5. formula for calculating quintiles if there is a value in adjecent cell
    By Daniello1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-31-2012, 09:53 AM
  6. Replies: 4
    Last Post: 12-06-2011, 10:15 AM
  7. Search for an array of words, change a cell based on what it finds
    By vmd0957 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2008, 02:46 PM

Tags for this Thread

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