Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sue Sue is offline
external usenet poster
 
Posts: 285
Default Sumproduct & Numbers

I have a spreadsheet where I have 2 columns of numbers and am trying to use
SUMPRODUCT count paired cominations. Each person has a score Rating & Score
of 1, 2, 3 or 4

The database looks like this:
Name Rating Score
Fred Bloggs 1 2
Jo Evans 4 3
Anne Smtih 2 2
Jane Oliver 1 2
etc

The formula I am to count each of the 16 possible combinations is:

SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
etc

However, I get a 0 return. I use the same formula on a database that uses
letters rather than numbers and this works fine, so I'm presuming it's
because this one uses numbers. I have tried formatting the cells for
general, text and numbers and nothing seems to change the result.

Any ideas?

Many thanks.


--

Sue
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sumproduct & Numbers

Your numbers may not be actual numbers. They may be text instead.

If you don't want to change your data to numbers, then you might try
something like this.
SUMPRODUCT(B1:B36*1=1)*SUMPRODUCT(C1:C36*1=1)
SUMPRODUCT(B1:B36*1=1)*SUMPRODUCT(C1:C36*1=1)

HTH,
Paul

--

"Sue" wrote in message
...
I have a spreadsheet where I have 2 columns of numbers and am trying to use
SUMPRODUCT count paired cominations. Each person has a score Rating &
Score
of 1, 2, 3 or 4

The database looks like this:
Name Rating Score
Fred Bloggs 1 2
Jo Evans 4 3
Anne Smtih 2 2
Jane Oliver 1 2
etc

The formula I am to count each of the 16 possible combinations is:

SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
etc

However, I get a 0 return. I use the same formula on a database that uses
letters rather than numbers and this works fine, so I'm presuming it's
because this one uses numbers. I have tried formatting the cells for
general, text and numbers and nothing seems to change the result.

Any ideas?

Many thanks.


--

Sue



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sue Sue is offline
external usenet poster
 
Posts: 285
Default Sumproduct & Numbers

Sorry, the forumula I'm using is without the second SUMPRODUCT

ie SUMPRODUCT(B1:B39=1)*SUMPRODUCT(C1:C39=1)
ETC

Sue


"Sue" wrote:

I have a spreadsheet where I have 2 columns of numbers and am trying to use
SUMPRODUCT count paired cominations. Each person has a score Rating & Score
of 1, 2, 3 or 4

The database looks like this:
Name Rating Score
Fred Bloggs 1 2
Jo Evans 4 3
Anne Smtih 2 2
Jane Oliver 1 2
etc

The formula I am to count each of the 16 possible combinations is:

SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
etc

However, I get a 0 return. I use the same formula on a database that uses
letters rather than numbers and this works fine, so I'm presuming it's
because this one uses numbers. I have tried formatting the cells for
general, text and numbers and nothing seems to change the result.

Any ideas?

Many thanks.


--

Sue

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sumproduct & Numbers

Oops! I didn't even pay attention to that.

=SUMPRODUCT((B1:B36*1=1)*(C1:C36*1=1))
=SUMPRODUCT((B1:B36*1=1)*(C1:C36*1=1))

or

=SUMPRODUCT(--(B1:B36*1=1),--(C1:C36*1=1))


HTH,
Paul


--

"Sue" wrote in message
...
Sorry, the forumula I'm using is without the second SUMPRODUCT

ie SUMPRODUCT(B1:B39=1)*SUMPRODUCT(C1:C39=1)
ETC

Sue


"Sue" wrote:

I have a spreadsheet where I have 2 columns of numbers and am trying to
use
SUMPRODUCT count paired cominations. Each person has a score Rating &
Score
of 1, 2, 3 or 4

The database looks like this:
Name Rating Score
Fred Bloggs 1 2
Jo Evans 4 3
Anne Smtih 2 2
Jane Oliver 1 2
etc

The formula I am to count each of the 16 possible combinations is:

SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
etc

However, I get a 0 return. I use the same formula on a database that
uses
letters rather than numbers and this works fine, so I'm presuming it's
because this one uses numbers. I have tried formatting the cells for
general, text and numbers and nothing seems to change the result.

Any ideas?

Many thanks.


--

Sue



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Sumproduct & Numbers

If you want to count the occasions where the same row has the same number
then use

=SUMPRODUCT(--(B1:B39=1),--(C1:C39=1))


Don't where you got the other formulas from


--


Regards,


Peo Sjoblom



"Sue" wrote in message
...
Sorry, the forumula I'm using is without the second SUMPRODUCT

ie SUMPRODUCT(B1:B39=1)*SUMPRODUCT(C1:C39=1)
ETC

Sue


"Sue" wrote:

I have a spreadsheet where I have 2 columns of numbers and am trying to
use
SUMPRODUCT count paired cominations. Each person has a score Rating &
Score
of 1, 2, 3 or 4

The database looks like this:
Name Rating Score
Fred Bloggs 1 2
Jo Evans 4 3
Anne Smtih 2 2
Jane Oliver 1 2
etc

The formula I am to count each of the 16 possible combinations is:

SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
SUMPRODUCT(B1:B36=1)*SUMPRODUCT(C1:C36=1)
etc

However, I get a 0 return. I use the same formula on a database that
uses
letters rather than numbers and this works fine, so I'm presuming it's
because this one uses numbers. I have tried formatting the cells for
general, text and numbers and nothing seems to change the result.

Any ideas?

Many thanks.


--

Sue



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 with text and numbers in cells Lee New Users to Excel 10 April 21st 08 04:18 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct Numbers and Text? wx4usa New Users to Excel 4 February 24th 07 03:15 AM
SUMPRODUCT USING WORDS AS WELL AS NUMBERS FOR CRITERIA Andrew C Excel Worksheet Functions 2 December 29th 05 08:07 PM
Sumproduct not working when summing values between two numbers FlamencoKid Excel Worksheet Functions 8 September 13th 05 06:01 PM


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