+ Reply to Thread
Results 1 to 13 of 13

Another Conditional Formatting question

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Another Conditional Formatting question

    I can't figure out the right way to do this

    If cell I5=0 (or blank) Normal format
    If cell I5>0 and/or >J5 Format white font on black background
    If cell I5=J5 Normal format
    If cell I5<J5 should never happen, so I need an error alert if this happens.

    None of these will involve negative numbers.

    I tried to keep it simple using =(i5>j5) but 0 is highlighted if j5 is blank, and this lets j5>i5.

    I tried playing around with the formulas and couldn't get them to work. Please let me know how to do this. Thanks.
    Last edited by swmwshrk; 07-10-2012 at 01:53 PM.

  2. #2
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Another Conditional Formatting question

    You can do this my having multible conditional formatting rules on that one cell.

    Cell Value = $J$5 -> No Format
    Cell Value > $J$5 -> Black fill & white text
    Cell Value < $J$5 -> Highlight some outrageous color no person should ever endure! Red works too

  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Another Conditional Formatting question

    How about this?
    Cell Value =or(i5=0,I5=J5) ->No Format
    Cell Value = or(i5>0,I5>J5) -> Black fill & white text
    Cell Value < $J$5 -> Red Font
    Click on star (*) below if this helps

  4. #4
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Another Conditional Formatting question

    For some reason neither of these formulas are working. See the attached pictures. I tried to uload my workbook but at 6 mb it was too large.

    Image CF is the formulas suggested by K M. C5 is correct. e5 should be Black text white fill and g5 should be red bold italic text on yellow fill.

    CF2 is MShale formulas, and c5 s correct, e5 should be Black text white fill and g5 should be red bold italic text on yellow fill.

    What am I doing wrong.

    Thanks for helping.
    Attached Images Attached Images

  5. #5
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Another Conditional Formatting question

    Well, Did you change the references for the other cells? If you are just checking against $D$5, then it's doing what it's supposed to. You can take the absolute references out of there, that was just a copy/pasta thing. Upload another photo showing the conditional formatting rules of the other cells in question.
    Last edited by mshale; 07-10-2012 at 04:46 PM. Reason: spelling

  6. #6
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Another Conditional Formatting question

    I think you don't understand:
    Conditional Format only works on the cell with that format.
    If you set conditional formats for cell I5, they do not effect other cells.

    You would have to set some other conditional format conditions for cells E5 and G5

  7. #7
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Another Conditional Formatting question

    I dragged the format to the other cells like you would a formula, and thought like a formula the cell reference would change. I fixed the cell references and they still are not working. I uloaded a new pic showing this. Am I typing the formulas correctly or doing something else wrong?

    Lets look only at cell C5. when C5= any number & d5 =0 or blank, it is correct. When I enter any number other than 0 into cell d5 it goes to condition 3. so if cell c5=1 cell d5 is blank it is right. If cell c5=1 and cell d5=1 the cell is yellow with red text. THanks you for your ongoing help.
    Attached Images Attached Images

  8. #8
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Another Conditional Formatting question

    Mshale's and my formatting work for your original condition.

    Explain what you are trying to do. ie which cells need formatting?

    Give a better explanation

  9. #9
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Another Conditional Formatting question

    Please understand I am not saying your formulas are wrong. I may have a typo or something that is causing the error. It could also be a cell formatting error.

    I am creating a spreadsheet to track awards for an all girl scouting organization my daughter belongs too. The page I am working on is the summary page so a leader can see what badges each girl in the squad has earned and which need to be presented. This is the reason for the formatting. To highlight awards that have been earned but not presented.

    For most badges they are only earned once per level. However the girls earn a star for every X number of hours of service, based on their age. IE 1st through 3rd graders get one star for 5 hours of community service. Since multiple stars can be earned on each level here is whats going on,

    Cell C5 =# of service hours comleted at the tenderheart (1st-3rd grade) level /5 which gives me the total number of service stars that girl has earned.
    In cell D5 the leader enters how many stars have been presented to each girl.

    So if the number of stars earned=number presented then normal format.
    If number of stars earned>number presented black field with white text indicating that girl needs one or more stars presented.
    If a leader enters a number greater than what teh girl earned, then this is an error and I want it to pop out so the leader can correct it.

    So in my sheet (table below)

    C D E F
    5 1 1 2 1
    6 3 4
    C5=d5 no special formatting
    E5>F5 Highlight E5
    c6<d6 error formatting

    I hoe this enables you to get this working for me.

    If it matters C5 format is custom [h]
    D5 format is number
    C5 value is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thank you for helping me.
    Last edited by swmwshrk; 07-10-2012 at 10:01 PM.

  10. #10
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Another Conditional Formatting question

    Not to tell you what to do but I was a boy scout leader and we had software tailored for that function and it was inexpensive. Surely girl scouts have the same. I recommend that approach.

    If you still need help perhaps someone else will step up as I am having a hard time following your explanation. Sorry

  11. #11
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Another Conditional Formatting question

    This is not for Girlscouts, it is for American Heritage Girls. Yes there is software and spreadsheets for BSA and GSUSA but AHG is only 17 years old and there is no app for smart phones/tablets or any other digital tracking software for their badges. I have the scout trax spreadsheets for my sons cub scout den, and I am trying to create something like those for AHG.

    I appreciate your help though thanks.

  12. #12
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Another Conditional Formatting question

    Quote Originally Posted by swmwshrk View Post
    ...

    So in my sheet (table below)

    C D E F
    5 1 1 2 1
    6 3 4
    C5=d5 no special formatting
    E5>F5 Highlight E5
    c6<d6 error formatting

    I hoe this enables you to get this working for me.

    If it matters C5 format is custom [h]
    D5 format is number
    C5 value is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thank you for helping me.
    Well, judging by what you just posted, you are missing a key concept of excel. Just because the cell shows you "1" doesn't mean the cell's value is 1. If you have the cell formatted to display no decimals, then a cell value of 0.95 will be shown as 1, but the value is still less than 1 - which is why you see the "error" formatting.

    try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    since the total number of stars cannot be a fraction, this formula will round down to the nearest whole number. 0.95 of a star is still 0 stars until you earn all of it

  13. #13
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Another Conditional Formatting question

    It looks like the format is the problem. when I took out the formula and just used numbers the conditional formatting worked. SO I have to fiure out how to format the cells. Round and Rounddown gave me 5:00 (format custom [HH]:mm) /5 (format custom [H]) returned the answer 0. I tied roundup and I got the answer 1 until I changed 5:00 to 10:00 or 15:00, still getting 1 as the result.

    I guess I'll just have to play around withthe formats until it all works correctly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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