+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting a range of cells based on a range of cells on another sheet.

  1. #1
    Registered User
    Join Date
    11-12-2020
    Location
    Iqaluit
    MS-Off Ver
    Version 16.0.13328.20210
    Posts
    1

    Conditional Formatting a range of cells based on a range of cells on another sheet.

    I am working on an employee schedule for a bar and restaurant that operate within a hotel. The staff will work between the two locations, meaning they can either be scheduled in the bar or the restaurant. The locations are labeled "Lounge" and "Dining Room". Each location has its own sheet, and all Employees are listed in both with their hours posted. It is the exact same (I copied and pasted the entire schedule onto another sheet and changed the colour of the top and the name). What I am trying to do is find a way for each sheet to reference the other sheet and conditionally highlight a cell if an employee has been double scheduled. For example, I have "Adam" working in the Dining Room on Monday from 3:00PM to 3:30PM, I would like the respective cells in the Lounge schedule to be highlighted red if I try to input any hours for him on that same day.

    I have successfully done this as an example, however, with this method I have only been able to do this cell by cell, and I'm hoping there is a way to apply the formatting to all the employees for all days.



    Screenshot 2020-11-12 205032.png
    Screenshot 2020-11-12 205122.png
    Screenshot 2020-11-12 205154.png
    Attached Files Attached Files
    Last edited by operationsahcc; 11-12-2020 at 10:23 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting a range of cells based on a range of cells on another sheet.

    The strategy is to use a rule that just looks at one cell (instead of two), use relative addressing instead of absolute, and then apply the same rule to all cells on the sheet that have hours. See attachment.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional Formatting a range of cells based on a range of cells on another sheet.

    Instead of CF it is better to go for Data Validation. It will prevent the entry itself. It will be easy for any further calculation.
    Formula for data validation of F8 in "Dining Room" Sheet

    =Lounge!F8=""

    Copy validation other required cells.

    Formula for data validation of F8 in "Lounge" Sheet

    ='Dining Room'!F8=""

    Copy validation other required cells.

    Error message is given.
    Last edited by kvsrinivasamurthy; 11-13-2020 at 06:11 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. [SOLVED] Conditional Formatting Range of Cells Based on Input From Another Sheet
    By kccoNCSU in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-26-2019, 08:49 PM
  2. [SOLVED] Conditional Formatting based on a range of cells?
    By darxide23 in forum Excel General
    Replies: 5
    Last Post: 11-06-2018, 08:07 PM
  3. [SOLVED] Conditional formatting (based on 2 conditions) on a range of cells
    By stevoDE in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-21-2017, 09:15 AM
  4. [SOLVED] Conditional formatting based on range of cells in different sheet
    By iveta96 in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 06-01-2015, 10:45 AM
  5. Conditional formatting for a range of cells based on data from two cells
    By Tindomerel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-25-2014, 05:09 AM
  6. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  7. [SOLVED] Conditional formatting based on dates in a range of cells
    By pmerobertson in forum Excel General
    Replies: 8
    Last Post: 01-10-2013, 12:50 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