Need formula to read list of sheet names for COUNTIF

djl0525

Well-known Member
Joined
Dec 11, 2004
Messages
1,238
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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

jorismoerings

Well-known Member
Joined
Jul 4, 2014
Messages
1,505
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
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

djl0525

Well-known Member
Joined
Dec 11, 2004
Messages
1,238
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,191,369
Messages
5,986,259
Members
440,015
Latest member
knijgh

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
Top