Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default sumproduct of multiple sheets

Hi,

I am using the below sumproduct formula
=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!A1:A 50000="Automatic"))

I have to make the formula for almost 20-25 sheets. so i have to put the
formula in 25 cells to know the result of 25 sheets.

Is there any sumproduct formaula to take the data from all sheet at one go
and give me the result in one cell

regards,
rkp
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 464
Default sumproduct of multiple sheets

You are better off Grouping your 25 Worksheets and entering the SUMPRODUCT
Function once with NO sheet references, then use =SUM(Sheet1:sheet25!A1) to
get you grand total. Where A1 on each of the 25 sheets contains your
SUMPRODUCT Function.


--
Regards
Dave Hawley
www.ozgrid.com

"Radhakant Panigrahi" wrote in message
...
Hi,

I am using the below sumproduct formula
=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!A1:A 50000="Automatic"))

I have to make the formula for almost 20-25 sheets. so i have to put the
formula in 25 cells to know the result of 25 sheets.

Is there any sumproduct formaula to take the data from all sheet at one go
and give me the result in one cell

regards,
rkp


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default sumproduct of multiple sheets

If you don't want to use the formula for each sheet you can use one formula
that relies on a list of sheets or a defined name with a list of the sheets.
Here is an example where col F has the sheet names
=SUMPRODUCT(SUMIF(INDIRECT(OFFSET(F1,,,COUNTA(F:F) )&"!B1"),"PMI",INDIRECT(OFFSET(F1,,,COUNTA(F:F))&" !A3")))

or using a defined name
=SUMPRODUCT(SUMIF(INDIRECT(ms&"!B1"),"PMI",INDIREC T(ms&"!A3")))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Radhakant Panigrahi" wrote in message
...
Hi,

I am using the below sumproduct formula
=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!A1:A 50000="Automatic"))

I have to make the formula for almost 20-25 sheets. so i have to put the
formula in 25 cells to know the result of 25 sheets.

Is there any sumproduct formaula to take the data from all sheet at one go
and give me the result in one cell

regards,
rkp


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default sumproduct of multiple sheets

Hi Don,

thanks for your answer, but just to understand where do i need to put my
reference in the function that u have provided...

here in my formaula i have to calculate The Name "Mark" from Column A and
"Automatic" from ColumnB. So where i need to put the "Mark" and "automatic"
as criteria and also where to put the column "A" &A"B" as reference reference.

regads,

=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!B1:B 50000="Automatic"))

"Don Guillett" wrote:

If you don't want to use the formula for each sheet you can use one formula
that relies on a list of sheets or a defined name with a list of the sheets.
Here is an example where col F has the sheet names
=SUMPRODUCT(SUMIF(INDIRECT(OFFSET(F1,,,COUNTA(F:F) )&"!B1"),"PMI",INDIRECT(OFFSET(F1,,,COUNTA(F:F))&" !A3")))

or using a defined name
=SUMPRODUCT(SUMIF(INDIRECT(ms&"!B1"),"PMI",INDIREC T(ms&"!A3")))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Radhakant Panigrahi" wrote in message
...
Hi,

I am using the below sumproduct formula
=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!A1:A 50000="Automatic"))

I have to make the formula for almost 20-25 sheets. so i have to put the
formula in 25 cells to know the result of 25 sheets.

Is there any sumproduct formaula to take the data from all sheet at one go
and give me the result in one cell

regards,
rkp


.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default sumproduct of multiple sheets

This works for the defined names approach where ms is defined as
={"Sheet1","Sheet2","Sheet3"}

=SUMPRODUCT(COUNTIF(INDIRECT(ms&"!$a1:a21"),"MARK" ),COUNTIF(INDIRECT(ms&"!$b1:b21"),"automatic"))


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Radhakant Panigrahi" wrote in message
...
Hi Don,

thanks for your answer, but just to understand where do i need to put my
reference in the function that u have provided...

here in my formaula i have to calculate The Name "Mark" from Column A and
"Automatic" from ColumnB. So where i need to put the "Mark" and
"automatic"
as criteria and also where to put the column "A" &A"B" as reference
reference.

regads,

=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!B1:B 50000="Automatic"))

"Don Guillett" wrote:

If you don't want to use the formula for each sheet you can use one
formula
that relies on a list of sheets or a defined name with a list of the
sheets.
Here is an example where col F has the sheet names

=SUMPRODUCT(SUMIF(INDIRECT(OFFSET(F1,,,COUNTA(F:F) )&"!B1"),"PMI",INDIRECT(OFFSET(F1,,,COUNTA(F:F))&" !A3")))

or using a defined name
=SUMPRODUCT(SUMIF(INDIRECT(ms&"!B1"),"PMI",INDIREC T(ms&"!A3")))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Radhakant Panigrahi" wrote in message
...
Hi,

I am using the below sumproduct formula
=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!A1:A 50000="Automatic"))

I have to make the formula for almost 20-25 sheets. so i have to put
the
formula in 25 cells to know the result of 25 sheets.

Is there any sumproduct formaula to take the data from all sheet at one
go
and give me the result in one cell

regards,
rkp


.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default sumproduct of multiple sheets

Hi Don,

I have defined the 3 sheets in Insertnamedefine and applied the below
sumproduct formaula, however it is giving me the figure more than what is
actual. Actual figure is 9 where as it is giving me 90

Below is my data. the same data is contained in 3 sheets the Name "Mark"
with "Automatic" is coming 3 times in a sheet and for 3 sheets it is 9,
where as it is coming as 90.

Name Process
Mark Automatic
Mark Manual
Mark Automatic
Henry Automatic
Mark Manual
Mark Manual
Henry Manual
Henry Automatic
Mark Automatic


"Don Guillett" wrote:

This works for the defined names approach where ms is defined as
={"Sheet1","Sheet2","Sheet3"}

=SUMPRODUCT(COUNTIF(INDIRECT(ms&"!$a1:a21"),"MARK" ),COUNTIF(INDIRECT(ms&"!$b1:b21"),"automatic"))


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Radhakant Panigrahi" wrote in message
...
Hi Don,

thanks for your answer, but just to understand where do i need to put my
reference in the function that u have provided...

here in my formaula i have to calculate The Name "Mark" from Column A and
"Automatic" from ColumnB. So where i need to put the "Mark" and
"automatic"
as criteria and also where to put the column "A" &A"B" as reference
reference.

regads,

=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!B1:B 50000="Automatic"))

"Don Guillett" wrote:

If you don't want to use the formula for each sheet you can use one
formula
that relies on a list of sheets or a defined name with a list of the
sheets.
Here is an example where col F has the sheet names

=SUMPRODUCT(SUMIF(INDIRECT(OFFSET(F1,,,COUNTA(F:F) )&"!B1"),"PMI",INDIRECT(OFFSET(F1,,,COUNTA(F:F))&" !A3")))

or using a defined name
=SUMPRODUCT(SUMIF(INDIRECT(ms&"!B1"),"PMI",INDIREC T(ms&"!A3")))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Radhakant Panigrahi" wrote in message
...
Hi,

I am using the below sumproduct formula
=sumproduct((sheet1!A1:A50000="Mark")*(sheet1!A1:A 50000="Automatic"))

I have to make the formula for almost 20-25 sheets. so i have to put
the
formula in 25 cells to know the result of 25 sheets.

Is there any sumproduct formaula to take the data from all sheet at one
go
and give me the result in one cell

regards,
rkp

.


.

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 Multiple W/Sheets AussieBec Excel Discussion (Misc queries) 5 August 10th 09 01:20 AM
SUMPRODUCT FOR MULTIPLE SHEETS FARAZ QURESHI Excel Discussion (Misc queries) 5 May 18th 09 02:16 PM
SUMPRODUCT, SUMIF, COUNTIF for multiple sheets for multiple criter Greg in CO[_2_] Excel Worksheet Functions 0 September 18th 08 05:51 PM
Sumproduct on multiple sheets...please help??? Tasha Excel Worksheet Functions 11 June 26th 08 04:08 PM
sumproduct from multiple sheets Matt Excel Worksheet Functions 3 August 3rd 05 07:13 PM


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