with Formula No VBA how to get the Sheet Names?

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
387
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
Hi how to get the sheet names with formula, (ideally store in a combobox)

i am here get the actual sheet name:

=MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)

or

=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))

but get the actual sheet name, how to get the (30 sheets names)

thanks..
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
i am here get the actual sheet name

When I use this formula
Excel Formula:
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

I get the 'actual' sheet name. You might need to explain more.
 
Upvote 0
1. Create a named range (I used SheetList) using the formula =SUBSTITUTE(GET.WORKBOOK(1),"[" & GET.WORKBOOK(16) & "]","") in the Refers to text box
2. Enter the following formula into the first cell (I used cell A2) where you want to the results to start =INDEX(SheetList,0,ROW()-1) Note the column_num argument refers to the sheet number in the workbook so for completeness it needs to start at 1 (which since I started in cell A2 I subtracted 1).
3. Copy the formula down for as many sheets there are in your workbook (a #REF! will appear if the column_number argument is higher than the number of sheets in the workbook).

T10_1712b.xlsm
A
1
21a
31b
41c
51d
1a
Cell Formulas
RangeFormula
A2:A5A2=INDEX(SheetList,0,ROW()-1)
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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