In A2:A50 i have different numerical values. I would like to sum all cells that has been colored red. Is this possible? Thankful for help
In A2:A50 i have different numerical values. I would like to sum all cells that has been colored red. Is this possible? Thankful for help
Hi
It's easy, except you need to tell your formula what you mean by "Red"! there are thousands of RGB combinations that look "red"
if you are using the microsoft default red RGB(255,0,0) then this user-defined formula should work (or if you know the RGB of the colour your are using, use this instead of FontColour = RGB(255, 0, 0))
if not, try this formula. The first cell to enter has the font colour you want to count, the range includes the cells whose values you want to sum. So to count cells in B1:F1 with the same font colour as A1, Your formula will look like thisPlease Login or Register to view this content.
=Function colours_add_match_first(A1,B1:F1)
Please Login or Register to view this content.
Last edited by NickyC; 06-19-2013 at 04:54 AM.
you really need to make those functions volatile. they still won't react to simply changing a cell color but at least they will update when the workbook calculates ;-)
of course not using color as data is better
Josie
if at first you don't succeed try doing it the way your wife told you to
Hey, I am currently trying this but can't seem to let it work.
So I need to create a macro with that code, and make sure the extension is macro-enabled.
That's what I've done but I can't seem to manage to make this work unfortunately..
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks