+ Reply to Thread
Results 1 to 2 of 2

Conditional formatting depending on one merged cell

  1. #1
    Registered User
    Join Date
    04-13-2022
    Location
    Rauma, Finland
    MS-Off Ver
    Microsoft Office for Mac Version 16
    Posts
    1

    Question Conditional formatting depending on one merged cell

    Hello everybody,

    I am using Excel to make a new planning tool for work, and am having some issues with conditional formatting.

    For each employee and each day, the first row is for the working hours, the second one is the place, and the third one is the task (picture 1). I would like that all cells change colors depending on the place. For example, Place 1 would have the color green, Place2 would have the color orange etc... (picture 2)

    pic1
    Capture d’écran 2022-04-13 à 22.05.01.png
    pic2
    Capture d’écran 2022-04-13 à 22.05.20.png

    I would normally know how to do basic conditional formatting but the fact that the referenced cell is merged makes it confusing. Is there a way of doing that without VBA ?

    Thanks!
    Nitneroc
    Attached Files Attached Files

  2. #2
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    21,150

    Re: Conditional formatting depending on one merged cell

    First, merged cells are almost always a bad idea, and we discourage them. You are not having issues with conditional formatting, you are having issues with merged cells.

    The place, even though it occupies merged cells, is considered to be a value in the upper-left cell of the merged cells. That is, "Place 1" covers F8:H8 but Excel considers the value to be in F8. Each of the five cells you want to format has a different position relative to F8, so you need 5 rules for each place. I have done Place 1 for you as an example. You can do the first block F7:H9 and then use the format painter to copy the rules to all other cells.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Merged cell conditional formatting with data validation not working as it should
    By cryptohustla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2021, 11:10 AM
  2. [SOLVED] Conditional Formatting - Two Columns for Same Date that lives in a merged cell
    By eemiller1997 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-03-2017, 05:11 PM
  3. [SOLVED] USD or EUR conditional formatting depending the value of another cell
    By medeniz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2015, 02:07 AM
  4. Conditional formatting depending on cell
    By Jeffro2p in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2014, 03:07 PM
  5. [SOLVED] Conditional Formatting Depending on Value of Other Cell
    By Ednarb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2014, 01:14 PM
  6. [SOLVED] Excel 2007 : Conditional formatting depending on cell value
    By djsouljah in forum Excel General
    Replies: 2
    Last Post: 05-29-2012, 03:04 AM
  7. Merged Cell Conditional Formatting Borders
    By T Kirtley in forum Excel General
    Replies: 2
    Last Post: 06-01-2006, 02:45 PM

Tags for this Thread

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