ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Nesting of sumif formula. (https://www.excelbanter.com/excel-worksheet-functions/62674-nesting-sumif-formula.html)

ramana

Nesting of sumif formula.
 
Hi everybody,

First of all I wish you all a very Happy and Prosperous new year
2006.

I have 10 work sheets, in the 11th sheet I want to sum a column based
on the column F value. I'm givivg you an example for this.

In 11th work sheet in column F I have this formula.

=sumif('sheet1!'D1:D100="X",'sheet1!'f1:f100)+sumi f('sheet2!'D1:D100="X",'sheet2!'f1:f100)+sumif('sh eet3!'D1:D100="X",'sheet3!'f1:f100)+sumif('sheet4! 'D1:D100="X",'sheet4!'f1:f100)+.....sumif('sheet10 !'D1:D100="X",'sheet10!'f1:f100).
Some times the sheets may go up to 50.

So I need a nested formula like
sumif(Sheet1:sheet10d1:d100="x",sheet1:sheet10f1:f 100)

If any body hae suggestions plz give me.

Thanks and Regards

Ramana


JE McGimpsey

Nesting of sumif formula.
 
Take a look he

http://www.mcgimpsey.com/excel/threedsumif.html

In article . com,
"ramana" wrote:

Hi everybody,

First of all I wish you all a very Happy and Prosperous new year
2006.

I have 10 work sheets, in the 11th sheet I want to sum a column based
on the column F value. I'm givivg you an example for this.

In 11th work sheet in column F I have this formula.

=sumif('sheet1!'D1:D100="X",'sheet1!'f1:f100)+sumi f('sheet2!'D1:D100="X",'shee
t2!'f1:f100)+sumif('sheet3!'D1:D100="X",'sheet3!'f 1:f100)+sumif('sheet4!'D1:D1
00="X",'sheet4!'f1:f100)+.....sumif('sheet10!'D1:D 100="X",'sheet10!'f1:f100).
Some times the sheets may go up to 50.

So I need a nested formula like
sumif(Sheet1:sheet10d1:d100="x",sheet1:sheet10f1:f 100)

If any body hae suggestions plz give me.

Thanks and Regards

Ramana


Bob Phillips

Nesting of sumif formula.
 
Ramana,

Put your sheet names in a range, I use C1:C!0 in the example, you would need
a bigger range for 50, and use

=SUMPRODUCT(SUMIF(INDIRECT("'"&C1:C10&"'!D1:D100") ,"X",INDIRECT("'"&C1:C10&"
'!F1:F100")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ramana" wrote in message
ups.com...
Hi everybody,

First of all I wish you all a very Happy and Prosperous new year
2006.

I have 10 work sheets, in the 11th sheet I want to sum a column based
on the column F value. I'm givivg you an example for this.

In 11th work sheet in column F I have this formula.


=sumif('sheet1!'D1:D100="X",'sheet1!'f1:f100)+sumi f('sheet2!'D1:D100="X",'sh
eet2!'f1:f100)+sumif('sheet3!'D1:D100="X",'sheet3! 'f1:f100)+sumif('sheet4!'D
1:D100="X",'sheet4!'f1:f100)+.....sumif('sheet10!' D1:D100="X",'sheet10!'f1:f
100).
Some times the sheets may go up to 50.

So I need a nested formula like
sumif(Sheet1:sheet10d1:d100="x",sheet1:sheet10f1:f 100)

If any body hae suggestions plz give me.

Thanks and Regards

Ramana





All times are GMT +1. The time now is 05:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com