Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct Across A Row

I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default Sumproduct Across A Row

Hi,

these are all logic so what do you want to do? or what do you want to do if
these conditions were true?

Thanks
--
Farhad Hodjat


"Railrd" wrote:

I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct Across A Row

I want it to display a number of how many are true. Each set is labeled
"Points For" and "Points Against" one of each and want to put it into a cell
under "Losses"

"Farhad" wrote:

Hi,

these are all logic so what do you want to do? or what do you want to do if
these conditions were true?

Thanks
--
Farhad Hodjat


"Railrd" wrote:

I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Sumproduct Across A Row

If you want to know how many are true you don't want the product of the
terms, you want the sum, so you can change SUMPRODUCT to SUM.
(And I don't think you'll need the double unary minuses in that case).
--
David Biddulph

"Railrd" wrote in message
...
I want it to display a number of how many are true. Each set is labeled
"Points For" and "Points Against" one of each and want to put it into a
cell
under "Losses"

"Farhad" wrote:

Hi,

these are all logic so what do you want to do? or what do you want to do
if
these conditions were true?

Thanks
--
Farhad Hodjat


"Railrd" wrote:

I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays
"0"

Any tips?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct Across A Row

I want it to display a number of how many are true. Each set is labeled
"Points For" and "Points Against" one of each and want to put it into a cell
under "Losses"

"Farhad" wrote:

Hi,

these are all logic so what do you want to do? or what do you want to do if
these conditions were true?

Thanks
--
Farhad Hodjat


"Railrd" wrote:

I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumproduct Across A Row

The way you have that written, every test must evalaute to TRUE (1)
otherwise you'll get a result of 0. I assume you're using Excel 2007 since
you have more than 30 arguments.

Will every cell in the range have an entry?

C3 = empty
D3 = 10

--(D3C3) = 1

Try something like this:

=SUMPRODUCT(--(MOD(COLUMN(C3:BM3),2)=1),--(MOD(COLUMN(D3:BN3),2)=0),--(D3:BN3C3:BM3))

The above formula does not account for empty cells.

--
Biff
Microsoft Excel MVP


"Railrd" wrote in message
...
I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct Across A Row


At the end of the season every cell eill have a number entered. each time I
enter data it will be for a pair when that game is entered (ex. cells P3 and
O3 would be entered at the same time


"T. Valko" wrote:

The way you have that written, every test must evalaute to TRUE (1)
otherwise you'll get a result of 0. I assume you're using Excel 2007 since
you have more than 30 arguments.

Will every cell in the range have an entry?

C3 = empty
D3 = 10

--(D3C3) = 1

Try something like this:

=SUMPRODUCT(--(MOD(COLUMN(C3:BM3),2)=1),--(MOD(COLUMN(D3:BN3),2)=0),--(D3:BN3C3:BM3))

The above formula does not account for empty cells.

--
Biff
Microsoft Excel MVP


"Railrd" wrote in message
...
I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumproduct Across A Row

Ok, the formula I suggested should work (as long as you don't insert new
columns to the left of the referenced range).

--
Biff
Microsoft Excel MVP


"Railrd" wrote in message
...

At the end of the season every cell eill have a number entered. each time
I
enter data it will be for a pair when that game is entered (ex. cells P3
and
O3 would be entered at the same time


"T. Valko" wrote:

The way you have that written, every test must evalaute to TRUE (1)
otherwise you'll get a result of 0. I assume you're using Excel 2007
since
you have more than 30 arguments.

Will every cell in the range have an entry?

C3 = empty
D3 = 10

--(D3C3) = 1

Try something like this:

=SUMPRODUCT(--(MOD(COLUMN(C3:BM3),2)=1),--(MOD(COLUMN(D3:BN3),2)=0),--(D3:BN3C3:BM3))

The above formula does not account for empty cells.

--
Biff
Microsoft Excel MVP


"Railrd" wrote in message
...
I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays
"0"

Any tips?






  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Sumproduct Across A Row

Firstly are you convinced that all 32 conditions are true for the numbers
you have used?
If you are sure, perhaps you could tell us the values in the relevant cells?
I notice that your pattern is reversed for the AI3 and AJ3 condition
compared with the other pairs.

Secondly, which version of Excel are you using? In Excel 2003, it will only
accept 30 arguments to the SUMPRODUCT function, so I had to split the last 2
out into a separate product, but it does what it should do?

If you are still struggling, the advice is the same as for debugging any
long and complex formula, that is to split it into manageable chunks. Copy
the formula & paste it into a number of separate cells, & chop the separate
formulae down to smaller parts to see where you're not getting the expected
result.
--
David Biddulph

"Railrd" wrote in message
...
I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct Across A Row

I'm using Excel 2007.

AI and AJ should be flipped to read: AJ3AI3


Small example:

Team A Team B Team C
Team D
PF PA PF PA PF
PA PF PA
Team A 7 5
0 5

Team B 4 2 1
3 0 1

Team C 12 8
3 1

Team D 0 4 1 6


Where the vert. is the home team and the team across is the away team. So
I'm trying in a different table on the same worksheet to automatically add up
the wins for the home team (that is why it compares to the cell to it's left)
and then going to flip the sign for the losses in cell D39




"David Biddulph" wrote:

Firstly are you convinced that all 32 conditions are true for the numbers
you have used?
If you are sure, perhaps you could tell us the values in the relevant cells?
I notice that your pattern is reversed for the AI3 and AJ3 condition
compared with the other pairs.

Secondly, which version of Excel are you using? In Excel 2003, it will only
accept 30 arguments to the SUMPRODUCT function, so I had to split the last 2
out into a separate product, but it does what it should do?

If you are still struggling, the advice is the same as for debugging any
long and complex formula, that is to split it into manageable chunks. Copy
the formula & paste it into a number of separate cells, & chop the separate
formulae down to smaller parts to see where you're not getting the expected
result.
--
David Biddulph

"Railrd" wrote in message
...
I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays "0"

Any tips?






  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Sumproduct Across A Row

Yes, that's what I'd guessed.

After my previous post telling you to use SUM rather than SUMPRODUCT (when
you'd said that you wanted to add the terms, rather than take the product),
did you get the result you expected?

Note that you'd probably have found it easier (and not got your AI and AJ
flipped) if you'd listed the cells in order and used
=SUM((C3<D3),(E3<F3),(...
rather than
=SUM((D3C3),(F3E3),(...
--
David Biddulph

"Railrd" wrote in message
...
I'm using Excel 2007.

AI and AJ should be flipped to read: AJ3AI3


Small example:

Team A Team B Team C
Team D
PF PA PF PA PF
PA PF PA
Team A 7 5
0 5

Team B 4 2 1
3 0 1

Team C 12 8
3 1

Team D 0 4 1 6


Where the vert. is the home team and the team across is the away team. So
I'm trying in a different table on the same worksheet to automatically add
up
the wins for the home team (that is why it compares to the cell to it's
left)
and then going to flip the sign for the losses in cell D39




"David Biddulph" wrote:

Firstly are you convinced that all 32 conditions are true for the numbers
you have used?
If you are sure, perhaps you could tell us the values in the relevant
cells?
I notice that your pattern is reversed for the AI3 and AJ3 condition
compared with the other pairs.

Secondly, which version of Excel are you using? In Excel 2003, it will
only
accept 30 arguments to the SUMPRODUCT function, so I had to split the
last 2
out into a separate product, but it does what it should do?

If you are still struggling, the advice is the same as for debugging any
long and complex formula, that is to split it into manageable chunks.
Copy
the formula & paste it into a number of separate cells, & chop the
separate
formulae down to smaller parts to see where you're not getting the
expected
result.
--
David Biddulph

"Railrd" wrote in message
...
I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays
"0"

Any tips?






  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct Across A Row

David,

Yes, it worked great. I had used SUMPRODUCT to calculate down the
columns so I just figured I would have to use it across the rows. I have
been using Excel for years only for simple things like entering data and
adding or subtracting a couple cells. Was wondering were I could learn more
about using Excel's formulas since I bought the "dummies" book and doesn't do
much.

Thanks again for taking the time to work this out with me.



"David Biddulph" wrote:

Yes, that's what I'd guessed.

After my previous post telling you to use SUM rather than SUMPRODUCT (when
you'd said that you wanted to add the terms, rather than take the product),
did you get the result you expected?

Note that you'd probably have found it easier (and not got your AI and AJ
flipped) if you'd listed the cells in order and used
=SUM((C3<D3),(E3<F3),(...
rather than
=SUM((D3C3),(F3E3),(...
--
David Biddulph

"Railrd" wrote in message
...
I'm using Excel 2007.

AI and AJ should be flipped to read: AJ3AI3


Small example:

Team A Team B Team C
Team D
PF PA PF PA PF
PA PF PA
Team A 7 5
0 5

Team B 4 2 1
3 0 1

Team C 12 8
3 1

Team D 0 4 1 6


Where the vert. is the home team and the team across is the away team. So
I'm trying in a different table on the same worksheet to automatically add
up
the wins for the home team (that is why it compares to the cell to it's
left)
and then going to flip the sign for the losses in cell D39




"David Biddulph" wrote:

Firstly are you convinced that all 32 conditions are true for the numbers
you have used?
If you are sure, perhaps you could tell us the values in the relevant
cells?
I notice that your pattern is reversed for the AI3 and AJ3 condition
compared with the other pairs.

Secondly, which version of Excel are you using? In Excel 2003, it will
only
accept 30 arguments to the SUMPRODUCT function, so I had to split the
last 2
out into a separate product, but it does what it should do?

If you are still struggling, the advice is the same as for debugging any
long and complex formula, that is to split it into manageable chunks.
Copy
the formula & paste it into a number of separate cells, & chop the
separate
formulae down to smaller parts to see where you're not getting the
expected
result.
--
David Biddulph

"Railrd" wrote in message
...
I inserted the following formula into cell C39:

=SUMPRODUCT(--(D3C3),--(F3E3),--(H3G3),--(J3I3),--(L3K3),--(N3M3),--(P3O3),--(R3Q3),--(T3S3),--(V3U3),--(X3W3),--(Z3Y3),--(AB3AA3),--(AD3AC3),--(AF3AE3),--(AH3AG3),--(AI3AJ3),--(AL3AK3),--(AN3AM3),--(AP3AO3),--(AR3AQ3),--(AT3AS3),--(AV3AU3),--(AX3AW3),--(AZ3AY3),--(BB3BA3),--(BD3BC3),--(BF3BE3),--(BH3BG3),--(BJ3BI3),--(BL3BK3),--(BN3BM3))

When I enter numbers into cells in the formula cell C39 still displays
"0"

Any tips?






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? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
sumproduct Kim Shelton at PDC Excel Discussion (Misc queries) 0 December 8th 06 09:44 PM
Sumproduct? cjjoo Excel Worksheet Functions 9 October 11th 05 12:31 PM
sumproduct? cursednomore Excel Worksheet Functions 2 October 10th 05 08:45 PM
Sumproduct T De Villiers Excel Worksheet Functions 2 October 4th 05 12:25 PM


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