Share via

Sorting problem when using SumProduct

Anonymous
2011-02-23T15:50:09+00:00

HI To All,

I have a spreadsheet with a Sumproduct formula   = SUMPRODUCT(('2010 Sales'!E$1:E$13897='2010 TA'!A2)*('2010 Sales'!D$1:D$13897="REG"),'2010 Sales'!C$1:C$13897)

When I sort the data it retains the absolute reference to the row number for the first criteria.  Trying to undersatnd why this happens

For example:

If John smith is in row 1 prior to the sort  and after the sort he is on row 10 the cell reference for the first criteria still references row 1 and not row 10.

Thanks again for any help

Thanks for any help

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

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-02-23T20:46:58+00:00

    Thanks for responding. Yes your approach works better.

    Do you know why sorting doesn't work in my Array formula?

    I'm just trying to get a better understanding of how the computer reads the formula

     

    Thanks again

     

     

     

    Hello,

    What do you mean with array formula, please? Your Sumproduct formula? Why dont you just use a Pivot table?

    Just asking ...

    Regards,

    Bernd


    http://www.sulprobil.com/html/excel_forums.html

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-02-23T20:23:25+00:00

    Thanks for responding. Yes your approach works better.

    Do you know why sorting doesn't work in my Array formula?

    I'm just trying to get a better understanding of how the computer reads the formula

    Thanks again

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-02-23T19:13:35+00:00

    HI,

    Thanks for responding: The offending cell reference from above is '2010 TA'!A2.

    Thanks for any other suggestions

    Ramone

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2011-02-23T17:03:00+00:00

    Try rRemoving the $ from the offending cell reference. But leave it in front of 13897

    Does that help?

    Was this answer helpful?

    0 comments No comments