+ Reply to Thread
Results 1 to 6 of 6

How to match a cell with text with a range of text and return own text

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007/2010/365
    Posts
    82

    How to match a cell with text with a range of text and return own text

    Dear experts,

    I had searched online and could not find any results on my problem.

    I need to match a fleet of vehicle and monitor the installation of cameras (for this case).

    In Sheet1, is the list of the vehicles that the Operations staff will record whenever the driver reports that the camera is not working. Then, the fleet manager will look into Sheet2 to see how many more vehicles are without cameras so that he can plan or deploy the vehicle back to workshop for the installation.

    The formula will be in Sheet2, column E, the logical test will column B with Sheet1 column B. So long as the vehicle number on Sheet2 B2 = Sheet1 any vehicle listed in Column B, the cell E in Sheet2 will returns the desired text.

    As the vehicle number plate are not = to a specific number, therefore, could not find a solution to do the matching.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: How to match a cell with text with a range of text and return own text

    The formula in Column E is a array formula, so you must use Ctrl-Shift-Enter. {Curly brackets}
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007/2010/365
    Posts
    82

    Re: How to match a cell with text with a range of text and return own text

    Quote Originally Posted by Tinbendr View Post
    The formula in Column E is a array formula, so you must use Ctrl-Shift-Enter. {Curly brackets}

    Thank you Tinbendr, even if I enter as array, it can only works on Sheet1 B2, for data that was after B2, meaning B3, B4 and B5, all not working.

    Array Note working.jpg

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to match a cell with text with a range of text and return own text

    Use

    =IF(ISNUMBER(MATCH(B3,Sheet1!$B$2:$B$26,0)),"Camera Installed", "No Camera")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: How to match a cell with text with a range of text and return own text

    How about this instead?
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-09-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007/2010/365
    Posts
    82

    Re: How to match a cell with text with a range of text and return own text

    Thank you, Ace_XL and Tinbendr. Both method works!!

+ 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. Replies: 3
    Last Post: 06-17-2013, 01:09 PM
  2. Replies: 7
    Last Post: 01-24-2013, 06:55 PM
  3. Replies: 0
    Last Post: 11-16-2012, 11:42 AM
  4. Replies: 4
    Last Post: 04-02-2012, 07:37 AM
  5. Search text string for range of text values - return match
    By crugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2010, 09:55 AM

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