Hi
I have a cell range C4:W40 which has values.Cells highlighted RED i need a User defined Function to sum up all values in RED cells.
I am very limited in VBA but appreciate a code if possible
Thanks
Hi
I have a cell range C4:W40 which has values.Cells highlighted RED i need a User defined Function to sum up all values in RED cells.
I am very limited in VBA but appreciate a code if possible
Thanks
Last edited by James__S; 04-16-2014 at 11:24 AM.
If the cells are highlighted red as part of conditional formatting, it can be very challenging. If you are the one that applied the color for each individual cell then this should work:
In a cell put "=CountReds(C4:W40)"![]()
Please Login or Register to view this content.
Last edited by stnkynts; 04-16-2014 at 10:24 AM.
this is the function (add it to a Module)
then, in a cell, type =SumIfRed(here select the range of cells) then press enter![]()
Please Login or Register to view this content.
Click on the star if you think I helped you
Title changed:apologies
the cells are highlighted RED through C.F...both functions return 0
Thanks
I just changed the color of the cell manually and they work....is it not possible to sum if C.F used to color cells?
Thanks
Its not impossible just time consuming. So much so that I doubt anyone here will want to do it. Here is some information on how to do this kind of thing
http://www.cpearson.com/excel/cfcolors.htm
Best of luck.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks