Reference cell with Worksheet name in a formula

JeannetteE

Board Regular
Joined
May 19, 2016
Messages
53
My formula is: "=SUM(COUNTIFS('01 Platform'!$I:$I,"",'01 Platform'!$D:$D,{TRUE}))", this is in cell D19. The name of the worksheet is in B19, I would like to reference that cell instead of using the worksheet name in the formula as I have additional rows to apply that formula and just want to fill down rather then replace each worksheet name.

Hope that makes sense and any help is appreciated.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
VBA Code:
=INDIRECT("'"&B19&"'!D19")
Thanks but that doesn't work, it gives me a TRUE result. I need the result to be a count based on the criteria in the formula, I just want to replace the worksheet name with the value in B19.
 
Upvote 0
Hi
Try
Excel Formula:
=SUM(COUNTIFS(INDIRECT("'"&B19&"'!I:I"),"",INDIRECT("'"&B19&"'!D:D"),{TRUE}))
 
Upvote 0
Sorry misunderstanding:

Excel Formula:
=SUM(COUNTIFS(INDIRECT("'"&B19&"'!$I:$I"),"",INDIRECT("'"&B19&"'!$D:$D"),{TRUE}))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,676
Messages
6,126,171
Members
449,296
Latest member
tinneytwin

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