Skip i'r prif gynnwys

Sut i gyfeirio enw tab yn y gell yn Excel?

Ar gyfer cyfeirio at enw'r tab dalen gyfredol mewn cell yn Excel, gallwch ei gyflawni gyda fformiwla neu Swyddogaeth Diffinio Defnyddiwr. Bydd y tiwtorial hwn yn eich tywys drwodd fel a ganlyn.

Cyfeiriwch enw'r tab dalen gyfredol yn y gell gyda fformiwla
Cyfeiriwch enw'r tab dalen gyfredol yn y gell gyda Swyddogaeth Diffinio Defnyddiwr
Cyfeiriwch yn hawdd at yr enw tab dalen gyfredol yn y gell gyda Kutools ar gyfer Excel


Cyfeiriwch enw'r tab dalen gyfredol yn y gell gyda fformiwla

Gwnewch fel a ganlyn i gyfeirio enw tab y ddalen weithredol mewn cell benodol yn Excel.

1. Dewiswch gell wag, copïo a gludo'r fformiwla = MID (CELL ("enw ffeil", A1), FIND ("]", CELL ("enw ffeil", A1)) + 1,255) i mewn i'r Bar Fformiwla, a'r wasg y Rhowch allwedd. Gweler y screenshot:

Nawr cyfeirir at enw'r tab dalen yn y gell.

Mewnosod enw tab yn hawdd mewn cell, pennawd neu droedyn penodol yn y daflen waith:

Mae adroddiadau Kutools ar gyfer Excel's Mewnosod Gwybodaeth Llyfr Gwaith mae cyfleustodau'n helpu i fewnosod enw tab gweithredol yn hawdd mewn cell benodol. Ar ben hynny, gallwch gyfeirio enw llyfr gwaith, llwybr llyfr gwaith, enw defnyddiwr ac ati i mewn i gell, pennawd neu droedyn y daflen waith yn ôl yr angen. Cliciwch am fanylion.
Dadlwythwch Kutools ar gyfer Excel Nawr! (llwybr am ddim 30 diwrnod)


Cyfeiriwch enw'r tab dalen gyfredol yn y gell gyda Swyddogaeth Diffinio Defnyddiwr

Heblaw am y dull uchod, gallwch gyfeirio at enw'r tab dalen mewn cell gyda Swyddogaeth Diffinio Defnyddiwr.

1. Gwasgwch Alt + F11 i agor y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

2. Yn y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr, cliciwch Mewnosod > Modiwlau. Gweler y screenshot:

3. Copïwch a gludwch y cod isod i mewn i ffenestr y Cod. Ac yna pwyswch Alt + Q allweddi i gau'r Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

Cod VBA: enw'r tab cyfeirio

Function TabName()
  TabName = ActiveSheet.Name
End Function

4. Ewch i'r gell rydych chi am gyfeirio enw tab y ddalen gyfredol, nodwch = TabName () ac yna pwyswch y Rhowch allwedd. Yna bydd enw'r tab dalen gyfredol yn cael ei arddangos yn y gell.


Cyfeiriwch at yr enw tab dalen gyfredol yn y gell gyda Kutools ar gyfer Excel

Efo'r Mewnosod Gwybodaeth Llyfr Gwaith cyfleustodau Kutools ar gyfer Excel, gallwch chi gyfeirio'n hawdd at enw'r tab dalen mewn unrhyw gell rydych chi ei eisiau. Gwnewch fel a ganlyn.

1. Cliciwch Kutools Byd Gwaith > Llyfr Gwaith > Mewnosod Gwybodaeth Llyfr Gwaith. Gweler y screenshot:

2. Yn y Mewnosod Gwybodaeth Llyfr Gwaith blwch deialog, dewiswch Enw'r daflen waith yn y Gwybodaeth adran, ac yn yr Mewnosod yn adran, dewiswch y Ystod opsiwn, ac yna dewiswch gell wag ar gyfer lleoli enw'r ddalen, ac yn olaf cliciwch y OK botwm.

Gallwch weld bod enw'r ddalen gyfredol yn cael ei chyfeirio i'r gell a ddewiswyd. Gweler y screenshot:

  Os ydych chi am gael treial am ddim (30 diwrnod) o'r cyfleustodau hwn, cliciwch i'w lawrlwytho, ac yna ewch i gymhwyso'r llawdriniaeth yn ôl y camau uchod.


Demo: Cyfeiriwch yn hawdd at yr enw tab dalen gyfredol yn y gell gyda Kutools ar gyfer Excel

Kutools ar gyfer Excel yn cynnwys mwy na 300 o offer Excel defnyddiol. Am ddim i geisio heb unrhyw gyfyngiad mewn 30 diwrnod. Dadlwythwch y treial am ddim nawr!

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (24)
Rated 0.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
sorry your formulas and everything are incorrect on this page.
after direct copy/paste your THEORIES were WRONG
ZERO OUT OF TWO ATTEMPTS WORKED USING YOUR SUGGESTIONS
Rated 0.5 out of 5
This comment was minimized by the moderator on the site
Hi Julia,
What kind of erro did you get?
To be mentioned, the formula provided in the post can only be applied in English system environment Excel. If you have Excel in a different language than English, please convert the formula from English to the language you are currently using.
You can translate the formula in this page: https://de.excel-translator.de/translator/
This comment was minimized by the moderator on the site
The formula at the top won't work until you save the file to your hard drive.
This comment was minimized by the moderator on the site
If you're using Excel Online. I found a solution for this issue.

You need to use 2 cells to make it work. As long as you have a cell that has the reference of a tab in its name, you can use FORMULATEXT() to turn that cells formula into a string and then extract the name that way. I can't imagine a scenario where you will want to reference another sheet and you wont already have a cell referencing that sheet for information on it, but you can always just make a blank/hidden (however you want to do it) cell that is just referencing the other sheet to set this formula up. In the below example, it is referencing cell B1 and cell B1 just contains =Sheet2!A1 as a reference to the sheet I want to name. If you use a name for a sheet with a space in it (example: Sheet 1) it would show up as (='Sheet 1'A1). I used an IF function and an ISERROR function to search if the string contains a space or not and two MID functions to extract the name of the sheet from both scenarios. If you update the name of the referenced sheet, cell B1 will change its formula and subsequently change the string and output the correct name each time.

=IF(ISERROR(FIND(" ",FORMULATEXT(B1))),MID(FORMULATEXT(B1),2,FIND("!",FORMULATEXT(B1))-2),MID(FORMULATEXT(B1),3,FIND("!",FORMULATEXT(B1))-4))
This comment was minimized by the moderator on the site
If you're using Excel Online. I found a solution for this issue.

You need to use 2 cells to make it work. As long as you have a cell that has the reference of a tab in its name, you can use FORMULATEXT() to turn that cells formula into a string and then extract the name that way. I can't imagine a scenario where you will want to reference another sheet and you wont already have a cell referencing that sheet for information on it, but you can always just make a blank/hidden (however you want to do it) cell that is just referencing the other sheet to set this formula up. In the below example, it is referencing cell B1 and cell B1 just contains =Sheet2!A1 as a reference to the sheet I want to name. If you use a name for a sheet with a space in it (example: Sheet 1) it would show up as (='Sheet 1'A1). I used an IF function and an ISERROR function to search if the string contains a space or not and two MID functions to extract the name of the sheet from both scenarios. If you update the name of the referenced sheet, cell B1 will change its formula and subsequently change the string and output the correct name each time.

=IF(ISERROR(FIND(" ",FORMULATEXT(B1))),MID(FORMULATEXT(B1),2,FIND("!",FORMULATEXT(B1))-2),MID(FORMULATEXT(B1),3,FIND("!",FORMULATEXT(B1))-4))
This comment was minimized by the moderator on the site
What I really want is to name some tabs using with the names on some cells from another sheet (same document of course). How can I do that?
This comment was minimized by the moderator on the site
Hi, I used the above suggestions but the first formula to reference the tab sheet name will not work on "excel" online. The second works, but the "Tabname" keeps showing the same tab name for all tabs on the workbook.
This comment was minimized by the moderator on the site
Hi,
Sorry we didn't test in excel online. Can't help you with that yet. Thank you for your comment.
This comment was minimized by the moderator on the site
hello, i am having trouble referencing a sheet name into a cell with online excel
This comment was minimized by the moderator on the site
Excellent, thanks! Per: Reference the current sheet tab name in cell with formula
This comment was minimized by the moderator on the site
Sorry, the comment line is wrong - should be Ctrl-Alt-Shift-F9
This comment was minimized by the moderator on the site
FYI, you need to have more than one sheet in your workbook for this to work. Otherwise, the formula will display the filename but no sheet name.
This comment was minimized by the moderator on the site
Good Day,
Thank you for your comment. I have tested the formula in a workbook that has only one sheet, but everything was running smoothly. The formula only displays the sheet name no matter how many worksheets existing in a workbook.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations