Results 1 to 17 of 17

Conditional Formatting by formula - need assistance

Threaded View

  1. #1
    Registered User
    Join Date
    02-03-2015
    Location
    Daytona Beach, Florida, USA
    MS-Off Ver
    Office 2013 Professional
    Posts
    8

    Conditional Formatting by formula - need assistance

    Hello Pros,

    I have over the years I've learned much from this site, only this time I think I actually have to post a question as I am in need for a specific answer.

    I have made an employee schedule, I have all the coding down to do exactly what I need it for. Upon its implementation my team did not like that I got rid of the color fills for each cell that were associated with their shifts. I didn't want to make a separate sheet and list all the possible combinations of shifts to determine which color to code the cell then refer back to that sheet as I had done in the past. That process was searching for a specific shift and would color it. But if i made an odd shift such as 8a -9a it would not know what to do as it was not a defined shift.

    On my new schedule I wanted to use conditional Formatting to search the cell for the first 3 characters/number and determine it as a start time for a shift. Using an defined table that I called "ShiftData" the formula was to search the cell and find the start time and search the table "ShiftData" for a shift code. From that shift code it would know to color all cells that color. I don't know if this is the easiest way or not, I was recycling code i used on my old schedule to make it work, only conditional formatting will not do what i want no matter how i code it. This is where i need help.

    This is the code that has been giving me the best results only its coloring everything else but what should be that color:
    =IF(B14="OFF","0",IF(B14="R/OFF","0",IFERROR(VLOOKUP(SUBSTITUTE(SUBSTITUTE(LEFT(B14,3)," ","",1),"-",""),ShiftData,2,FALSE),0)))

    If I had this in a cell it would work and give me the 1A result, so i know the formula works, i just don't know how to get it to apply to conditional formatting so that all 1A shifts are colored yellow.
    Any assistance would be greatly appreciated.
    Attached Files Attached Files
    Last edited by Kamico; 08-11-2017 at 01:30 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional Formatting Formula Assistance
    By SH1988 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2017, 07:26 AM
  2. Conditional Formatting Assistance
    By jharvey87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2017, 02:36 PM
  3. [SOLVED] Conditional Formatting Formula Syntax Assistance
    By robertguy in forum Excel General
    Replies: 3
    Last Post: 06-22-2016, 06:34 AM
  4. conditional formatting assistance? HELP!
    By TRAZ6666 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-31-2016, 03:01 PM
  5. Conditional Formatting Assistance
    By St34d in forum Excel General
    Replies: 3
    Last Post: 03-25-2015, 04:43 PM
  6. [SOLVED] Simplifying Conditional Formatting - Formula Assistance Please
    By xkittenxx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2012, 08:57 PM
  7. Conditional Formatting Formula Assistance
    By chiasmus811 in forum Excel General
    Replies: 7
    Last Post: 06-20-2011, 09:26 AM

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