COUNTIFS question

gchandler

New Member
Joined
May 21, 2015
Messages
49
I use COUNTIFS functions heavily at my job and i know there has to be a way to do what i want to do. When i use the COUNTIFS function i normally reference an entire separate Tab from the Tab my actual function is located. My Tabs that i pull from are normally named by the month of data that im working with. For instance, if im working on May data, my tab would be named "May data" and my function would look like =COUNTIFS('May data'........). I normally have 20-30 functions on one page pulling from that same separate tab so every month it is a pain to have to go back and change every single one of the formulas to reflect the change in tab name. For instance when June rolls along, ill create a tab named "June data" to pull from and have to go back and manually change every formula from =COUNTIFS('May data'...) to =COUNTIFS('June data'....). Is there a way to write my Tab name in a cell that i can reference to in my formula? That way when i change the cell it will automatically update all of my formulas? Ive tried and have had no luck whatsoever. Any help or direction would be greatly appreciated.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
One quick and easy way.... on the sheet with all the formulas, hit ctrl F, enter May, select replace enter June, select replace all. Done.
 
Upvote 0
Hi.

With your month in B1 exactly as it appears on the tab, e.g.:

=COUNTIFS(INDIRECT("'"&B1&" data'!A:A"),"A")

Regards
 
Upvote 0

Forum statistics

Threads
1,203,109
Messages
6,053,566
Members
444,673
Latest member
Jagadeshrao

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