Link to home
Start Free TrialLog in
Avatar of agwalsh
agwalsh

asked on

Sum in excel based on cell colour

hi Folks
Is there a way to sum a range based on its colour e.g. in the attached sheet. All the yellow cells added up together are 500. Is there some way to use the Sumif or some other way to automatically add up cells based on their colour. Thanks.
sum-based-on-colour.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of agwalsh
agwalsh

ASKER

Brilliant...does the job. I just got thrown by the fact that I have to put the UDF in the actual coloured box :-) to get it to work properly...thank you :-)
Avatar of agwalsh

ASKER

Does exactly what it says on the tin. If using this, make sure you put the function in the cell with the colour you want to sum by.