+ Reply to Thread
Results 1 to 2 of 2

Can I set up conditional formatting to do this?

  1. #1
    Registered User
    Join Date
    01-03-2013
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Can I set up conditional formatting to do this?

    I'm designing a spreadsheet to review events for performance improvement tracking. I want to be able to enter the time of an event, and automatically have the spreadsheet indicate which shift (Day, Evening, or Night) was on duty when the event occured. I am wondering if I can use conditional formatting rules to automatically populate the cells in column D based on the contents of column C. Specifically, I want to enter a value in a cell in column C, and have D automatically populate with a specific word based on what the number in C is.

    Example:

    C5 contains "0830", D5 would populate with "Day"
    C6 contains "1845", D6 would populate with "Eve"
    C7 contains "2350", D7 would populate with "Night"

    I would set it up with reference ranges (0700-1459 = day, 1500-2259 = Eve, 2300-2359 and 0000-0659 = Night.)

    I can't seem to find a way to make this work. Any tips? Is this possible?

    Thanks!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Can I set up conditional formatting to do this?

    No, conditional formatting can't put values in cells.
    It can only apply Color or Borders or other cell formatting types.

    You can use a formula in the cell itself then

    Assuming the 0830 1845 2350 entries are TEXT strings,
    in D5 put
    =LOOKUP(C5,{"0000","0700","1500"},{"Night","Day","Eve"})

+ 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