Forum Discussion
Counting text of a specific colour & font
I am trying to establish a COUNTIF formula that will accurately count the number of identical single text characters in a specific colour in a range of cells in a row that contains the same text character in a different colour. Is this possible, please? If so I would be very grateful for help with this request. Many thanks.
Afraid that's if only with VBA, not with formula. Formulas work with cell values, not with their attributes like colors.
4 Replies
- SergeiBaklanDiamond Contributor
Afraid that's if only with VBA, not with formula. Formulas work with cell values, not with their attributes like colors.
- topcat999Copper Contributor
Thank you for that, SergeiBaklan. Your help and advice greatly appreciated.
- topcat999Copper Contributor
Thank you SergeiBaklan . I am not that proficient with Excel, unfortunately, but when I accessed the Help function on using COUNTIF it suggested that "Excel supports User-Defined Functions using VBA operations on cells based on background or font colour."
Is it possible you could guide or demonstrate this for me, please?
Many thanks.
- SergeiBaklanDiamond Contributor
That's not my expertise. Please check https://techcommunity.microsoft.com/t5/Excel/sum-by-color-when-colors-are-set-by-conditional-formatting/m-p/36495#M8243, perhaps people who is discussin that could help.