How can you sum a set of numbers by their color using SUMIF?

I have a set of transactions. The highlighted transactions are highlighted in yellow. I would like to use the SUMIF function to calculate the total. What I am using is SUMIF(D1:D107, "Yellow"). There is never enough time, thank you for yours. I would appreciate it if someone could show me how to do this. Is this possible?

Posted on Apr 24, 2023 11:37 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 24, 2023 4:04 PM

If you are manually coloring cells in a column based on some event/state (like if a bill is due/paid/overdue or yes/no/maybe), instead of using the formatting tools you might consider using a column that has those events/states in a pop-up menu. That column would have a conditional format rule placed on it (maybe=yellow, yes=green, no=red). Select the item in the pop up menu and that cell will turn the appropriate color. The SUMIF would use that column of pop up menus to determine what cells to sum.


If your coloring is based on a binary condition (yes/no, true/false, paid/due), the new column could be a column of checkboxes rather than a column of pop up menus.



9 replies
Question marked as Top-ranking reply

Apr 24, 2023 4:04 PM in response to EvanGertis

If you are manually coloring cells in a column based on some event/state (like if a bill is due/paid/overdue or yes/no/maybe), instead of using the formatting tools you might consider using a column that has those events/states in a pop-up menu. That column would have a conditional format rule placed on it (maybe=yellow, yes=green, no=red). Select the item in the pop up menu and that cell will turn the appropriate color. The SUMIF would use that column of pop up menus to determine what cells to sum.


If your coloring is based on a binary condition (yes/no, true/false, paid/due), the new column could be a column of checkboxes rather than a column of pop up menus.



Apr 26, 2023 1:06 AM in response to EvanGertis

Hi Evan,


Do you have a rule whereby you decide how to manually colour those cells?

If so, you can apply that rule to apply Conditional Highlighting to those cells. Then use the same rule in a SUMIF formula.


Please post a screen shot of the relevant part of your table. First, click on the table to show row (1, 2, 3...) and column (A, B, C...) labels to help us see what you see.

More information on your overall aim may lead to a solution.


Regards,

Ian.

Apr 25, 2023 8:32 AM in response to EvanGertis

Are you aware we are your fellow users here?


You can give feedback to Apple via Numbers > Provide Numbers Feedback in your menu.


Keep in mind that Numbers has a distinct design philosophy and doesn't try to match all the functionality in other spreadsheet apps. Excel is great on the Mac, so you might want to use that if you like its features.


BTW, referring to a range like D1:D107 in Numbers isn't usually necessary. You can refer to an entire column simply with D.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can you sum a set of numbers by their color using SUMIF?

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