How to sum cells that are colored with conditional formatting?

Noxqss38242

Board Regular
Joined
Sep 15, 2017
Messages
223
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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
What are the criteria to highlight the cells?
The criteria can you use in a SUMIF or SUMIFFS to sum your total.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,524
Messages
6,114,117
Members
448,549
Latest member
brianhfield

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