Countif question that looks at a tab reference

arisomar

New Member
Joined
Sep 18, 2024
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am using this to count initials in a tab:

=COUNTIF('1'!$B$5:$AK$70,"PT")

There are 100 tabs all named 1-100, therefore the next formula would be:

=COUNTIF('2'!$B$5:$AK$70,"PT")

Is there are quick way to have the tab reference change sequentially without having to F2 in every tab and manually change it?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi All,

I am using this to count initials in a tab:

=COUNTIF('1'!$B$5:$AK$70,"PT")

There are 100 tabs all named 1-100, therefore the next formula would be:

=COUNTIF('2'!$B$5:$AK$70,"PT")

Is there are quick way to have the tab reference change sequentially without having to F2 in every tab and manually change it?
You can use the INDIRECT function.

Display and add up Grams Kilograms.xlsx
CDEF
1
2
31269
42365
53306
6
7
8
9
Sheet1
Cell Formulas
RangeFormula
E3:E5E3=COUNTIF(INDIRECT($D3 & "!$B$5:$AK$70"),"PT")
 
Upvote 0
Solution

Forum statistics

Threads
1,225,740
Messages
6,186,759
Members
453,370
Latest member
juliewar

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