+ Reply to Thread
Results 1 to 5 of 5

If cell range contains specific text then....

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    If cell range contains specific text then....

    Hi guys,
    I'm stuck a bit, maybe somebody can give me a hand. This is what i would like to achieve:
    if at least one cell in range G9:G18 contains "In Progress" G8="In Progress", if any cell in range G9:G18 do not contain "In Progress" (it will contain "Completed") G8="Completed"

    Thanks in advance
    Last edited by intex; 07-19-2014 at 08:54 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: If cell range contains specific text then....

    Use COUNTIF to check the range for "In Progress". If the count is >=1 ... "In Progress"


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If cell range contains specific text then....

    Maybe this...

    =IF(countif(G9:G18,"In Progress")>0,"In Progress","Completed")

    or just this...
    =IF(COUNTIF(G9:G18,"In Progress"),"In Progress","Completed")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    08-08-2012
    Location
    englang
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: If cell range contains specific text then....

    Hi FDibbins,

    Thanks it works like a charm.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If cell range contains specific text then....

    happy to help

+ 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] Searching a Range for a Specific Text and put a different text in a different cell
    By AngelAzrael in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2013, 09:25 AM
  2. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  3. Specific Text in Range then highlight cell
    By gingank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2013, 10:41 AM
  4. [SOLVED] Return contents of a cell that contains a specific text within a range.
    By nhi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-04-2013, 07:54 PM
  5. count by specific text color in range of cell
    By Tii99 in forum Excel General
    Replies: 2
    Last Post: 04-04-2006, 04:58 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