#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Sumproduct

I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region. All I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's too
clumsy.

What can I do? Suggestions are most welcome!


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Sumproduct

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(C1:Z10))

--
__________________________________
HTH

Bob

"robot" wrote in message
...
I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region. All I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's too
clumsy.

What can I do? Suggestions are most welcome!




  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,501
Default Sumproduct

Hi,

I'm not sure I fully understand but maybe this

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(C1:Z10))

Mike

"robot" wrote:

I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region. All I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's too
clumsy.

What can I do? Suggestions are most welcome!



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Sumproduct

The formula works! Thank you both for your replies.

However, some of the cells in the region C1:Z10 include text but not
numbers. I would like to treat them as zeros, so I tried

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(IF(ISNUMBER(C1: Z10), C1:Z10, 0))

However, the formula always returns zero. What can I do?


"Mike H" ...
Hi,

I'm not sure I fully understand but maybe this

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(C1:Z10))

Mike

"robot" wrote:

I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region. All
I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's too
clumsy.

What can I do? Suggestions are most welcome!





  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Sumproduct

=SUM(IF(ISNUMBER(C1:Z10),IF((A1:A10=1)*(B1:B10=1), C1:Z10,0)))

as an array formula, commit with Ctrl-Shift-Enter


--
__________________________________
HTH

Bob

"robot" wrote in message
...
The formula works! Thank you both for your replies.

However, some of the cells in the region C1:Z10 include text but not
numbers. I would like to treat them as zeros, so I tried

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(IF(ISNUMBER(C1: Z10), C1:Z10, 0))

However, the formula always returns zero. What can I do?


"Mike H"
...
Hi,

I'm not sure I fully understand but maybe this

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(C1:Z10))

Mike

"robot" wrote:

I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region. All
I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's too
clumsy.

What can I do? Suggestions are most welcome!









  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default Sumproduct

Thank you Bob, you are a great help.

While your formula works, I am still a little uncomfortable about the use of
arrays of different dimensions (A1:A10 and C1:Z10) in a single array
formula. It is because according to the Excel XP help file, all arrays in an
array formula should have the same dimensions.


"Bob Phillips" bl...
=SUM(IF(ISNUMBER(C1:Z10),IF((A1:A10=1)*(B1:B10=1), C1:Z10,0)))

as an array formula, commit with Ctrl-Shift-Enter


--
__________________________________
HTH

Bob

"robot" wrote in message
...
The formula works! Thank you both for your replies.

However, some of the cells in the region C1:Z10 include text but not
numbers. I would like to treat them as zeros, so I tried

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(IF(ISNUMBER(C1: Z10), C1:Z10, 0))

However, the formula always returns zero. What can I do?


"Mike H" ...
Hi,

I'm not sure I fully understand but maybe this

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(C1:Z10))

Mike

"robot" wrote:

I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region.
All I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's
too
clumsy.

What can I do? Suggestions are most welcome!









  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Sumproduct

Yet you were quite happy to use it with SUMPRODUCT, which is effectively an
array formula, and the help makes the same statement about its dimensions,
albeit in different words.

--
__________________________________
HTH

Bob

"robot" wrote in message
...
Thank you Bob, you are a great help.

While your formula works, I am still a little uncomfortable about the use
of arrays of different dimensions (A1:A10 and C1:Z10) in a single array
formula. It is because according to the Excel XP help file, all arrays in
an array formula should have the same dimensions.


"Bob Phillips"
bl...
=SUM(IF(ISNUMBER(C1:Z10),IF((A1:A10=1)*(B1:B10=1), C1:Z10,0)))

as an array formula, commit with Ctrl-Shift-Enter


--
__________________________________
HTH

Bob

"robot" wrote in message
...
The formula works! Thank you both for your replies.

However, some of the cells in the region C1:Z10 include text but not
numbers. I would like to treat them as zeros, so I tried

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(IF(ISNUMBER(C1: Z10), C1:Z10, 0))

However, the formula always returns zero. What can I do?


"Mike H"
...
Hi,

I'm not sure I fully understand but maybe this

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(C1:Z10))

Mike

"robot" wrote:

I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region.
All I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's
too
clumsy.

What can I do? Suggestions are most welcome!











  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default Sumproduct

I'll try getting used to this new concept. Thanks again, Bob.


"Bob Phillips" bl...
Yet you were quite happy to use it with SUMPRODUCT, which is effectively
an array formula, and the help makes the same statement about its
dimensions, albeit in different words.

--
__________________________________
HTH

Bob

"robot" wrote in message
...
Thank you Bob, you are a great help.

While your formula works, I am still a little uncomfortable about the use
of arrays of different dimensions (A1:A10 and C1:Z10) in a single array
formula. It is because according to the Excel XP help file, all arrays in
an array formula should have the same dimensions.


"Bob Phillips" bl...
=SUM(IF(ISNUMBER(C1:Z10),IF((A1:A10=1)*(B1:B10=1), C1:Z10,0)))

as an array formula, commit with Ctrl-Shift-Enter


--
__________________________________
HTH

Bob

"robot" wrote in message
...
The formula works! Thank you both for your replies.

However, some of the cells in the region C1:Z10 include text but not
numbers. I would like to treat them as zeros, so I tried

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(IF(ISNUMBER(C1: Z10), C1:Z10, 0))

However, the formula always returns zero. What can I do?


"Mike H" ...
Hi,

I'm not sure I fully understand but maybe this

=SUMPRODUCT((A1:A10=1)*(B1:B10=1)*(C1:Z10))

Mike

"robot" wrote:

I have a worksheet with data in the region C1:Z10.
I want to sum over everything in the region C1:Z10 which meets
certain
criteria for columns A & B (more specifically: equal to 1).

Also, I don't want to create an extra column of sums for the region.
All I
want is a formula.

I know I can use
SumProduct((A1:A10=1)*(B1:B10=1), C1:C10 + D1:D10 +...) , but that's
too
clumsy.

What can I do? Suggestions are most welcome!













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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
SUMPRODUCT except for Sapphyre New Users to Excel 7 July 18th 07 10:00 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct PA Excel Worksheet Functions 2 December 31st 05 02:27 PM
Sumproduct masterkeys Excel Worksheet Functions 2 November 22nd 05 09:16 AM


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