+ Reply to Thread
Results 1 to 5 of 5

Excel 2007/2010 Conditional/Formula Formatting multiple possible

  1. #1
    Registered User
    Join Date
    12-04-2008
    Location
    notta
    Posts
    21

    Excel 2007/2010 Conditional/Formula Formatting multiple possible

    Ok I have a spreadsheet that calculates schedule hours for a 2 week period of time/total of one month. So the box would have 80 / 80 if both pay periods were complete. If not it would be 48 / 80 or ## / ##. No of course when I first start making the schedule it is 0 / 0.

    In this COLUMN there are headings/other things in other places as well. IF possible I would like it to leave the box NO FILL when the value is 0 / 0, or any other text/blanks, etc.

    If it is ## / ## I would like it to FILL the box RED (basically highlighting that the hours are not complete, and then FILL GREEN when the value = 80 / 80 letting me know they are scheduled for their total hours of the month.

    So I can do conditional formatting with 80 / 80 and set it to FILL green, but if I do NOT EQUAL or anything else ofr the colors it wants to set ALL of them NOT equal to other colorrs...

    any help is appreciated...

    I was even going to just say FONT colors using CUSTOM FORMATTING
    [GREEN][="80 / 80"]## / ##;[Black][="0 / 0"]# /#;[RED]## / ##

    but that didn't work... for some reason keeps changing the values to 80 or 0 and ignoring it... I guess that custom formatting only goes with greater than numbers, etc
    Last edited by ExcelNoob2008; 06-16-2011 at 11:42 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel 2007/2010 Conditional/Formula Formatting multiple possible

    Can you use this conditional formatting formula for Red?

    =AND(A1<>"0/0",A1<>"80/80")

    where A1 is top most cell in your selection
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-04-2008
    Location
    notta
    Posts
    21

    Re: Excel 2007/2010 Conditional/Formula Formatting multiple possible

    that didn't work, the empty ones and the Titles/headers also changed.

    I know I can set the range A1:A52, etc... but I would need this to be flexible for the whole column. I might add or subtract people or spaces/blanks..

    I did =$AD:$AD="80 / 80" and was able to have them SHOW green. I guess this will have to do unless someone else has any suggestions.. like an IF statement

    If CELL = "80 / 80" FILL GREEN, "0 / 0" LEAVE ALONE, "## / ##" FILL RED...ANYTHING ELSE IGNORE...

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel 2007/2010 Conditional/Formula Formatting multiple possible

    How about:

    =AND(SEARCH( "/ ",$AD1),$AD1<>"0/0",$AD1<>"80/80")

    this will also check that the cell has a " / " so it shouldn't colour cells with text (as long as there are no " / " in it.

  5. #5
    Registered User
    Join Date
    12-04-2008
    Location
    notta
    Posts
    21

    Re: Excel 2007/2010 Conditional/Formula Formatting multiple possible

    Thanks for the help.. I couldn't get exactly what I wanted, but I got what I really needed to work.. I appreciate all replies.

+ 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