Calculating on cell background colour

asokaw

New Member
Joined
Jun 24, 2013
Messages
39
Office Version
  1. 2013
Is there any formula in excel to get the sum of specific cells by its background cell color.

Example

I need to get the sum of cell values which have Orange backgroundg color ( eg. 100, 400 & 300 )
Return value should be 800.

100 200 500 400

300 50
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Using Conditional formatting

also tell me how to do it if its coloured manually
You cannot do it with a formula if manually colored (you would need VBA code). In order to try and do it with a worksheet formula, we need to know what formula you used for the conditional formatting and what color it produced.
 
Upvote 0
Lets say all cells where value is > 200 are in red colour & we need to add the red coloured cells..
 
Upvote 0
Lets say all cells where value is > 200 are in red colour & we need to add the red coloured cells..
Then you would use this formula (here I am assuming the overall range containing your red cells is A1:D9)...

=SUMIF(A1:D9,">200")

The point is, you do not need to know the color, only the relationship that made the cell that color... knowing that, you should be able to construct a formula that sums values meeting that condition. (I'm going to sleep now, so I won't be back to this thread for a few hours.)
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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