Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Sumproduct problems...

Hi

Am trying to sumif based on four conditions.I have tried both the formulas
below but they keep returning zero. In the formulas, column C nees to contain
the digits 6131 within a text string, column G is a list of dates, R1 is the
1st April and S1 is 1st May, Column M is a list of shipping codes and column
L is volume shipped.

Is there something I am doing wrong?

=SUMPRODUCT((GAP!$C$2:$C$800="*6131*")*(GAP!$G$2:$ G$800=Data!R$1)*(GAP!$G$2:$G$800<$S$1)*(GAP!$M$2: $M$800="AUA")*(GAP!$L$2:$L$800))

=SUMPRODUCT(--(GAP!$C$2:$C$800="*6131*"),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"))*(GAP!$L$2:$L$800)

Thanks in advance


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Sumproduct problems...

SUMPRODUCT doesn't allow wild cards.

Try:

=SUMPRODUCT(--(ISNUMBER(FIND("6131",GAP!$C$2:$C$800)))) etc

"Johnny M" wrote:

Hi

Am trying to sumif based on four conditions.I have tried both the formulas
below but they keep returning zero. In the formulas, column C nees to contain
the digits 6131 within a text string, column G is a list of dates, R1 is the
1st April and S1 is 1st May, Column M is a list of shipping codes and column
L is volume shipped.

Is there something I am doing wrong?

=SUMPRODUCT((GAP!$C$2:$C$800="*6131*")*(GAP!$G$2:$ G$800=Data!R$1)*(GAP!$G$2:$G$800<$S$1)*(GAP!$M$2: $M$800="AUA")*(GAP!$L$2:$L$800))

=SUMPRODUCT(--(GAP!$C$2:$C$800="*6131*"),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"))*(GAP!$L$2:$L$800)

Thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct problems...

Try this:

=SUMPRODUCT(--(ISNUMBER(SEARCH(6131,GAP!$C$2:$C$800))),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"),GAP!$L$2:$L$800)

Biff

"Johnny M" wrote in message
...
Hi

Am trying to sumif based on four conditions.I have tried both the formulas
below but they keep returning zero. In the formulas, column C nees to
contain
the digits 6131 within a text string, column G is a list of dates, R1 is
the
1st April and S1 is 1st May, Column M is a list of shipping codes and
column
L is volume shipped.

Is there something I am doing wrong?

=SUMPRODUCT((GAP!$C$2:$C$800="*6131*")*(GAP!$G$2:$ G$800=Data!R$1)*(GAP!$G$2:$G$800<$S$1)*(GAP!$M$2: $M$800="AUA")*(GAP!$L$2:$L$800))

=SUMPRODUCT(--(GAP!$C$2:$C$800="*6131*"),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"))*(GAP!$L$2:$L$800)

Thanks in advance




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Sumproduct problems...

Thanks Guys, still coming up with zero. Must be something wrong with my raw
data I guess (it was exported from another system).

Thanks anyway,

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(ISNUMBER(SEARCH(6131,GAP!$C$2:$C$800))),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"),GAP!$L$2:$L$800)

Biff

"Johnny M" wrote in message
...
Hi

Am trying to sumif based on four conditions.I have tried both the formulas
below but they keep returning zero. In the formulas, column C nees to
contain
the digits 6131 within a text string, column G is a list of dates, R1 is
the
1st April and S1 is 1st May, Column M is a list of shipping codes and
column
L is volume shipped.

Is there something I am doing wrong?

=SUMPRODUCT((GAP!$C$2:$C$800="*6131*")*(GAP!$G$2:$ G$800=Data!R$1)*(GAP!$G$2:$G$800<$S$1)*(GAP!$M$2: $M$800="AUA")*(GAP!$L$2:$L$800))

=SUMPRODUCT(--(GAP!$C$2:$C$800="*6131*"),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"))*(GAP!$L$2:$L$800)

Thanks in advance





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct problems...

it was exported from another system

Yep, that's usually the culprit.

Unseen characters like leading/trailing spaces. HTML "junk". Numbers
formatted as text. etc

Biff

"Johnny M" wrote in message
...
Thanks Guys, still coming up with zero. Must be something wrong with my
raw
data I guess (it was exported from another system).

Thanks anyway,

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(ISNUMBER(SEARCH(6131,GAP!$C$2:$C$800))),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"),GAP!$L$2:$L$800)

Biff

"Johnny M" wrote in message
...
Hi

Am trying to sumif based on four conditions.I have tried both the
formulas
below but they keep returning zero. In the formulas, column C nees to
contain
the digits 6131 within a text string, column G is a list of dates, R1
is
the
1st April and S1 is 1st May, Column M is a list of shipping codes and
column
L is volume shipped.

Is there something I am doing wrong?

=SUMPRODUCT((GAP!$C$2:$C$800="*6131*")*(GAP!$G$2:$ G$800=Data!R$1)*(GAP!$G$2:$G$800<$S$1)*(GAP!$M$2: $M$800="AUA")*(GAP!$L$2:$L$800))

=SUMPRODUCT(--(GAP!$C$2:$C$800="*6131*"),--(GAP!$G$2:$G$800=Data!R$1),--(GAP!$G$2:$G$800<$S$1),--(GAP!$M$2:$M$800="AUA"))*(GAP!$L$2:$L$800)

Thanks in advance







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
SUMPRODUCT problems mmcap Excel Worksheet Functions 2 January 30th 07 06:50 PM
Problems with MAX Carlo Excel Worksheet Functions 6 September 5th 06 12:51 PM
Problems with sumproduct Rob_T Excel Worksheet Functions 1 June 26th 06 11:47 AM
Problems with Sumproduct formulas Zemmm Excel Worksheet Functions 1 December 12th 05 11:09 AM
SUMPRODUCT and format problems (2) Chrism Excel Discussion (Misc queries) 2 April 5th 05 06:38 PM


All times are GMT +1. The time now is 12: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"