Google Sheets: Script for changing background of cell color.

Contech

New Member
Joined
Dec 5, 2017
Messages
12
I am very familiar with conditional formatting, however this situation presents a different kind of obstacle for me.

I need a script that will change the cell to the left,right and below etc, a different color if a condition is met without being attached to a cell number designation(A1 etc...) What I am trying to get around is having to conditionally format hundreds of time in a sheet having to do with shipping products from our warehouse. As you can see in the image attached cell A3 & cell A5 are the cells that would dictate the colors of the cells adjacent to them. This is only a partial view as there would be many more days and entries on the sheet. any other ideas on how to do this are welcome, im just trying to find a working solution. I can elaborate more if needed.

Image: https://drive.google.com/file/d/1XL5NJ5W8jLNBHJOaY7vzgMNOrJjlnl_G/view?usp=sharing
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,412
Messages
6,119,369
Members
448,888
Latest member
Arle8907

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