+ Reply to Thread
Results 1 to 11 of 11

Excel 2007 : Conditional formatting for shortest time

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    Somewhere
    MS-Off Ver
    Excel 2007
    Posts
    5

    Conditional formatting for shortest time

    I'm trying to use conditional formatting to color a cell green when the value in the cell is the shortest time from the rest of the selected cells. For example, if F3 is shorter than F10 and F16, color the cell green. I have tried several different ways of adding the formula, but it never colors the cell. Anybody have any ideas on how to code this?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: How to create conditional formatting to find the shortest time

    Try this in CF: =F1<=MIN(F2:F$100)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-21-2011
    Location
    Somewhere
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to create conditional formatting to find the shortest time

    Thanks, but I couldn't get that to work for me unfortunately. I've attached the spreadsheet that I'm using with the values already there. I'm trying to color the least amount of time in column F.
    times.xlsx

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to create conditional formatting to find the shortest time

    Hi darkknight4251

    Using an unusual way(one helper column), i give you the result that you are looking for.

    Pls take a look, to the attachment.

    Hope to helps you
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    12-21-2011
    Location
    Somewhere
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to create conditional formatting to find the shortest time

    I made an error when I posted the spreadsheet though and forgot to take out the extra totals to show what I needed. Attached is the correct totals that I would need to look at. The formula would need to look at specific cells and not use a range. So in the attached example, I'm trying to fill in the cell that has the lowest amount of time between cells F3 F10 and F16. Thanks for all the efforts!

    times2.xlsx

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Conditional formatting for shortest time

    Try look here:
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-21-2011
    Location
    Somewhere
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional formatting for shortest time

    Crap, I uploaded the wrong file again. I guess my luck just isn't working this week . Here's the example file that I tried to upload last night. Again, I'm trying to fill in the cell that has the lowest amount of time between cells F3 F10 and F16. I can't use a range for them, because there will be unrelated figures filled in later in column F. That's my main problem as the formulas that you have all given me work with a range of cells, but not specific cells.
    Attached Files Attached Files

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Conditional formatting for shortest time

    If inf other cells in F column is text or numbers greater than 1, then this formula will work.

    Based on those new inputs I think you need:

    Write this in CF for F3: =$F3=MIN($F$3;$F$10;$F$16)
    Select formatting
    Then copy cell and paste-spetail -> Formats in other two cells.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Conditional formatting for shortest time

    If you have much more times and you can't make manuall each cell, then in some other column (for example G) write in F3: =IF(F1="Total time",F2,"")
    And you'll get only those times.. Now you can use =$G3=MIN($G$3:$G$10000) to select all cells...


    Or =$G3=<MIN($G3:$G$10000) for previous solution.
    Attached Files Attached Files
    Last edited by zbor; 12-22-2011 at 11:05 AM.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting for shortest time

    Hi

    So you need for each of three cells, a quiet different formula

    Take a look to the attachment and tell us if it's OK.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-21-2011
    Location
    Somewhere
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional formatting for shortest time

    It works now! Thanks to all of you for your help with this and your patience with my screw ups!

+ 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