Conditional Formatting based on the value of a merged cell

Gilt Lorn

New Member
Joined
Aug 4, 2017
Messages
2
I'm trying to figure out how to conditionally format a column of cells based on the value of an adjacent column of merged cells. Each adjacent cell consists of four merged cells.

So basically, if the merged cell is 0 or blank, I would like the adjacent cells to also be blank.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I'm trying to figure out how to conditionally format a column of cells based on the value of an adjacent column of merged cells. Each adjacent cell consists of four merged cells.

So basically, if the merged cell is 0 or blank, I would like the adjacent cells to also be blank.
Conditional Formatting doesn't change the value of a cell it is applied to, only its format. You need a formula in the adjacent cells to do that. Are the 4 merged cells in a row or a column?
 
Upvote 0
Further to what Joe said, the contents of merged cells is always in the top-left cell.

If A1:A5 is merged the contents is in A1
If A1:E1 is merged the contents is in A1
If A1:E5 is merged the contents is in A1

So your test, in these cases, would always be for A1
 
Upvote 0
Conditional Formatting doesn't change the value of a cell it is applied to...
True if the OP meant the cell's value should physically be the empty string (""), but if all the OP was wanting is for there to be no visible displayed value in the cell even if there was some physical value in it, then a Custom Format of ;;; (three semicolons) within the would hide the physical value in the cell and display what looked like a blank cell. The OP's wording was just a little too vague to know which he actually wanted.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top