+ Reply to Thread
Results 1 to 17 of 17

Conditional Formatting

  1. #1
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Conditional Formatting

    Is there a way to add a character to a time to change the formatting color, but still allow excel to user the time format in a formula?

  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
    52,938

    Re: Conditional Formatting

    Hi and welcome to the forum

    I think you put this in the wrong forum (Outlook?), so I will move it for you. If I am wrong, please let me know?

    Also, you could use a helper to get CF to change color (use "use formula")

    Perhaps if you included a few examples of what you are working with, and what you want?
    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
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    Thnak you for moving the thread for me.

    Here is a sample of my current document. The different colors represent different shift locations. Right now we are appling the colors manually.

    I am wanting a way to make excel do the coloring for us through the formulas.

    I am creating a second document that will only show the shifts and not the calcuations, so that the employee's have an easier time looking at the schedule.

    thank you again for your help.
    Attached Files Attached Files

  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
    52,938

    Re: Conditional Formatting

    Im sure we can work somethin out here. Can you supply what the different shift (ranges??) are and what color you want them?

  5. #5
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    we have two locations, a downtown campus and a main campus, we also differenciate special duties and Shift Call-off(sick).

    so:

    Main Campus = Green
    Downtown Campus = Yellow
    Special Duties = Blue
    Shift Call Off = Orange
    Vacation = Dark Grey

  6. #6
    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
    52,938

    Re: Conditional Formatting

    I dont see any reference to those criteria in the sample workbook? What I do see are different colors being applied to very similar (and in some cases identical) shifts…

    K17= 0700 L17 = 1700 BLUE
    K29 = 0000 L29 = 0800 GREEN
    K33 = 0800 L33 = 1600 GREEN
    K37 = 0800 L33 = 1600 BLUE
    M21 = 0800 N21 = 1600 YELLOW

    In order for me to help you, you need to talk me though what you do when you manually color the cells
    Last edited by FDibbins; 10-09-2013 at 11:38 PM.

  7. #7
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    yes, we staff 2 officers per main campus shift and one per downtown shift. We do all entry manually. we enter the start and end times, so that excel can do the math, and then we manually change the color to represent where the officer is working. But I want to be able to add a code into the hours to tell excel to add the color for me, wihtout it confusing the math portion.

  8. #8
    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
    52,938

    Re: Conditional Formatting

    Well you could use another column for that and base the CF on that column?

  9. #9
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    The issue with that is it would add 30 more columns to the schedule.

  10. #10
    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
    52,938

    Re: Conditional Formatting

    Maybe so, but if you wanted to add a code to the time - which would make it "not" time, then you wpould probably need to add helper columns to later remove the code so you can get back t the time

  11. #11
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    Yeah, i was afraid of that.

    How about, is there a way to make excel look at the color when you use a =$H$866 type formula?

  12. #12
    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
    52,938

    Re: Conditional Formatting

    not with a regular formula, no formatting (colors/fonts/bold etc) are not data, they are just cosmetic "overlays" that help us (humans) see things better, excel doesnt need them. Besides, if you added a location column, you might have a need to calc by location. You could include a small table at the top that defines the codes, and/or even have a drop-down so they are entered correctly

  13. #13
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    So if i do add an additional column to the set up, how do i tell excel to change the color of the other two columns based on the data in the one column?

    example:

    Column 1 Column 2 Column 3
    Start Time End Time Location

  14. #14
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    OK I took your advice and am adding a location column. It works great.

    Thank you

  15. #15
    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
    52,938

    Re: Conditional Formatting

    Im glad it's working well for you

    Did you get the CF working the way you wanted it to?

  16. #16
    Registered User
    Join Date
    08-31-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Conditional Formatting

    yes, I did encounter a new problem, but I started a new thread due to it not being directly related.

    Thank you

  17. #17
    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
    52,938

    Re: Conditional Formatting

    OK cool

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  2. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  3. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  4. Replies: 1
    Last Post: 03-05-2012, 06:20 PM
  5. Replies: 2
    Last Post: 11-02-2007, 12:03 PM

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