SumColor not working after applying Additional Formatting

KXZ

New Member
Joined
Aug 16, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I'm not very savy with excel but I manage to figure most stuff out but I am having a hard time trying figure out how to sum by color with conditional formatting.

I have a column of invoice amounts that I need to total the amounts by color. My rows are formatted to highlight a specific color when I enter a provider name.

I found a way to sum by color but it only worked for cells whose color was set manually not using conditional formatting. Once conditional formatting was applied this method no longer worked.

X511:X530 (20 cells) for each provider total, Range is X35:X489

Any help would be greatly appreciated, thank you.
 

Attachments

  • Spreadsheet Test.png
    Spreadsheet Test.png
    103.1 KB · Views: 8

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You need to use the same logic to calculate the sum as you are using for your conditional formatting rule.

I am not seeing "a column of invoice amounts" in your screen shot. What does that look like?

What is your conditional formatting rule?
 
Upvote 0
You need to use the same logic to calculate the sum as you are using for your conditional formatting rule.

I am not seeing "a column of invoice amounts" in your screen shot. What does that look like?

What is your conditional formatting rule?
The first image is for the invoice column with the range of X35:X489

Second image are the formatting rules
 

Attachments

  • Invoice Column X (X35-X489).PNG
    Invoice Column X (X35-X489).PNG
    58.4 KB · Views: 20
  • Formulas and Formatting.PNG
    Formulas and Formatting.PNG
    232.9 KB · Views: 18
Upvote 0
You don't need to sum by color at all because you have the facility name on each invoice line. Sum like this in Y511 and copy down to Y530:

Excel Formula:
=SUMIF(C35:C489, X511, X35:X489)
 
Upvote 0
You don't need to sum by color at all because you have the facility name on each invoice line. Sum like this in Y511 and copy down to Y530:

Excel Formula:
=SUMIF(C35:C489, X511, X35:X489)
Thank you! that worked.
 
Upvote 0
One error. Ranges need to be absolute to be able to copy down,

Excel Formula:
=SUMIF(C$35:C$489, X511, X$35:X$489)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,230
Messages
6,123,752
Members
449,118
Latest member
kingjet

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