LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Lee Lee is offline
external usenet poster
 
Posts: 3
Default Sorting in Excel 2007

I posted this back 2/7/09 and figured out how to make it work but don't know
why and was wondering why it does?

=SUMPRODUCT(--(CustomerNumberInvoice=Customers!$D3),--(WeekInvoice=$E$1),INVNET)
I changed to:
=SUMPRODUCT(--(CustomerNumberInvoice=$D3),--(WeekInvoice=$E$1),INVNET)

The worksheet is named Customers and contains the formulas with the customer
number in column D that it matches on the other sheets/dynamic ranges. When
I sort who purchased the most, the first formula puts the customer names in
column A in order but the formula gives the wrong dollar amounts. It returns
the amount of the customer that is now is the position that it used to be.
If customer #30 had the most and was in row 31, it sorts and puts #30 in the
second row (first 2 rows have headers) but pull info from what ever customer
is now in row 31. The formula has
=SUMPRODUCT(--(CustomerNumberInvoice=Customers!$D31),--(WeekInvoice=$E$1),INVNET)
in the second row instead of
=SUMPRODUCT(--(CustomerNumberInvoice=Customers!$D3),--(WeekInvoice=$E$1),INVNET)
When I deleted the "Customers" from the formula, all sorts properly.
Just wondering why it has to be this way?
Thanks,
Lee


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 - Sorting Nadine Excel Worksheet Functions 0 January 19th 09 10:41 PM
Excel 2007 - Sorting 3 columns sheila4typing Excel Discussion (Misc queries) 5 January 5th 09 12:27 AM
Sorting in Excel 2007 Vicky Excel Discussion (Misc queries) 0 September 12th 08 01:35 PM
Problems sorting in excel 2007 Skybble Excel Discussion (Misc queries) 1 December 13th 07 08:53 PM
Sorting Macro in Excel 2007 Kevin K[_2_] Excel Worksheet Functions 1 June 28th 07 01:54 PM


All times are GMT +1. The time now is 02:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"