+ Reply to Thread
Results 1 to 3 of 3

Return a value if specific text is contained in range.

Hybrid View

  1. #1
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,531

    Re: Return a value if specific text is contained in range.

    =IF(COUNTIF(A2:I2,"High")>0,"High",IF(AND(COUNTIF(A2:I2,"Low")>0,COUNTIF(A2:I2,"High")=0),"Low","Medium"))

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,531

    Re: Return a value if specific text is contained in range.

    Shorter ..

    =IF(COUNTIF(A2:I2,"High"),"High",IF(COUNTIF(A2:I2,"Low"),"Low","Medium"))

+ 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] Formula to Return Text Result Based On Text Contained in Cell
    By ShawnaLynn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-10-2021, 12:40 PM
  2. [SOLVED] Match 2 different text strings both contained in a cell, return value
    By excelforumkeys in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2018, 05:08 PM
  3. Return a cell value if a date is contained in a range of cells
    By studio95 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2016, 04:44 AM
  4. [SOLVED] How to Return Values Not Contained in a Range
    By Kerik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-10-2015, 02:24 AM
  5. [SOLVED] Search for the first cell that contained a specific text
    By Dena in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2014, 01:46 PM
  6. [SOLVED] If cell contains text contained in a named range return the row number
    By spoursy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2014, 05:54 AM
  7. [SOLVED] Return specific text if a different text is contained anywhere in a range of cells
    By ciayers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 05:54 PM

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