Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Sumproduct for YTD with text filter

I am trying to sum a customers sales for a year to date value so I can
compare it with the year to date sales for the previous years. The formula is:

=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2000)=A5,--('Wholesale Orders'!F2:F2008))

It works perfectly until it calculates array #3, cell #A5 of the current
worksheet is a text value (customer name).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default Sumproduct for YTD with text filter

Your formula is incorrect. You need a right parenthesis after A5. Assuming
F2:F2008 contain numbers, you do not need "--".

=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2000=A5),'Wholesale Orders'!F2:F2008)


Tyro

"ocuhcs" wrote in message
...
I am trying to sum a customers sales for a year to date value so I can
compare it with the year to date sales for the previous years. The formula
is:

=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2000)=A5,--('Wholesale Orders'!F2:F2008))

It works perfectly until it calculates array #3, cell #A5 of the current
worksheet is a text value (customer name).



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Sumproduct for YTD with text filter

I think you want to put the comparison value inside the parenthesis, and also
check the number of elements you've got in that array:
=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2008=A5),--('Wholesale Orders'!F2:F2008))


"ocuhcs" wrote:

I am trying to sum a customers sales for a year to date value so I can
compare it with the year to date sales for the previous years. The formula is:

=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2000)=A5,--('Wholesale Orders'!F2:F2008))

It works perfectly until it calculates array #3, cell #A5 of the current
worksheet is a text value (customer name).

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Sumproduct for YTD with text filter

That's it - Thanks!

"bpeltzer" wrote:

I think you want to put the comparison value inside the parenthesis, and also
check the number of elements you've got in that array:
=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2008=A5),--('Wholesale Orders'!F2:F2008))


"ocuhcs" wrote:

I am trying to sum a customers sales for a year to date value so I can
compare it with the year to date sales for the previous years. The formula is:

=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2000)=A5,--('Wholesale Orders'!F2:F2008))

It works perfectly until it calculates array #3, cell #A5 of the current
worksheet is a text value (customer name).

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default Sumproduct for YTD with text filter

You still do not need the "--" in: --('Wholesale Orders'!F2:F2008) nor do
you need parentheses. 'Wholesale Orders'!F2:F2008 will do
In the first 3 comparisons, the "--" coercing Excel to make TRUE a 1 and
FALSE a 0. With your numbers in F2:F2008, the "--" are
changing the signs of the numbers twice. In other words, 23 becomes -23 (one
minus) and the - 23 becomes 23 (two minuses). In other words,
the "--" is accomplishing nothing.


Tyro

"ocuhcs" wrote in message
...
That's it - Thanks!

"bpeltzer" wrote:

I think you want to put the comparison value inside the parenthesis, and
also
check the number of elements you've got in that array:
=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2008=A5),--('Wholesale Orders'!F2:F2008))


"ocuhcs" wrote:

I am trying to sum a customers sales for a year to date value so I can
compare it with the year to date sales for the previous years. The
formula is:

=SUMPRODUCT(--('Wholesale Orders'!G2:G2008<=TODAY()),--('Wholesale
Orders'!G2:G2008DATE(2007,12,31)),--('Wholesale
Orders'!C2:C2000)=A5,--('Wholesale Orders'!F2:F2008))

It works perfectly until it calculates array #3, cell #A5 of the
current
worksheet is a text value (customer name).



Reply
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
Filter or sumproduct (Question for Gord Dibben) capt Excel Discussion (Misc queries) 4 December 10th 07 03:33 PM
filter in text Robin Excel Discussion (Misc queries) 1 July 3rd 07 07:46 AM
Filter and SumProduct Jay Excel Worksheet Functions 4 April 19th 07 01:20 AM
Filter text in a column by its Indent, to remove certain text 99TZ250 Excel Discussion (Misc queries) 1 May 21st 06 08:53 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


All times are GMT +1. The time now is 11:46 PM.

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"