+ Reply to Thread
Results 1 to 10 of 10

Conditional formatting

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    15

    Conditional formatting

    I have a column of cells representing days of the week running Friday to Thursday. Each cell is time formatted 00:00
    How would I do the following Only If each cell contained a time greater than 00:00 between Friday and Thursday change all to red or perhaps another cell somewhere on the sheet.
    Eg if each cell F10:F17 were all greater than 00:00 change to red
    Or is there another way to complete this
    Last edited by RAB; 10-31-2012 at 03:02 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional formatting

    ummm
    Please Login or Register  to view this content.
    did they invent a new weekday when i wasnt looking lol?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-13-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Conditional formatting

    Thanks for that. The week that the information runs Friday to Thursday the following week

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional formatting

    if you are familiar with conditional formatting, that will do it for you with a "new rule" and "use formula" and then use this...
    =MAX(F10:F17)>TIME(0,0,0)

    if you are not familiar with CF, find it in the home ribbon in styles

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting

    if thursday and friday are to be included, is even easier,
    Select F10-F17 --> Conditional Formatting--> Highlight Cell Rules-->Greater Than.. enter 0 in the "Cells that are greater than",then hit the "with" drop down button, "custom" if given list doesn't suit your needs

  6. #6
    Registered User
    Join Date
    09-13-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Conditional formatting

    Thank you very much it does not work the way i intended. I require all the selected cells to change colour only if all the cells selected are greater than zero. If i have seven cells say H10:H17 i would only like all the cells colour to change after the last vacant cell was populated with a time greater than 00:00
    So if any cell in the group contained 00:00 nothing would change. The colour change can only happen if the last cell in the group is populated with a time greater than 00:00
    Last edited by RAB; 11-01-2012 at 09:14 AM. Reason: Mistakenly thought solved

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional formatting

    ok that is not what you asked in you're 1st post
    Please Login or Register  to view this content.
    perhaps it would be easier to help you if you uploaded a sample workbook, showing what data you are working with, a few examples of what your expected outcome would be, and how you would arrive at that (remove any confidential info if necessary).

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting

    that would help immensely!

  9. #9
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting

    not saying this is impossible with Conditional Formatting, but you may want to try in the Macros & VBA section, that could come up with a faster and less intensive solution
    looks like the basic idea is to break the Column down into 7 day sections, then check to see if all members of the 7 day section are greater than 00:00, if so format with "Red" Fill?
    I see the formula to arrive at this solution becoming very, very, LARGE in Excel formulas, not impossible (maybe..) but large!
    Last edited by dredwolf; 11-01-2012 at 10:43 PM.

  10. #10
    Registered User
    Join Date
    09-13-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Conditional formatting

    Hello sorry been busy. It is a basic shift planner for idiots. One person cannot work seven days in a row without having a day off the next week. So if a time was entered into the planner that had seven days in a row Friday - Thursday the sheet would indicate that he needed a day off the next week.
    Also one person cannot exceed 72 hours a week. The problem being that he can exceed recorded hours of more than 72 hours a week if time can be deducted for non productive time to a certain value ie not doing anything for a particular reason weather break downs waiting on equipment etc. This is also calculated on a max daily basis including time taken to travel there etc. Also this planner could include a group off people employed on the same project. I know the Data base idea is the way that this should go but excel is sometimes more acceptable to the majority.
    Any ideas would be great if you can think of a better way on an excel sheet
    Attached Files Attached Files

+ 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