How to sum cells that are colored with conditional formatting?

Noxqss38242

Board Regular
Joined
Sep 15, 2017
Messages
138
Office Version
  1. 2016
Have a cell range D7:AB36
Cells will randomly highlight based on another cell's entered data.
How can I auto sum each column's cells based on if that cell is highlighted with conditional formatting?
So essentially only sum the colored cells per column.

Thank you in advance!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

mart37

Well-known Member
Joined
Aug 4, 2017
Messages
1,091
Office Version
  1. 2016
Platform
  1. Windows
What are the criteria to highlight the cells?
The criteria can you use in a SUMIF or SUMIFFS to sum your total.
 

Noxqss38242

Board Regular
Joined
Sep 15, 2017
Messages
138
Office Version
  1. 2016
There are 5 different criteria that when selected by a "Form Control Check Box" cells will highlight automatically so the coding is quite a bit.

=AND(D7=MAX(D$7:AB$36),$B$3=TRUE)

That one is one of the 5 different conditional formatting.
2 of the conditions are for the rows in the range, 2 conditions are for the columns in the range, and 1 condition is for the entire range.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,257
Messages
5,641,168
Members
417,195
Latest member
Vishal kumar

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