+ Reply to Thread
Results 1 to 8 of 8

If one of the 5 cells contains an "L" give TRUE

  1. #1
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    If one of the 5 cells contains an "L" give TRUE

    I have 5 cells filled with numbers like L49 T49 Z467 etc. See file.
    Whenever one of the 5 cells contains an L there should appear a TRUE

    Thx
    Attached Files Attached Files
    Last edited by Gaellus; 07-21-2016 at 02:41 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: If one of the 5 cells contains an "L" give TRUE

    Try this ...

    =COUNTIF(A1:E1,"L*")>0

  3. #3
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: If one of the 5 cells contains an "L" give TRUE

    Thanks. And what IF i want to add two specific words to it. For example FISH and CHIPS

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: If one of the 5 cells contains an "L" give TRUE



    =SUM(COUNTIF(A1:E1,{"*FISH*","*CHIPS"}))>0

  5. #5
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: If one of the 5 cells contains an "L" give TRUE

    And now all in the same formula

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: If one of the 5 cells contains an "L" give TRUE

    Quote Originally Posted by Gaellus View Post
    And now all in the same formula
    Try ...

    =SUM(COUNTIF(A1:E1,{"L*","*FISH*","*CHIPS*"}))>0
    Last edited by Phuocam; 07-21-2016 at 02:26 AM.

  7. #7
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: If one of the 5 cells contains an "L" give TRUE

    Ah yea of course .. Thanks!

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: If one of the 5 cells contains an "L" give TRUE

    You are welcome, goodluck!

+ 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] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  2. compare two excel sheets using macros and display the result in "true" or "false"
    By gayunana01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 07:21 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Setting values for "TRUE","FALSE" and "#REF!"
    By Hurtige in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2006, 07:31 AM
  5. Find all cells with "A" and add the values of the adjacent cell to give a total.
    By leefarrell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2006, 11:09 AM
  6. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  7. [SOLVED] IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE")
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 01: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