Conditional formatting help with merged rows

abdulhaque

Board Regular
Joined
Dec 2, 2015
Messages
63
Hi all,

I'm trying to fill rows with colours dependent on pass or fail. The issue is some of the cells are merged including the one that has the pass or fail selection, and hence only fills the top row of that merged cell. Please see image 1 attached for a better idea, this is how it currently works. Is there a formula that I can insert as a CF rule to allow it to fill all such rows that fit inline with the merged cells (image 2)?

image 1
https://i.imgsafe.org/3044bc93ba.png

image 2
https://i.imgsafe.org/304846e354.png

Thanks
 

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.

arthurbr

Well-known Member
Joined
Dec 8, 2006
Messages
2,228
Office Version
  1. 2010
Get rid of the merged cells and try again
 

abdulhaque

Board Regular
Joined
Dec 2, 2015
Messages
63
Anyone with good VBA skills can help?

Basically the syntax will be something like:

1. Check what status is selected at Cell F2.
2. Apply format to Row 2.
3. Carry on applying same format to subsequent rows until the next Cells in Column A and D aren't empty, so in this example it would be Cell A5 and D5.
4. Once the next Cells in Column A and D is found to be not empty, stop the loop.

Comparing both Columns A and D at step 3 will ensure the format is not indefinitely applied below the last filled in row of the sheet.

Any ideas?

Thanks
 

Watch MrExcel Video

Forum statistics

Threads
1,130,335
Messages
5,641,560
Members
417,220
Latest member
lam150498

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
Top