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: 15

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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