+ Reply to Thread
Results 1 to 11 of 11

Need 0 to highlight red with con.format

  1. #1
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    Office Pro 2010
    Posts
    275

    Need 0 to highlight red with con.format

    Its Mr Stupid kicking in again im afraid,

    I just cant put my finger on it. I need a cell to highlight RED (via conditional formating) if the cell reads 0.

    When using conditional formatting and entering, the cell is equal to 0, it turns all the cells red that are empty aswell. This is what i dont what.

    The only cell i require to turn RED is that with a 0 (zero) in

  2. #2
    Registered User
    Join Date
    05-29-2008
    Posts
    3
    I'm rather new to this whole Excel experience and I'm sure there's a better way to do this but here's a method I used to get around this situation:

    In the conditional formating change the "cell value" drop down to "specific text" and then in the next drop down box select "beginning with" then put 0 in the 3rd box. That should do the trick, or at least be a quick fix until a better solution comes along.

  3. #3
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    Office Pro 2010
    Posts
    275
    Thanx for the effort Jericho but I must be using an older version as "Specific Text" is not an option under conditional formatting. I have only "Cell Value Is" or "Formula Is"

  4. #4
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Try in "formula is": (ajust your range as you need).

    (if cell value equals 0)
    Please Login or Register  to view this content.
    If cell value contains 0 inside a text string
    Please Login or Register  to view this content.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  5. #5
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    Office Pro 2010
    Posts
    275
    Nope it still picks up an empty cell as a 0 (zero)

    If anyone wants to try and sort it out the sheets are contained in the sample file attached.

    (Sorry about the macro but this needs to stay)
    Attached Files Attached Files
    Last edited by ukphoenix; 05-29-2008 at 09:40 PM.

  6. #6
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    One workaround

    Add as a first condition:
    =a1="" and choose "white"

    and in the second condition:
    =a1=0

  7. #7
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    Office Pro 2010
    Posts
    275
    I already have a 1st condition which needs to remain. Please check attachment to confirm

  8. #8
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Try:

    =AND($C$6<>"";M6<>"";M6=0) as first condition and choose red
    =AND($C$6<>"";M6="") as second condition and choose white
    =$C$6="" as third condition and choose grey

  9. #9
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    Office Pro 2010
    Posts
    275
    Quote Originally Posted by Portuga
    Try:

    =AND($C$6<>"";M6<>"";M6=0) as first condition and choose red
    =AND($C$6<>"";M6="") as second condition and choose white
    =$C$6="" as third condition and choose grey
    Tried this but the section in red throws up error in the formula. Also it looks as if your trying to only set the formatting on the 1 cell (M6). It will need to be used across all grey cells (F6 to O24) as figures are entered in all boxes at some point at which anytime a 0 may occure
    Last edited by ukphoenix; 05-29-2008 at 11:19 PM.

  10. #10
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    You are probably getting an error because your excel version uses "," instead of ";"

    Obviously, that formula will work for cell M6. You can THEN use the format painter to format the range you want. (watch for the cell reference- use the dollar sign as apropriate)

    maybe something like this

    =AND($C6<>"",M6<>"",M6=0)

  11. #11
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    Office Pro 2010
    Posts
    275
    Thanx Portuga....finally got it sorted thanx to your formula. Dont know why but I thought the solution would have been easier than that.

    Gone are the old days of A=0 then ""

+ 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.6.0 RC 1