Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default sumproduct for multiple sheets

I am trying to create a weighted average on one sheet calculated from
several other sheets. I need to use the product of just two cells on
each sheet for the weighted average. I know I cant use sumproduct in
3D, is there another way around this problem?

Thanks,

Sarah

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default sumproduct for multiple sheets

=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)&"!B1")))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


wrote in message
oups.com...
I am trying to create a weighted average on one sheet calculated from
several other sheets. I need to use the product of just two cells on
each sheet for the weighted average. I know I cant use sumproduct in
3D, is there another way around this problem?

Thanks,

Sarah



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default sumproduct for multiple sheets

HI Bob,
Thank you for the prompt reply, I am still having some trouble and
would really appreciate some help. I can seem to figure out how to
properly apply the formula.
For "Sheet" do input the series of sheets that I would be gathering
data from or is this just code?
(1:3) is this for the sheet names? A1 and B1 are these the cells I will
be using as a source for the data? Is N determined by the data source
or do I need to identify it?

=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)¬&"!B1")))

Basically I have several sheets KState, Michigan, NYU, UCLA and each
has a number of employees (5,6,7,8) and the mean salary(85000,
90000,75000, 80000), I would like to get the weighted mean of these on
a separate sheet. Any further help would be greatly appreciated.
Thanks again,
Sarah


On Jan 25, 11:28 am, "Bob Phillips" wrote:
=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)*&"!B1")))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)

wrote in ooglegroups.com...



I am trying to create a weighted average on one sheet calculated from
several other sheets. I need to use the product of just two cells on
each sheet for the weighted average. I know I cant use sumproduct in
3D, is there another way around this problem?


Thanks,


Sarah- Hide quoted text -- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default sumproduct for multiple sheets

You can place the sheet names in an array of cells. In the following
formula I assume 8 sheet names are in cells K1:K8. Then you can use the
following variant of Bob's formula:

=SUMPRODUCT(N(INDIRECT(K1:K8&"!A1")),N(INDIRECT(K1 :K8&"!B1")))

HTH
Kostis Vezerides

On Jan 25, 8:59 pm, wrote:
HI Bob,
Thank you for the prompt reply, I am still having some trouble and
would really appreciate some help. I can seem to figure out how to
properly apply the formula.
For "Sheet" do input the series of sheets that I would be gathering
data from or is this just code?
(1:3) is this for the sheet names? A1 and B1 are these the cells I will
be using as a source for the data? Is N determined by the data source
or do I need to identify it?

=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)¬&"!B1")))

Basically I have several sheets KState, Michigan, NYU, UCLA and each
has a number of employees (5,6,7,8) and the mean salary(85000,
90000,75000, 80000), I would like to get the weighted mean of these on
a separate sheet. Any further help would be greatly appreciated.
Thanks again,
Sarah

On Jan 25, 11:28 am, "Bob Phillips" wrote:

=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)*&"!B1")))


--
---
HTH


Bob


(change the xxxx to gmail if mailing direct)


wrote in ooglegroups.com...


I am trying to create a weighted average on one sheet calculated from
several other sheets. I need to use the product of just two cells on
each sheet for the weighted average. I know I cant use sumproduct in
3D, is there another way around this problem?


Thanks,


Sarah- Hide quoted text -- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default sumproduct for multiple sheets

You can even use a constant array

=SUMPRODUCT(N(INDIRECT({"KState","Michigan,"NYU"," UCLA"}&"!A1")),N(INDIRECT(({"KState","Michigan,"NY U","UCLA"}&"!B1")))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"vezerid" wrote in message
oups.com...
You can place the sheet names in an array of cells. In the following
formula I assume 8 sheet names are in cells K1:K8. Then you can use the
following variant of Bob's formula:

=SUMPRODUCT(N(INDIRECT(K1:K8&"!A1")),N(INDIRECT(K1 :K8&"!B1")))

HTH
Kostis Vezerides

On Jan 25, 8:59 pm, wrote:
HI Bob,
Thank you for the prompt reply, I am still having some trouble and
would really appreciate some help. I can seem to figure out how to
properly apply the formula.
For "Sheet" do input the series of sheets that I would be gathering
data from or is this just code?
(1:3) is this for the sheet names? A1 and B1 are these the cells I will
be using as a source for the data? Is N determined by the data source
or do I need to identify it?

=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)¬&"!B1")))

Basically I have several sheets KState, Michigan, NYU, UCLA and each
has a number of employees (5,6,7,8) and the mean salary(85000,
90000,75000, 80000), I would like to get the weighted mean of these on
a separate sheet. Any further help would be greatly appreciated.
Thanks again,
Sarah

On Jan 25, 11:28 am, "Bob Phillips" wrote:

=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)*&"!B1")))


--
---
HTH


Bob


(change the xxxx to gmail if mailing direct)


wrote in
ooglegroups.com...


I am trying to create a weighted average on one sheet calculated from
several other sheets. I need to use the product of just two cells on
each sheet for the weighted average. I know I cant use sumproduct in
3D, is there another way around this problem?


Thanks,


Sarah- Hide quoted text -- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default sumproduct for multiple sheets

Hi Bob! (long time...)

I presume the formula runs faster with array constants? And maybe
intermediate with a named constant? Good idea for testing later tonight
at home...

Good night
Kostis

On Jan 25, 10:08 pm, "Bob Phillips" wrote:
You can even use a constant array

=SUMPRODUCT(N(INDIRECT({"KState","Michigan,"NYU"," UCLA"}&"!A1")),N(INDIRECT(({"KState","Michigan,"NY U","UCLA"}&"!B1")))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)

"vezerid" wrote in ooglegroups.com...
You can place the sheet names in an array of cells. In the following
formula I assume 8 sheet names are in cells K1:K8. Then you can use the
following variant of Bob's formula:

=SUMPRODUCT(N(INDIRECT(K1:K8&"!A1")),N(INDIRECT(K1 :K8&"!B1")))

HTH
Kostis Vezerides

On Jan 25, 8:59 pm, wrote:

HI Bob,
Thank you for the prompt reply, I am still having some trouble and
would really appreciate some help. I can seem to figure out how to
properly apply the formula.
For "Sheet" do input the series of sheets that I would be gathering
data from or is this just code?
(1:3) is this for the sheet names? A1 and B1 are these the cells I will
be using as a source for the data? Is N determined by the data source
or do I need to identify it?


=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)¬&"!B1")))


Basically I have several sheets KState, Michigan, NYU, UCLA and each
has a number of employees (5,6,7,8) and the mean salary(85000,
90000,75000, 80000), I would like to get the weighted mean of these on
a separate sheet. Any further help would be greatly appreciated.
Thanks again,
Sarah


On Jan 25, 11:28 am, "Bob Phillips" wrote:


=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)*&"!B1")))


--
---
HTH


Bob


(change the xxxx to gmail if mailing direct)


wrote in
ooglegroups.com...


I am trying to create a weighted average on one sheet calculated from
several other sheets. I need to use the product of just two cells on
each sheet for the weighted average. I know I cant use sumproduct in
3D, is there another way around this problem?


Thanks,


Sarah- Hide quoted text -- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default sumproduct for multiple sheets

Hi Kostis,

How are you? I bet it's nicer where you are than here. 0C, but feels
like -4.

I would have thought it would be quicker if the list is in cells rather than
inline constant, less evaluating to be done. And more maintainable, but not
as easily readable.Your results should be interesting.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"vezerid" wrote in message
ups.com...
Hi Bob! (long time...)

I presume the formula runs faster with array constants? And maybe
intermediate with a named constant? Good idea for testing later tonight
at home...

Good night
Kostis

On Jan 25, 10:08 pm, "Bob Phillips" wrote:
You can even use a constant array

=SUMPRODUCT(N(INDIRECT({"KState","Michigan,"NYU"," UCLA"}&"!A1")),N(INDIRECT(({"KState","Michigan,"NY U","UCLA"}&"!B1")))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)

"vezerid" wrote in
ooglegroups.com...
You can place the sheet names in an array of cells. In the following
formula I assume 8 sheet names are in cells K1:K8. Then you can use the
following variant of Bob's formula:

=SUMPRODUCT(N(INDIRECT(K1:K8&"!A1")),N(INDIRECT(K1 :K8&"!B1")))

HTH
Kostis Vezerides

On Jan 25, 8:59 pm, wrote:

HI Bob,
Thank you for the prompt reply, I am still having some trouble and
would really appreciate some help. I can seem to figure out how to
properly apply the formula.
For "Sheet" do input the series of sheets that I would be gathering
data from or is this just code?
(1:3) is this for the sheet names? A1 and B1 are these the cells I will
be using as a source for the data? Is N determined by the data source
or do I need to identify it?


=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)¬&"!B1")))


Basically I have several sheets KState, Michigan, NYU, UCLA and each
has a number of employees (5,6,7,8) and the mean salary(85000,
90000,75000, 80000), I would like to get the weighted mean of these on
a separate sheet. Any further help would be greatly appreciated.
Thanks again,
Sarah


On Jan 25, 11:28 am, "Bob Phillips" wrote:


=SUMPRODUCT(N(INDIRECT("Sheet"&ROW(1:3)&"!A1")),N( INDIRECT("Sheet"&ROW(1:3)*&"!B1")))


--
---
HTH


Bob


(change the xxxx to gmail if mailing direct)


wrote in
ooglegroups.com...


I am trying to create a weighted average on one sheet calculated from
several other sheets. I need to use the product of just two cells
on
each sheet for the weighted average. I know I cant use sumproduct in
3D, is there another way around this problem?


Thanks,


Sarah- Hide quoted text -- Show quoted text -



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
Consolidating data from multiple sheets. Bovine Jones Excel Discussion (Misc queries) 2 October 17th 06 09:55 AM
adding like items from different sheets RPW Excel Worksheet Functions 0 October 4th 06 04:00 PM
insert Rows with Formulas in Place on Multiple Sheets? Michael Link Excel Discussion (Misc queries) 5 March 9th 06 01:54 PM
Sumproduct accross multiple sheets guilbj2 Excel Discussion (Misc queries) 1 September 10th 05 12:11 AM
calculating excel spreadsheet files for pensions and life insurance (including age calculation sheets) RICHARD Excel Worksheet Functions 1 March 15th 05 05:49 PM


All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"