+ Reply to Thread
Results 1 to 5 of 5

Thread: Finding text across three columns

  1. #1
    Registered User
    Join Date
    09-18-2006
    Location
    Manchester
    Posts
    6

    Finding text across three columns

    Hi,

    I hope someone can help a bit of a newby! I have a sheet of text values and want to return a "TRUE" if there is a "Poor" or "Insufficient" in any of three columns (with 100 rows). So my data looks like this:

    Q1.2 Q2.2 Q2.6
    Insufficient Sufficient N/a no restrictive interventions
    Poor Insufficient Insufficient
    Sufficient Sufficient Sufficient

    And I would like a value at the end of each row to show "Contains Poor or Insufficient" / TRUE.

    Thanks,
    Kev B

  2. #2
    Forum Guru
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,799

    Lightbulb

    Quote Originally Posted by kball
    Hi,

    I hope someone can help a bit of a newby! I have a sheet of text values and want to return a "TRUE" if there is a "Poor" or "Insufficient" in any of three columns (with 100 rows). So my data looks like this:

    Q1.2 Q2.2 Q2.6
    Insufficient Sufficient N/a no restrictive interventions
    Poor Insufficient Insufficient
    Sufficient Sufficient Sufficient

    And I would like a value at the end of each row to show "Contains Poor or Insufficient" / TRUE.

    Thanks,
    Kev B
    I suppose that your data columns are A, B and C and data starts from A1

    try this in D1

    =IF(OR(COUNTIF(A1:C1,"poor"),COUNTIF(A1:C1,"insufficient")),"True","")
    you can use "Contains Poor or Insufficient" in place of "True"

    Regards.

  3. #3
    Registered User
    Join Date
    09-18-2006
    Location
    Manchester
    Posts
    6

    Thanks

    That works a treat and is a big help!

  4. #4
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130

    Thumbs up

    Quote Originally Posted by kball
    Hi,

    I hope someone can help a bit of a newby! I have a sheet of text values and want to return a "TRUE" if there is a "Poor" or "Insufficient" in any of three columns (with 100 rows). So my data looks like this:

    Q1.2 Q2.2 Q2.6
    Insufficient Sufficient N/a no restrictive interventions
    Poor Insufficient Insufficient
    Sufficient Sufficient Sufficient

    And I would like a value at the end of each row to show "Contains Poor or Insufficient" / TRUE.

    Thanks,
    Kev B
    Hi Kev B

    If your data is in A1:C3, then in E1 = Poor and in F1 = Insufficient

    then in D1 this formula

    =IF(OR(A1=$E$1,A1=$F$1,B1=$E$1,B1=$F$1,C1=$E$1,C1=$F$1),TRUE,FALSE)

    Hope this is what you want?

    oldchippy

  5. #5
    Forum Guru
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,799

    Lightbulb

    Quote Originally Posted by kball
    That works a treat and is a big help!
    you're welcome kball and thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0