+ Reply to Thread
Results 1 to 7 of 7

search and find a value

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    Amsterdam
    MS-Off Ver
    Excel 2013
    Posts
    4

    search and find a value

    In one column/field I've a value and I need to find this value in another sheet/column where this field contains a complete text including the value I'm looking for.
    With the ctrl-h function I can find the specific value. But, I need a formula that takes the value and searches the whole column in the other sheet and returns a value in the same row so I can find the row where the valu can be found. Vlookup doesn't work for this.
    Anyone a suggestion?

    Thanks

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: search and find a value

    In what column?

    Either LOOKUP(SEARCH or INDEX(MATCH could do this, but you'd have to know which column you're returning the value from.

    Where Sheet1!Z10 = what you're looking up

    Sheet2 A1:A500 = place to look for it
    Sheet2 B1:B500 = value to return

    =LOOKUP(2,1/(SEARCH(Sheet1!Z10,Sheet2!A1:A500)),Sheet2!B1:500)

    =INDEX(Sheet2!B1:B500,MATCH("*"&Sheet1!Z10&"*",Sheet2!A1:A500,0))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    03-13-2014
    Location
    Amsterdam
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: search and find a value

    Thanks for you reply. I do not fully understand your solution.

    I give you more details.

    I've sheet 1 with column 'D' containing a value (numbers). I need to find each value in column 'I' in sheet 2. But column 'I' contains in each field many characters and values. The value (column D) should be find in 'I' and then return a unique value in the same row 8 columns to the left.

    ow do I fill the formula you are suggesting?

    Thnaks for your help

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: search and find a value

    So, the column I was asking for is... A on Sheet2? (8 columns to the left)

    Let's say you start at D2:

    Pick one.

    =LOOKUP(2,1/(SEARCH(Sheet1!D2,Sheet2!$I$2:$I$500)),Sheet2!$A$2:$A$500)

    or

    =INDEX(Sheet2!$A$2:$A$500,MATCH("*"&Sheet1!D2&"*",Sheet2!$I$2:$I$500,0))

    Then copy that formula from D2 all the way down.

  5. #5
    Registered User
    Join Date
    03-13-2014
    Location
    Amsterdam
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: search and find a value

    I managed! I now understand your formula. Thanks a lot! I'm very happy with it. It saves me a huge effort. Thanks again.

  6. #6
    Registered User
    Join Date
    03-13-2014
    Location
    Amsterdam
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: search and find a value

    how do I close this threat as being solved?

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: search and find a value

    Glad I could help out.

    At the top under Thread Options, click that dropdown menu and choose Mark as Solved.

+ 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. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  2. Excel FIND/SEARCH Find Name Hours Worked
    By staceynix in forum Excel General
    Replies: 8
    Last Post: 02-01-2013, 01:39 AM
  3. FIND / SEARCH find nonnumeric
    By Barry Staples in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-03-2006, 06:34 PM
  4. Replies: 1
    Last Post: 01-31-2006, 06:25 PM
  5. search a string withing a string : find / search hangs
    By itarnak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2005, 11:05 AM

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