7/1/2023 | 8/1/2023 | 9/1/2023 | 10/1/2023 | 11/1/2023 |
8 | 15 | 25 | 35 | 6 |
Lets say that 8/1,9/1,10/1 are filled red because the number is greater than 10. How Can I sum up just these values not including the 7/1 and the 11/1.
Thank you in advance for your help!
7/1/2023 | 8/1/2023 | 9/1/2023 | 10/1/2023 | 11/1/2023 |
8 | 15 | 25 | 35 | 6 |
Thank you for your response, But what i am really looking for is to sum up anything that is highlighted based of a conditional format. The example I gave was just to show the cells that were highlighted based on the conditional formatting. The issue is the condition may change on other cells in in the spreadsheet. If that make sense? Thanks again appreciate your response.Let's say that your range above is A1:E2.
Then just use this formula:
Excel Formula:=SUMIFS(A2:E2,A2:E2,">10")
Thank you!Excel formulas cannot run off of formatting/highlighting. They can only run off of values.
But the lesson to be learned here is that whatever "rule" you are using for your Conditional Formatting you can usually use in a SUMIFS formula, like I showed. Just use the same condition.
If you have something more complex that you cannot do that or if you manually highlighted the cells, you would have to use VBA to do that you want.
If you search this forum or do a Google search on "Excel Sum By Color", you will find hundreds of posts & solutions on it.
Hello again, the condition I am using on the conditional formatting is =AND(D$1<=$C2,D$1>=$B2). would the formula be =SUMIFS(A2:E2,A2:E2,"=AND(D$1<=$C2,D$1>=$B2").Excel formulas cannot run off of formatting/highlighting. They can only run off of values.
But the lesson to be learned here is that whatever "rule" you are using for your Conditional Formatting you can usually use in a SUMIFS formula, like I showed. Just use the same condition.
If you have something more complex that you cannot do that or if you manually highlighted the cells, you would have to use VBA to do that you want.
If you search this forum or do a Google search on "Excel Sum By Color", you will find hundreds of posts & solutions on it.