Przejdź do głównej zawartości

Jak odwołać się do nazwy karty w komórce w programie Excel?

Aby odwołać się do bieżącej nazwy karty arkusza w komórce w programie Excel, możesz to zrobić za pomocą formuły lub funkcji zdefiniowanej przez użytkownika. Ten samouczek poprowadzi Cię w następujący sposób.

Odwołaj się do nazwy bieżącej karty arkusza w komórce z formułą
Odwołaj się do nazwy karty bieżącego arkusza w komórce za pomocą funkcji definiowanej przez użytkownika
Z łatwością odwołaj się do bieżącej nazwy karty arkusza w komórce za pomocą Kutools for Excel


Odwołaj się do nazwy bieżącej karty arkusza w komórce z formułą

Wykonaj następujące czynności, aby odwołać się do nazwy karty aktywnego arkusza w określonej komórce w programie Excel.

1. Wybierz pustą komórkę, skopiuj i wklej wzór = ŚRODEK (KOMÓRKA ("nazwa pliku", A1), ZNAJDŹ ("]", KOMÓRKA ("nazwa pliku", A1)) + 1,255) do paska formuły i naciśnij Wchodzę klucz. Zobacz zrzut ekranu:

Teraz w komórce znajduje się odwołanie do nazwy karty arkusza.

Z łatwością wstaw nazwę karty w określonej komórce, nagłówku lub stopce w arkuszu:

Połączenia Kutools dla programu Excel's Wstaw informacje ze skoroszytu narzędzie pomaga łatwo wstawić nazwę aktywnej karty do określonej komórki. Poza tym możesz odwoływać się do nazwy skoroszytu, ścieżki skoroszytu, nazwy użytkownika itp. Do komórki, nagłówka lub stopki arkusza, zgodnie z potrzebami. Kliknij po szczegóły.
Pobierz teraz Kutools dla programu Excel! (30-dniowy bezpłatny szlak)


Odwołaj się do nazwy karty bieżącego arkusza w komórce za pomocą funkcji definiowanej przez użytkownika

Oprócz powyższej metody możesz odwołać się do nazwy karty arkusza w komórce za pomocą funkcji definiowanej przez użytkownika.

1. naciśnij inny + F11 otworzyć Microsoft Visual Basic for Applications okno.

2. w Microsoft Visual Basic for Applications okno, kliknij wstawka > Moduł. Zobacz zrzut ekranu:

3. Skopiuj i wklej poniższy kod do okna Kod. A następnie naciśnij inny + Q klucze do zamknięcia Microsoft Visual Basic for Applications okno.

Kod VBA: nazwa karty odniesienia

Function TabName()
  TabName = ActiveSheet.Name
End Function

4. Przejdź do komórki, do której chcesz się odwołać, bieżąca nazwa karty arkusza, wprowadź = TabName () a następnie naciśnij Wchodzę klucz. Następnie nazwa bieżącej karty arkusza zostanie wyświetlona w komórce.


Odwołaj się do bieżącej nazwy karty arkusza w komórce za pomocą Kutools for Excel

Z Wstaw informacje ze skoroszytu użyteczność Kutools dla programu Excel, możesz łatwo odwołać się do nazwy karty arkusza w dowolnej komórce. Wykonaj następujące czynności.

1. kliknij Kutools Plus > skoroszyt > Wstaw informacje ze skoroszytu. Zobacz zrzut ekranu:

2. w Wstaw informacje ze skoroszytu okno dialogowe, wybierz Nazwa arkusza Informacja sekcji i w Wstaw w sekcję, wybierz łodzie opcję, a następnie wybierz pustą komórkę do zlokalizowania nazwy arkusza, a na koniec kliknij OK przycisk.

Możesz zobaczyć, że bieżąca nazwa arkusza jest powiązana z wybraną komórką. Zobacz zrzut ekranu:

  Jeśli chcesz mieć bezpłatną wersję próbną (30 dni) tego narzędzia, kliknij, aby go pobrać, a następnie przejdź do wykonania operacji zgodnie z powyższymi krokami.


Demo: Z łatwością odwołaj się do bieżącej nazwy karty arkusza w komórce za pomocą Kutools for Excel

Kutools dla programu Excel zawiera ponad 300 przydatnych narzędzi programu Excel. Bezpłatne wypróbowanie bez ograniczeń w ciągu 30 dni. Pobierz bezpłatną wersję próbną już teraz!

Najlepsze narzędzia biurowe

🤖 Pomocnik AI Kutools: Zrewolucjonizuj analizę danych w oparciu o: Inteligentne wykonanie   |  Wygeneruj kod  |  Twórz niestandardowe formuły  |  Analizuj dane i generuj wykresy  |  Wywołaj funkcje Kutools...
Popularne funkcje: Znajdź, wyróżnij lub zidentyfikuj duplikaty   |  Usuń puste wiersze   |  Łącz kolumny lub komórki bez utraty danych   |   Okrągły bez wzoru ...
Super wyszukiwanie: Wiele kryteriów VLookup    Wiele wartości VLookup  |   Przeglądanie pionowe na wielu arkuszach   |   Wyszukiwanie rozmyte ....
Zaawansowana lista rozwijana: Szybko twórz listę rozwijaną   |  Zależna lista rozwijana   |  Lista rozwijana wielokrotnego wyboru ....
Menedżer kolumn: Dodaj określoną liczbę kolumn  |  Przesuń kolumny  |  Przełącz stan widoczności ukrytych kolumn  |  Porównaj zakresy i kolumny ...
Polecane funkcje: Fokus siatki   |  Widok projektu   |   Duży pasek formuły    Menedżer skoroszytów i arkuszy   |  Biblioteka zasobów (Automatyczny tekst)   |  Selektor dat   |  Połącz arkusze   |  Szyfruj/odszyfruj komórki    Wysyłaj e-maile według listy   |  Super filtr   |   Specjalny filtr (filtruj pogrubienie/kursywa/przekreślenie...) ...
15 najlepszych zestawów narzędzi12 Tekst Tools (Dodaj tekst, Usuń znaki, ...)   |   50 + Wykres rodzaje (Wykres Gantta, ...)   |   40+ Praktyczne Wzory (Oblicz wiek na podstawie urodzin, ...)   |   19 Wprowadzenie Tools (Wstaw kod QR, Wstaw obraz ze ścieżki, ...)   |   12 Konwersja Tools (Liczby na słowa, Przeliczanie walut, ...)   |   7 Połącz i podziel Tools (Zaawansowane wiersze łączenia, Podział komórki, ...)   |   ... i więcej

Zwiększ swoje umiejętności Excela dzięki Kutools for Excel i doświadcz wydajności jak nigdy dotąd. Kutools dla programu Excel oferuje ponad 300 zaawansowanych funkcji zwiększających produktywność i oszczędzających czas.  Kliknij tutaj, aby uzyskać funkcję, której najbardziej potrzebujesz...

Opis


Karta Office wprowadza interfejs z zakładkami do pakietu Office i znacznie ułatwia pracę

  • Włącz edycję i czytanie na kartach w programach Word, Excel, PowerPoint, Publisher, Access, Visio i Project.
  • Otwieraj i twórz wiele dokumentów w nowych kartach tego samego okna, a nie w nowych oknach.
  • Zwiększa produktywność o 50% i redukuje setki kliknięć myszką każdego dnia!
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