Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

formula for adding different coloured numbers

In a table containing numbers in 3 different colours, is there a formula for adding up, separately, all the numbers in each colour?


Thanks.

iMac, OS X Yosemite (10.10)

Posted on Apr 19, 2015 10:12 PM

Reply
Question marked as Best reply

Posted on Apr 20, 2015 9:33 AM

Hi Gyllylal,


Colour is a formatting attribute and can't be use in formulas.

You can use the SUMIF or SUMIFS functions to add values in a range.

User uploaded file

Formula in Footer Row 12

=SUMIF(B,"<4",B)


Formula in Footer Row 13

=SUMIFS(B,B,">=4",B,"<7")


Formula in Footer Row 14

=SUMIF(B,">=7",B)


The rules in A12, A13 and A14 would be the same rules to use in Conditional Highlighting to set the colours.


Regards,

Ian.

2 replies
Question marked as Best reply

Apr 20, 2015 9:33 AM in response to Gillylal Fordham-Lear

Hi Gyllylal,


Colour is a formatting attribute and can't be use in formulas.

You can use the SUMIF or SUMIFS functions to add values in a range.

User uploaded file

Formula in Footer Row 12

=SUMIF(B,"<4",B)


Formula in Footer Row 13

=SUMIFS(B,B,">=4",B,"<7")


Formula in Footer Row 14

=SUMIF(B,">=7",B)


The rules in A12, A13 and A14 would be the same rules to use in Conditional Highlighting to set the colours.


Regards,

Ian.

formula for adding different coloured numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.