Need formula to read list of sheet names for COUNTIF

djl0525

Well-known Member
Joined
Dec 11, 2004
Messages
1,240
On sheet named References, I have the following entries in A5:A7.
Ex 12.1.1 Create PivotTables, (p. 462)
Ex 12.1.2 Format a PivotTable, (p. 466)
Ex 12.1.3 Change PivotTable Fields, (p. 467)

I have sheet names that correspond to the numeric references in these entries.
12.1.1
12.1.2
12.1.3

On the References sheet, I have formulas in column C.
=COUNTIF('12.1.1'!D:D,"*sponsors*")
=COUNTIF('12.1.2'!D:D,"*sponsors*")
=COUNTIF('12.1.3'!D:D,"*sponsors*")

I need up modify this formula so it captures the sheet name from my entries (12.1.1, 12.1.2, 12.1.3, etc.). Then I can copy it to many rows in column C.

Any assistance will be appreciated.

DJ
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
take a look at this:


Excel 2016 (Windows) 64 bit
AB
5Ex 12.1.1 Create PivotTables, (p. 462)
6Ex 12.1.2 Format a PivotTable, (p. 466)
7Ex 12.1.3 Change PivotTable Fields, (p. 467)
8
93
Sheet4
Cell Formulas
RangeFormula
B9=SUMPRODUCT(COUNTIF(INDIRECT("'"&MID(A5:A7,4,6)&"'!d:d"), "Sponsors"))
 
Upvote 0
Thank you so much. I changed A5:A7 to just A5 and the copy and paste was successful.

I really appreciate your help!! :)

DJ
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

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