+ Reply to Thread
Results 1 to 6 of 6

Cell range contains text then "x" if not then blank....

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    Washington, DC
    MS-Off Ver
    Windows 8
    Posts
    4

    Cell range contains text then "x" if not then blank....

    I need to write a formula where if a range of cells all are marked with an x then the cell autopopulates "x", if only some are marked, then "In Review", and if nothing then nothing.

    I currently have
    =IF(AND(c8:c15="x"),"x","Review"))
    With ctrl shift delete

    How can I have this cell be blank if none of the cells in the cell range are marked?

    Thanks for any help sorting this out!

  2. #2
    Registered User
    Join Date
    11-17-2014
    Location
    Washington, DC
    MS-Off Ver
    Windows 8
    Posts
    4

    Re: Cell range contains text then "x" if not then blank....

    I'm not sure if I need to use an array, but that is the only way I can get it to work.

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Cell range contains text then "x" if not then blank....

    Try:
    =IF(COUNTA(C8:C15)=8,"X",IF(COUNTA(C8:C15)=0,"","In Review"))

    Hope that helps.

    -Z

  4. #4
    Registered User
    Join Date
    11-17-2014
    Location
    Washington, DC
    MS-Off Ver
    Windows 8
    Posts
    4

    Re: Cell range contains text then "x" if not then blank....

    Thank you Zodeeak!!!!! Worked perfect - and such a fast response!

  5. #5
    Registered User
    Join Date
    11-17-2014
    Location
    Washington, DC
    MS-Off Ver
    Windows 8
    Posts
    4

    Re: Cell range contains text then "x" if not then blank....

    One more question though -- what if the number of cells in the cell range may vary? Is there a way to automatically adjust?

  6. #6
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Cell range contains text then "x" if not then blank....

    There are always ways...
    You could have a cell set up to designate how many to count down (say cell C2) and use the formula like this:

    =IF(COUNTA(C8:C50)=C2,"X",IF(COUNTA(C8:C50)=0,"","In Review"))
    or
    =IF(COUNTIF(C8:C50,"x")=0,"",IF(COUNTIF(C8:C50)>=C2,"X","In Review"))

    Hope that helps.

    -Z
    Last edited by Zodeeak; 11-17-2014 at 02:28 PM.

+ 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] Range("A1") = Sheets("Sheet2").CenterHeader.Text doesnt work.
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 07:06 AM
  2. Replies: 6
    Last Post: 09-25-2013, 01:51 PM
  3. solution for the blank cell using the IF function
    By ragnaedge in forum Excel General
    Replies: 4
    Last Post: 08-23-2013, 11:03 AM
  4. Find "TEXT 1" in a range and enter "TEXT 2" in the adjacent cell
    By madreag in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2013, 05:34 PM
  5. Replies: 3
    Last Post: 02-16-2011, 02:55 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