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.
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.
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.