sum cell all sheets with condition

spilner

Board Regular
Joined
Jun 7, 2011
Messages
146
okay,i want to sum all sheets with a condition.

example :
its all in the same cell example A1

sheet 1 = 50 , sheet 2 = 100 , sheet 3 = 1000 , sheet 4 = 30

if its more than 50 sum it.if its below than 50 then 0.

my formula is like this but it aint work.im not very good in excel.

=SUMIF('1:4'!A11,min(50,a11),0)

i dont know how to write this,hope someone can help me.thanks a lot guys
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
okay,i want to sum all sheets with a condition.

example :
its all in the same cell example A1

sheet 1 = 50 , sheet 2 = 100 , sheet 3 = 1000 , sheet 4 = 30

if its more than 50 sum it.if its below than 50 then 0.

my formula is like this but it aint work.im not very good in excel.

=SUMIF('1:4'!A11,min(50,a11),0)

i dont know how to write this,hope someone can help me.thanks a lot guys

Try...

A1: 1
A2: 2
A3: 3
A4: 4

Select A1:A4, go to the Name Box on the Formula bar, type SheetList, and enter.

Let B1 house 50, the criterion value.

Now invoke in say C1...

=SUMPRODUCT(SUMIF(INDIRECT("'"&SheetList&"'!A11"),">"&B1))
 
Upvote 0
could you also not use
Code:
=IF(SUM(Sheet1:Sheet4!A1)>50,SUM(Sheet1:Sheet4!A1),0)
 
Upvote 0
maybe i get yall confuse.

sheet 1 = 50 , sheet 2 = 100 , sheet 3 = 1000 , sheet 4 = 30

if its more than 50 sum it.if its below than 50 then 0.

so,the total is 50+100+1000 = 1150.
sheet4 is less than 50.so,its not counted.

@michael
yours formula count all of in A1.

@aladin
it not work with me

can u guys write again?
 
Upvote 0
maybe i get yall confuse.

sheet 1 = 50 , sheet 2 = 100 , sheet 3 = 1000 , sheet 4 = 30

if its more than 50 sum it.if its below than 50 then 0.

so,the total is 50+100+1000 = 1150.
sheet4 is less than 50.so,its not counted.

@michael
yours formula count all of in A1.

@aladin
it not work with me

can u guys write again?

Did you create the range in which the names of the relevant sheets must be entered and named that range SheetList?
 
Upvote 0
it end with #name?

im not sure why its involed with b1.
its all only in the same cell which its in A1 only.
 
Upvote 0
it end with #name?

im not sure why its involed with b1.
its all only in the same cell which its in A1 only.

You have sheets name 1, 2, 3, and 4. Right?

Let's enter in A1:A4 these sheet names say on the Summary sheet.
Select A1:A4 on the Summary sheet, name this range SheetList via the Name Box on the Formula Bar.

In B1 on the Summary sheet enter 50, your criterion value.

In C1 on the Summary sheet, enter the following formula:

=SUMPRODUCT(SUMIF(INDIRECT("'"&SheetList&"'!A11"),">"&B1))
 
Upvote 0
yes but i dont understand a1:a4.

i mean is like this..

sheet 1 = A1=50 , sheet 2 = A1=100 , sheet 3 = A1=1000 , sheet 4 = A1=30

i try to do what u say but i cant get it right.
 
Upvote 0
You have sheets name 1, 2, 3, and 4. Right?

Let's enter in A1:A4 these sheet names say on the Summary sheet.
Select A1:A4 on the Summary sheet, name this range SheetList via the Name Box on the Formula Bar.

In B1 on the Summary sheet enter 50, your criterion value.

In C1 on the Summary sheet, enter the following formula:

=SUMPRODUCT(SUMIF(INDIRECT("'"&SheetList&"'!A11"),">"&B1))

Spilner and Aladin,

Let me get in and trying to help.

I think the sheet-names are
Sheet1
Sheet2
Sheet3
Sheet4

and the interest cell is A1 (not A11)

M.
 
Upvote 0
ur correct marcelo

Sheet1 , A1=50
Sheet2 , A1=100
Sheet3 , A1=1000
Sheet4 , A1=30

Total : 1150

hope aladin can fix it.thanks
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top