+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Formula help

  1. #1
    Registered User
    Join Date
    05-09-2017
    Location
    Ohio
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Question Conditional Formatting Formula help

    Hi, thanks for taking a look at my question.

    I'm working to build a visual representation of an employee attendance, I have the calendar and can make it high-lite a date when an occurrence is found. I would like to take it one step further by making the cell of the date high-lite a specific color based on what happened that day.

    Tab1 - Calendar
    The calendar
    You can change the employee name(It was a drop down validation list, but I just added a generic name for uploading)
    You can change the year updating the monthly calendars
    The dates high lite based on data in Tab 2 (This is currently done with a conditional format {=VLOOKUP(C7,CalcSheet!$D:$D,1)} )

    Tab 2 - CalcSheet
    Data consolidation
    Based on the name entered on Tab 1 the cells look for the name and return back; name, date, occurrence, and a reference cell. The reference cells corresponds with cells on Tab 1 AI column. I figured it would be easier to compare a simple number to words.

    Tab 3 - DateSheet
    This is the raw data of the call off for the employees, in the upload version I've removed everyone but Employee 1.
    Column F in the live version just has a formula to look at column E to turn it into a numerical value.

    So here is where I am stuck...
    How can I make a conditional formatting with a formula that uses a date on the calendar(Jan 12,2017 as an example), looks for the date on CalcSheet, if found look at Ref Cell to see if it matches the option selected in column AI on the Calendar tab(there would be a conditional formula for each of the options in column AI, so the formula would just be comparing one number) and colors the cell purple. In total there would be 7 formulas to color the cells the correct color, each formula would just do one number comparison.

    Sorry I know that's a mouthful, I've been working on this for a day or so and my thoughts are a little all over the place.

    Thanks for any help anyone can provide or point me in the right direction. If I can answer any questions please let me know.
    Attached Files Attached Files
    Last edited by energyczar; 05-11-2017 at 05:06 PM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Conditional Formatting Formula help

    Welcome to the forum!

    If I'm understanding you correctly, then select C7:AG30 and use the following CF Formula:

    =AND(VLOOKUP(C7,CalcSheet!$D$3:$F$158,3)=1,INDEX(CalcSheet!$C$3:$C$158,MATCH(C7,CalcSheet!$D$3:$D$158,0))=$A$1)

    Format with yellow fill. Repeat the process, replacing "=1" in the formula with =2 and choose red, then repeat with =3 and navy blue, etc. You can shift the order of primacy in "Manage Rules" to set which color shows if there are multiple entries for a date. I've done the first three colors in the attachment. Take a look to see if it'll work for you:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,370

    Re: Conditional Formatting Formula help

    Hope this works............
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-09-2017
    Location
    Ohio
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Re: Conditional Formatting Formula help

    Thank you both for the replies and help, my problem is now solved. You all rock!!

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Conditional Formatting Formula help

    Glad to help, good luck!

+ 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: 3
    Last Post: 06-19-2015, 07:16 AM
  2. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  3. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  4. If Formula - conditional formatting - three different formatting rules
    By sharper1989 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2014, 04:49 PM
  5. Replies: 3
    Last Post: 11-28-2013, 02:11 AM
  6. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  7. [SOLVED] How do I do a complex conditional in a conditional formatting formula
    By Ray Stevens in forum Excel General
    Replies: 6
    Last Post: 03-12-2006, 06:30 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