Highlighting in Excel

Compustein

New Member
Joined
May 27, 2015
Messages
1
Is there any way to set up a COUNT or COUNTA command to only add the values contained in highlighted cells in a given column?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi,

Welcome to the forum. If by highlighted you mean with a fill colour then no you can't do that you need VBA code. If the fill colour is from conditional formatting then it may be a lot more difficult.
 
Upvote 0
If the fill colour is from conditional formatting then it may be a lot more difficult.
Actually, I thnk that makes it easier. Because you can then count the 'condition' instead of the color..

But we do need more specific information.

How exactly are the cells highlighted?
Is this for a task you're 'planning' in the future, or for some data that already exists you need to count?

If it's something you're planning in the future, you'd be best off using an alternate method to 'flag' which cells to sum.
Like putting an X or any text value you like in an adjescent column.
Then you can use simple SUMIF functions.
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,769
Members
448,991
Latest member
Hanakoro

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