How tab names are separated underneath the hood in Excel? Using FIND function

Vitale

New Member
Joined
Jun 21, 2017
Messages
4
Hello!

I have found an interesting thread here, in which this formula is used:

=INDEX(MID(SheetNames,FIND("]",SheetNames)+1,255),ROWS(A$1:A1))
https://www.mrexcel.com/forum/excel-questions/428957-list-worksheet-names-using-formula.html

SheetNames is the name of the whole Workbook, if I understood that correctly.
Please, let me know if I correct understand the following:

MID function looks at the whole SheetNames workbook, and finds tab names next to the current sheet with FIND(
"]",SheetNames)+1.

If this is correct, then do I understand correctly that tab names in Excel are surrounded by square brackets, and hence "]" indicates the end of the first (currently opened) sheet's name, thus guiding the FIND function to the end of that name, and + 1 allows to get to the second name?

Thank you very much!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
like using =CELL("filename") it will return [workbookname.xls]sheetname

the find gives the number of charcters before the ] including the ]. the +1 goes onto the first letter of the sheet name. 255 is the number of characters that will capture the whole sheet name.

then rows(A$1:A1) will equal 1 then as you drag it down it will be A1:A2...A1:A3 thus 2 then 3, this gives you the first second and third value in the sheet names
 
Upvote 0
like using =CELL("filename") it will return [workbookname.xls]sheetname

the find gives the number of charcters before the ] including the ]. the +1 goes onto the first letter of the sheet name. 255 is the number of characters that will capture the whole sheet name.

then rows(A$1:A1) will equal 1 then as you drag it down it will be A1:A2...A1:A3 thus 2 then 3, this gives you the first second and third value in the sheet names

Thank you very much! It is all clear now.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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