Share via

Sumproduct with blanks in a cell

Anonymous
2019-01-09T18:26:51+00:00

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%
Microsoft 365 and Office | Excel | For home | Windows

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.

0 comments No comments

8 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2019-01-10T12:56:58+00:00

    Why is the row with $85,000 and 2.90% not included in the calculation?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-01-10T00:29:58+00:00

    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> ---

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2019-01-09T22:07:16+00:00

    Sorry, I misinterpreted your question.

    How did you arrive at 4.96%?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-01-09T20:17:28+00:00

    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?

    Was this answer helpful?

    0 comments No comments
  5. HansV 462.6K Reputation points
    2019-01-09T19:58:57+00:00

    Not sure I understand what you want.  Try

    =SUMPRODUCT(B2:B10,(A2:A10="NY")*(C2:C10=""))

    Was this answer helpful?

    0 comments No comments