+ Reply to Thread
Results 1 to 16 of 16

Conditional formatting - one cell green rest no colour

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Conditional formatting - one cell green rest no colour

    Hi forum,

    I have five columns D3 to H3 all with different amounts/currency value.
    I'm looking to get a formula or use conditional formatting to scan those five cells and highlight one of them green when Excel has determined which one is the cheapest out of the five.

    Your help is appreciated!

    Much thanks!
    Last edited by HHR; 01-31-2013 at 02:49 PM.

  2. #2
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    I put in fake values in D3:H3 and I tried highlighting the cells, opening the Conditional Formatting and putting a this formula: =min(d3:h3) and get it to turn green under the format section, but all this is doing is making all the cells from D3:H3 all green.

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - one cell green rest no colour

    Try this (Procedure on a Mac, but it should be similar on PC):

    1. Select D3:H3
    2. Click on Conditional Formatting
    3. Select 'Top/Botom Rules'
    4. Select 'Bottom 10 Items...'
    5. Change the value of 10 in the text box to 1
    6. Choose your formatting, and click OK

    - Moo

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - one cell green rest no colour

    Trying to use a formula you would have to highlight D3:H3, then use this:

    =D3=MIN($D$3:$H$3)

    - Moo

  5. #5
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    Moo,
    The first thing almost worked, except, I guess I should have explained that this needs to apply from D3:H30 (a block of cells that will have values in them). I thought if I could get it to work for just one row (D3:H3) that it would work for the whole sheet, not the case.

    Each row has different information and I want ONLY between D and H to (each seperate row) to turn green when a value is lowest.

    Example: in row A3 I have an item name, in B3 I have a description, in C3 I have a quantity and between D3:H3 I have different values.
    In row A4, I will again have a different item name, in B4, a different description and C3 a diff quantity, with completely different values between D4:H4.

    One each line, I need whichever value is the lowest to turn green.
    so, whichever is lowest between D3:H3, I need it to turn green. On the next row/line, I need D4:H4 to again, have the same rules apply.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - one cell green rest no colour

    Just realized, the formula above only highlights the lowest value for the entire range -what was I thinking?... gah

    Highlight D3:H30, and change the formula to:

    =D3=MIN($D3:$H3)

    - Moo
    Last edited by Moo the Dog; 01-31-2013 at 12:25 PM. Reason: Updated formula... hopefully THIS one works!

  7. #7
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    Moo, it works great; however, until I fill in the rest of the sheet, all the cells are green just waiting for values. How can I get them to stay clear until there are values in there?

  8. #8
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    Here is a copy of the excel sheet.
    Attached Files Attached Files

  9. #9
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - one cell green rest no colour

    Try this (also see attached modified sheet)...

    Select D3:H30 again, and add an additional CF formula to that selection (above previous rule!): =D3=0
    Clear any formats (font / border/ fill) so they are at normal settings.

    Be sure that it is above the earlier formula, so that it is evaluated first.

    - Moo
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    Thanks Moo, however, it still doesn't solve my problem. If there are ANY values at all in one row, $3.00, $2.50, $0.00, $1.20, $5.60, I'd need the value of $1.20 to be highlighted only. With your excel sheet, if one cell is left at zero, nothing goes green in that whole row. I may have zero's in there and would need the zero's to stay clear, while the lowest number in that row goes green only.

  11. #11
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - one cell green rest no colour

    OK, try this then:

    =D3=MIN(IF(D3:H3>0,D3:H3))

    - Moo

  12. #12
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    Technically the $0.00 is the lowest value, I know, but the entire sheet will all be zero's until I get numbers to fill in there.
    This excel sheet will be used for Quotes received from vendors. If I do not receive a quote from a vendor, then it'll stay at zero, but is not necessarily the lowest cost.

  13. #13
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - one cell green rest no colour

    See my new formula above in post #11

  14. #14
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    Moo, I put that in there and its working (for the zeros), but its highlighting multiple cells in the same row not just the one for some reason.

  15. #15
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting - one cell green rest no colour

    Gah, I forgot the $ for absolute referencing... this seems to work:

    =D3=MIN(IF($D3:$H3>0,$D3:$H3))

  16. #16
    Registered User
    Join Date
    12-20-2010
    Location
    Cambridge, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Conditional formatting - one cell green rest no colour

    Yeah!! It worked!!!!!

    Thank you! Thank you! Thank you!!!!!!!!!!!

+ 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