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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Mike LH

Well-known Member
Joined
Mar 17, 2015
Messages
566
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

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
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,195,970
Messages
6,012,609
Members
441,715
Latest member
TTP

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
Top