Multiple Conditional Formatting with Precedence and Formulas

mdarvz

New Member
Joined
Jun 27, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Web
Hello
I am having a bit of trouble interpreting some of the answers that are out there,
I would like to do the following conditions

Custom formula is =$J3=TRUE -> green highlight - for cells A3:J999 (or end of sheet)
Custom formula is =NOT(ISBLANK($I3)) - no highlight - for cells A3:J999 (or end of sheet)
Custom formula is =NOT(ISBLANK($H3)) - red highlight - for cells A3:J999 (or end of sheet)
Text is exactly "example", yellow highlight

Basically if this cell is not empty, make red, if cell next to it is not empty, make white, and if this box is ticked make green...

I also would like to have the following macro still work:

/** @OnlyCurrentDoc */
function Standardformatting() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRangeList(['2:999', 'I1:AE1']).activate()
.setFontSize(10)
.setBorder(true, true, true, true, true, true, '#000000', SpreadsheetApp.BorderStyle.SOLID)
.setFontColor('#000000')
.setHorizontalAlignment('center');
};
function standard_format() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRangeList(['2:999', 'I1:AE1']).activate()
.setFontFamily(null)
.setFontSize(10)
.setBorder(true, true, true, true, true, true, '#000000', SpreadsheetApp.BorderStyle.SOLID)
.setHorizontalAlignment('center')

};

Which is just making sure that the font size and row heights stay uniform

I am total noob with this and the examples I have found previously were related to numbers rather than a custom formula so I am having trouble interpreting them...
Thanks!


Thanks!!
 

Attachments

  • Screen Shot 2021-06-28 at 1.41.54 pm.png
    Screen Shot 2021-06-28 at 1.41.54 pm.png
    26.1 KB · Views: 14

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,215,035
Messages
6,122,791
Members
449,095
Latest member
m_smith_solihull

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