Forum Discussion
Sum by font colour in Excel? (VBA help anyone?)
Hi All
I have a raw data, dataset which I receive but cannot control the source and structure of.
It uses font colour to categorise the type of data
Can anyone assist with a macro to "sum by colour category" ?
3 Replies
HelloLindsay-V
You can check the links below to guide you in summing by font color
Formua based:
https://www.exceltrick.com/how_to/sum-cells-based-on-background-color/?
https://www.wallstreetmojo.com/excel-sum-by-color/
VBA
https://www.ablebits.com/office-addins-blog/2013/12/12/count-sum-by-color-excel/comment-page-2/
- Lindsay-VCopper Contributor
Hi Abiola1
thanks for these links. Unfortunately the two excel solutions are both based on background colour (not Font Colour) and the =get.cell function is "not valid" I guess i have to add it somehow, but unless one can "get font" colour then it doesnt help.The VBA version is also based on background colour, but i am going to see if i can replace GetCellColor with getfontcolour
wish me luck
🙂