+ Reply to Thread
Results 1 to 9 of 9

Find the name in a range and return a value.

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Find the name in a range and return a value.

    I am tying to create a formula that will search the entire string in A2 to find the color found in D24:D60 and then rewrite the string to be like B2 in this example.

    Note that B2s vernacular is replacing Air Blue.jpg with the looked up code CB but in each case its adding the word TOM to the front of it, finishing up with .jpg

    Thank you
    Attached Files Attached Files

  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: Find the name in a range and return a value.

    You didn't show what formula you were using. However 'Tom' can only come from D18 so it's not clear what D18 is doing.

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Find the name in a range and return a value.

    I would move the Name to call it and TOM, D18 into a another place if you want. that will be a constant.. so you enter a make and it will use that to put in front of it all. D18 is a manual enter.

    D

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find the name in a range and return a value.

    in B2 copy paste below and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by hemesh; 03-01-2020 at 03:52 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Find the name in a range and return a value.

    =substitute(a2,lookup(1000,find($d$24:$d$60,a2),$d$24:$d$60),lookup(1000,find($d$24:$d$60,a2),$e$24:$e$60))
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Find the name in a range and return a value.

    Also, the number of "\" will not always be the same. i was wondering if you could just use the "\Air Blue.jpg" portion to do the look up for? switch it up to be "\TOM-CB.jpg" and replace it in the full string?

    That was what i was originally trying to do with no luck.

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find the name in a range and return a value.

    in that case a little change to Tim's formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Find the name in a range and return a value.

    YEP!!! this works.. thanks all!!!!

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find the name in a range and return a value.

    here is another one
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    may be the the formula from POST#7 can get you undesired results such that in B13 it may give end string as ""TOM-CA Cocoa.Jpg" and so on.
    I could see there are exact matches in your given column. more over this will work for more than 5 "\"

+ 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] Need to find a IP address from within IP ranges and return the range name
    By furk in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-06-2021, 10:23 PM
  2. VBA find multiple instances of value in range, return value in col for each row
    By Stigmata in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-04-2019, 04:49 PM
  3. Find a value in a range and return the value of column A
    By Disposable Hero in forum Excel General
    Replies: 4
    Last Post: 12-01-2018, 12:56 AM
  4. [SOLVED] Find and return range
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2014, 02:41 PM
  5. [SOLVED] Find max value in range and return corresponding value in offset range
    By burnsy180 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-30-2012, 05:58 AM
  6. Find range of group & return highest value
    By Stiansen in forum Excel General
    Replies: 5
    Last Post: 02-10-2012, 04:02 AM
  7. I want vlookup to find a range, and return highest value in that range
    By crazie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2008, 01:20 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