Formula points to text in a cell to identify sheet

Nick70

Active Member
Joined
Aug 20, 2013
Messages
299
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a formula in cell C10 of Sheet1 equal to =COUNTIFS('CW 01'!I:I,B10,'CW 01'!K:K,X10) that points to sheet CW 01.

Is there a way to put text "CW 01" in Cell A1 of Sheet1 so that formula would look in sheet name equal to text in A1 (in this case CW 01)?
This way one could easily repoint formula simply by changing text in cell A1.
For example if we wanted formula to point to sheet CW 02 we could simply put text CW 02 in cell A1.

I tried formula =COUNTIFS('A1'!I:I,B10,'CW 01'!K:K,X10) but it does not work.

Any ideas how formula should look?

Thanks,
N.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You could use
Excel Formula:
=COUNTIFS(INDIRECT("'"&A1&"'!I:I"),B10,INDIRECT("'"&A1&"'!K:K"),X10)
but it's volatile so will re-calc whenever anything on any open workbook changes
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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