+ Reply to Thread
Results 1 to 4 of 4

Find a cell with String value - complex

  1. #1
    Registered User
    Join Date
    06-01-2012
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Post Find a cell with String value - complex

    Col B has all the sub-strings that needs to be searched.
    Col A has the full length strings that needs to be returned.

    VLOOKUP is not the answer; neither is INDEX/MATCH combo - in my opinion.

    Take a substring and match it against data in Col A and then return the Col A cell value. So sub-string in B6 exists in A3. So formula should return same value as A3 in C6. If sub-string is not found returning a "n/a" would be nice. (smile!)

    Please help..

    Thanks.
    H-
    Attached Files Attached Files

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

    Re: Find a cell with String value - complex

    How about this (2 solutions, check on other examples does they have faults... I think 2nd is better).

    (you can also return blank instead of NA().)
    Attached Files Attached Files
    Last edited by zbor; 06-01-2012 at 02:51 AM.
    Never use Merged Cells in Excel

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

    Re: Find a cell with String value - complex

    Yes, 2nd is better... Ignore first one...

    If you enter WORLD in B20 both will work. But if you have blank cells (like enter WORLD in B30 and leave blank B20 to B29) then first one won't work.
    It assume all words are in B column without blanks.

  4. #4
    Registered User
    Join Date
    06-01-2012
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Thumbs up Re: Find a cell with String value - complex

    Wow... I wasn't even considering using Statistical and Math functions!! I am blown away Mr. Zbor -

    Thank you very much for your kindness..

    Cheers...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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