Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default SUMPRODUCT using data from multiple worksheets

Hi
the formula looks o.k.. What kind of error do you get?.

Note: you can shorten this formula to:
=SUMPRODUCT(--('mkr Calc Data'!F1:F1000=1))

or
=COUNTIF('mkr Calc Data'!F1:F1000,1)


-----Original Message-----
I am trying to use the SUMPRODUCT function to analyze

data in a second worksheet called "mkr Calc Data. However,
it seems that I cannot use references to a seperate
worksheet - I even tried using named ranges.
Here is the calc I am using.
=SUMPRODUCT(('mkr Calc Data'!F1:F1000=1)*('mkr Calc Data'!

F1:F1000))

Help.
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default SUMPRODUCT using data from multiple worksheets

Frank,
You've helped me out with a similar problem recently and
the equation you proposed worked fine. I'm not familiar
with the function of the "--" when used in a formula. I've
searched in excel and can't find any reference to it's
use. Would you mind posting a brief explaination?
-----Original Message-----
Hi
the formula looks o.k.. What kind of error do you get?.

Note: you can shorten this formula to:
=SUMPRODUCT(--('mkr Calc Data'!F1:F1000=1))

or
=COUNTIF('mkr Calc Data'!F1:F1000,1)


-----Original Message-----
I am trying to use the SUMPRODUCT function to analyze

data in a second worksheet called "mkr Calc Data.

However,
it seems that I cannot use references to a seperate
worksheet - I even tried using named ranges.
Here is the calc I am using.
=SUMPRODUCT(('mkr Calc Data'!F1:F1000=1)*('mkr Calc

Data'!
F1:F1000))

Help.
.

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default SUMPRODUCT using data from multiple worksheets

Hi
the double minus (unaray operator) coerces the boolean
values (TRUE/FALSE) to numbers (1/0)

-----Original Message-----
Frank,
You've helped me out with a similar problem recently and
the equation you proposed worked fine. I'm not familiar
with the function of the "--" when used in a formula.

I've
searched in excel and can't find any reference to it's
use. Would you mind posting a brief explaination?
-----Original Message-----
Hi
the formula looks o.k.. What kind of error do you get?.

Note: you can shorten this formula to:
=SUMPRODUCT(--('mkr Calc Data'!F1:F1000=1))

or
=COUNTIF('mkr Calc Data'!F1:F1000,1)


-----Original Message-----
I am trying to use the SUMPRODUCT function to analyze

data in a second worksheet called "mkr Calc Data.

However,
it seems that I cannot use references to a seperate
worksheet - I even tried using named ranges.
Here is the calc I am using.
=SUMPRODUCT(('mkr Calc Data'!F1:F1000=1)*('mkr Calc

Data'!
F1:F1000))

Help.
.

.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SUMPRODUCT using data from multiple worksheets

('mkr Calc Data'!F1:F1000=1)
Returns an array of true false (boolean) values.

using -- converts these to an array of 0 and 1's so they can be added.

(using just one would make them 0 and -1) so you could do

=-Sumproduct(-('mkr Calc Data'!F1:F1000=1))

--
Regards,
Tom Ogilvy

"Dale" wrote in message
...
Frank,
You've helped me out with a similar problem recently and
the equation you proposed worked fine. I'm not familiar
with the function of the "--" when used in a formula. I've
searched in excel and can't find any reference to it's
use. Would you mind posting a brief explaination?
-----Original Message-----
Hi
the formula looks o.k.. What kind of error do you get?.

Note: you can shorten this formula to:
=SUMPRODUCT(--('mkr Calc Data'!F1:F1000=1))

or
=COUNTIF('mkr Calc Data'!F1:F1000,1)


-----Original Message-----
I am trying to use the SUMPRODUCT function to analyze

data in a second worksheet called "mkr Calc Data.

However,
it seems that I cannot use references to a seperate
worksheet - I even tried using named ranges.
Here is the calc I am using.
=SUMPRODUCT(('mkr Calc Data'!F1:F1000=1)*('mkr Calc

Data'!
F1:F1000))

Help.
.

.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default SUMPRODUCT using data from multiple worksheets

Dale,

There is a detailed explanation at

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
Multiple Condition Tests (using SUMPRODUCT)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Dale" wrote in message
...
Frank,
You've helped me out with a similar problem recently and
the equation you proposed worked fine. I'm not familiar
with the function of the "--" when used in a formula. I've
searched in excel and can't find any reference to it's
use. Would you mind posting a brief explaination?
-----Original Message-----
Hi
the formula looks o.k.. What kind of error do you get?.

Note: you can shorten this formula to:
=SUMPRODUCT(--('mkr Calc Data'!F1:F1000=1))

or
=COUNTIF('mkr Calc Data'!F1:F1000,1)


-----Original Message-----
I am trying to use the SUMPRODUCT function to analyze

data in a second worksheet called "mkr Calc Data.

However,
it seems that I cannot use references to a seperate
worksheet - I even tried using named ranges.
Here is the calc I am using.
=SUMPRODUCT(('mkr Calc Data'!F1:F1000=1)*('mkr Calc

Data'!
F1:F1000))

Help.
.

.





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 across multiple worksheets Paul Excel Worksheet Functions 3 December 20th 08 04:40 AM
SUMPRODUCT / SUMIF on Multiple Worksheets with Multiple Criteria kazoo Excel Discussion (Misc queries) 2 August 21st 08 06:22 PM
SUMPRODUCT multiple critera from different worksheets nx3 Excel Worksheet Functions 2 November 21st 06 02:47 PM
Sumproduct across multiple worksheets woodcockmolely Excel Worksheet Functions 3 August 30th 06 09:28 AM
SUMif or SUMproduct across multiple worksheets? Eric Shamlin Excel Worksheet Functions 1 September 29th 05 09:55 AM


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