A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Why is the row with $85,000 and 2.90% not included in the calculation?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My goal with the data below is to create a sumproduct formula that shows the trend when State = NY AND Trend is blank. In my data the trend is blank based on a formula in the cell. (Not really blank since there is a formula there) I have tried several variations but I cannot get it to work. Can you please help me with this? Much thanks.
| State | Dollars | Trend |
|---|---|---|
| NY | $500,000 | 4.50% |
| NY | $250,000 | |
| NY | $125,000 | 6.80% |
| NY | $85,000 | 2.90% |
| CA | $500,000 | 4.50% |
| CA | $250,000 | 6.00% |
| CA | $125,000 | 6.00% |
| CA | $85,000 | 4.00% |
| CA | $125,000 | 4.00% |
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Why is the row with $85,000 and 2.90% not included in the calculation?
The math is as follows:
| ((500000*0.045)+(125000*0.068))/(500000+125000) = .0496<br><br><br><br><br><br>I want the formula to ignore the NY - $250,000 row. | <br> | --- |
|---|
Sorry, I misinterpreted your question.
How did you arrive at 4.96%?
I am trying to get the NY aggregate trend but exclude the rows with trend null values. As I said above, the null is based on a formula so it is not really null. In this instance, the row with $250,000 would be excluded and the aggregate trend would be 4.96%. Suggestions?
Not sure I understand what you want. Try
=SUMPRODUCT(B2:B10,(A2:A10="NY")*(C2:C10=""))