Counting those cells of a spicific range of multiple worksheets which can pass a logic

elmoh3n

New Member
Joined
Dec 14, 2013
Messages
3
Hello!!
I have an excel workbook which includes 27 worksheets. I want to count "F" column cells of those worksheet, based on those entries. I want to know how many of those are less than 10, how many of those are between 10-20 and how many of those are more than 20.
Can any body help me, please!?
Special thanks in advance.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
you'd need to make a list of the sheetnames somewhere out of the way.


Excel 2012
ABCDE
sheet1
sheet2
sheet3

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FFFF00"]Sheet Names[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FFFF00"]< 10[/TD]
[TD="bgcolor: #FFFF00"]> 10 <= 20[/TD]
[TD="bgcolor: #FFFF00"]> 20[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"][/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]C2[/TH]
[TD="align: left"]=SUMPRODUCT(COUNTIF(INDIRECT(" ' "&A2:A4&" '!F:F"),10))[/TD]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]D2[/TH]
[TD="align: left"]=SUMPRODUCT(COUNTIFS(INDIRECT(" ' "&A2:$A4&" '!F:F"),">10",INDIRECT(" ' "&A2:A4&" '!F:F"),"<=20"))[/TD]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]E2[/TH]
[TD="align: left"]=SUMPRODUCT(COUNTIF(INDIRECT(" ' "&A2:A4&" '!F:F"),">20"))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
you'd need to make a list of the sheetnames somewhere out of the way.


Excel 2012
ABCDE
sheet1
sheet2
sheet3

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FFFF00"]Sheet Names[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FFFF00"]< 10[/TD]
[TD="bgcolor: #FFFF00"]> 10 <= 20[/TD]
[TD="bgcolor: #FFFF00"]> 20[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"][/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]C2[/TH]
[TD="align: left"]=SUMPRODUCT(COUNTIF(INDIRECT(" ' "&A2:A4&" '!F:F"),10))[/TD]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]D2[/TH]
[TD="align: left"]=SUMPRODUCT(COUNTIFS(INDIRECT(" ' "&A2:$A4&" '!F:F"),">10",INDIRECT(" ' "&A2:A4&" '!F:F"),"<=20"))[/TD]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]E2[/TH]
[TD="align: left"]=SUMPRODUCT(COUNTIF(INDIRECT(" ' "&A2:A4&" '!F:F"),">20"))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Ah, thank you, very interesting.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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