Referencing a sheet name

zeeplocked

New Member
Joined
May 3, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello,
I'm just thinking if there's a way to ïnsert a Sheet name into a formula by refering to a cell?
Example:
A
1 Apple
2 Ball

I have two sheets: Apple and Ball
My Formula: =(COUNTIFS('Apple'!$A$1:$A$10,"Red",'Apple'!$b$1:$b$10,"Big",'Apple'!$C$1:$C$10,"Sweet")
Is there a simple way wherein I can just refer cell A1 for the sheet name instead of typing "Äpple""three times?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You can use INDIRECT and pass it the range address as text (including the sheet name - so:

Excel Formula:
'Apple'!$A$1:$A$10

becomes:

Excel Formula:
INDIRECT("'"&A1& "'!$A$1:$A$10")
 
Upvote 0
Which method involves the smallest number of keystrokes, which I assume the OP is looking to do...
 
Upvote 0
The whole formula would be:

Excel Formula:
=COUNTIFS(INDIRECT("'"&A1&"'!$A$1:$A$10"),"Red",INDIRECT("'"&A1&"'!$B$1:$B$10"),"Big",INDIRECT("'"&A1&"'!$C$1:$C$10"),"Sweet")
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,553
Members
449,038
Latest member
Guest1337

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