Adding Cell Values Based on Color

shanenavy26

New Member
Joined
Sep 26, 2018
Messages
29
I have Column B Conditional Formatted based on Column A's data.
CATEGORY 1
100
CATEGORY 2
200
CATEGORY 1
150

<tbody>
</tbody>
CAT 1 TOTAL:


<tbody>
</tbody>

When I pick a category from a Drop List in A, I have B set to change to a certain color.

I know that you cannot add based on color when the cells are based on Conditional Formatting, so how can I make it work?

The condition I use for B is =$C2="Car"
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You can sum up column B based on the value of column A.
In the example below I am checking column A (A1 to A10) for the text CATEGORY 1, and if it finds it then to add up the value in column B

Code:
=SUMIF(A1:A10,"CATEGORY 1",B1:B10)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,471
Messages
6,125,002
Members
449,202
Latest member
Pertotal

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