मुख्य सामग्री पर जाएं

Google शीट में शीट के नामों की सूची कैसे प्राप्त करें?

लेखक: ज़ियाओयांग अंतिम संशोधित: 2020-05-19

इस लेख में, मैं वर्तमान शीट नाम का नाम या Google शीट में शीट नामों की सूची प्राप्त करने के लिए कुछ तरीकों का परिचय दूंगा।

स्क्रिप्ट के साथ Goolge शीट में वर्तमान शीट का नाम प्राप्त करें

स्क्रिप्ट के साथ Google शीट में शीट नामों की सूची प्राप्त करें


स्क्रिप्ट के साथ Goolge शीट में वर्तमान शीट का नाम प्राप्त करें

Google शीट में वर्तमान शीट नाम प्राप्त करने के लिए, निम्नलिखित सरल स्क्रिप्ट मैन्युअल रूप से नाम दर्ज किए बिना आपकी सहायता कर सकती है, कृपया ऐसा करें:

1। क्लिक करें टूल्स > पटकथा संपादक, स्क्रीनशॉट देखें:

दस्तावेज़ को शीट का नाम 1 प्राप्त करें

2. खुली हुई प्रोजेक्ट विंडो में, नीचे दिए गए स्क्रिप्ट कोड को कॉपी करें और रिक्त स्थान पर पेस्ट करें कोड विंडो, स्क्रीनशॉट देखें:

function sheetName() {
  return SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getName();
}

दस्तावेज़ को शीट का नाम 2 प्राप्त करें

3. फिर कोड विंडो सहेजें, और उस शीट पर वापस जाएं जिसका नाम आप प्राप्त करना चाहते हैं, फिर यह सूत्र दर्ज करें: =sheetname() एक सेल में, और दबाएँ दर्ज कुंजी, शीट का नाम तुरंत प्रदर्शित किया जाएगा, स्क्रीनशॉट देखें:

दस्तावेज़ को शीट का नाम 3 प्राप्त करें


स्क्रिप्ट के साथ Google शीट में शीट नामों की सूची प्राप्त करें

यदि आप Google शीट में सभी शीट के नाम प्राप्त करना चाहते हैं, तो यहां एक और स्क्रिप्ट है जो आपकी मदद कर सकती है, कृपया ऐसा करें:

1। क्लिक करें टूल्स > लिपि संपादक को प्रोजेक्ट विंडो पर जाने के लिए, और फिर नीचे दिए गए स्क्रिप्ट कोड को कॉपी करके रिक्त स्थान पर पेस्ट करें कोड विंडो, स्क्रीनशॉट देखें:

function sheetnames() { 
  var out = new Array()
  var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets();
  for (var i=0 ; i<sheets.length ; i++) out.push( [ sheets[i].getName() ] )
  return out  
}

दस्तावेज़ को शीट का नाम 4 प्राप्त करें

2. फिर कोड विंडो सहेजें, और उस शीट पर वापस जाएं जहां आप सभी शीट नाम प्राप्त करना चाहते हैं, फिर यह सूत्र दर्ज करें: =sheetnames() एक सेल में, और दबाएँ दर्ज कुंजी, Google शीट में सभी शीट नाम दिखाए गए स्क्रीनशॉट के अनुसार सूचीबद्ध किए जाएंगे:

दस्तावेज़ को शीट का नाम 5 प्राप्त करें


एक्सेल वर्कबुक में हाइपरलिंक या बटन का उपयोग करके सभी शीट नामों को सूचीबद्ध करें और उनके बीच नेविगेट करें:

- एक्सेल के लिए कुटूल's शीट नामों की सूची बनाएं उपयोगिता, आप हाइपरलिंक या मैक्रो बटन के साथ एक नई शीट में सभी वर्कशीट नामों को तुरंत सूचीबद्ध कर सकते हैं, फिर आप अपनी आवश्यकता के अनुसार उनके बीच नेविगेट कर सकते हैं।

एक्सेल के लिए कुटूल: 300 से अधिक उपयोगी एक्सेल ऐड-इन्स के साथ, 30 दिनों में बिना किसी सीमा के आज़माने के लिए निःशुल्क। अभी डाउनलोड करें और निःशुल्क परीक्षण करें!

सर्वोत्तम कार्यालय उत्पादकता उपकरण

🤖 कुटूल्स एआई सहयोगी: निम्न के आधार पर डेटा विश्लेषण में क्रांति लाएं: बुद्धिमान निष्पादन   |  कोड जनरेट करें  |  कस्टम फ़ॉर्मूले बनाएं  |  डेटा का विश्लेषण करें और चार्ट बनाएं  |  कुटूल फ़ंक्शंस का आह्वान करें...
लोकप्रिय सुविधाएँ: डुप्लिकेट ढूंढें, हाइलाइट करें या पहचानें   |  रिक्त पंक्तियाँ हटाएँ   |  डेटा खोए बिना कॉलम या सेल को संयोजित करें   |   फॉर्मूला के बिना गोल ...
सुपर लुकअप: एकाधिक मानदंड VLookup    मल्टीपल वैल्यू वीलुकअप  |   अनेक शीटों में VLookup   |   फजी लुकअप ....
उन्नत ड्रॉप-डाउन सूची: शीघ्रता से ड्रॉप डाउन सूची बनाएं   |  आश्रित ड्रॉप डाउन सूची   |  बहु-चयन ड्रॉप डाउन सूची ....
स्तम्भ प्रबंधक: कॉलमों की एक विशिष्ट संख्या जोड़ें  |  कॉलम ले जाएँ  |  छिपे हुए कॉलम की दृश्यता स्थिति टॉगल करें  |  रेंज और कॉलम की तुलना करें ...
फीचर्ड फीचर्स: ग्रिड फोकस   |  डिजाइन देखें   |   बड़ा फॉर्मूला बार    कार्यपुस्तिका एवं शीट प्रबंधक   |  संसाधन लाइब्रेरी (ऑटो टेक्स्ट)   |  खजूर बीनने वाला   |  कार्यपत्रकों को संयोजित करें   |  एन्क्रिप्ट/डिक्रिप्ट सेल    सूची के अनुसार ईमेल भेजें   |  सुपर फ़िल्टर   |   विशेष फ़िल्टर (फ़िल्टर बोल्ड/इटैलिक/स्ट्राइकथ्रू...) ...
शीर्ष 15 टूलसेट12 टेक्स्ट टूल्स (पाठ जोड़ें, अक्षर हटाएँ, ...)   |   50 + चार्ट प्रकार (गैन्ट चार्ट, ...)   |   40+ प्रैक्टिकल सूत्र (जन्मदिन के आधार पर आयु की गणना करें, ...)   |   19 निवेशन टूल्स (QR कोड डालें, पथ से चित्र सम्मिलित करें, ...)   |   12 रूपांतरण टूल्स (शब्दों को संख्याएँ, मुद्रा रूपांतरण, ...)   |   7 विलय और विभाजन टूल्स (उन्नत संयोजन पंक्तियाँ, विभाजन कोशिकाओं, ...)   |   ... और अधिक

एक्सेल के लिए कुटूल के साथ अपने एक्सेल कौशल को सुपरचार्ज करें, और पहले जैसी दक्षता का अनुभव करें। एक्सेल के लिए कुटूल उत्पादकता बढ़ाने और समय बचाने के लिए 300 से अधिक उन्नत सुविधाएँ प्रदान करता है।  वह सुविधा प्राप्त करने के लिए यहां क्लिक करें जिसकी आपको सबसे अधिक आवश्यकता है...

Description


ऑफिस टैब ऑफिस में टैब्ड इंटरफ़ेस लाता है, और आपके काम को बहुत आसान बनाता है

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks :)))
This comment was minimized by the moderator on the site
This script in Google Sheets works great! However, sheetnames() doesn't seem to update when new sheets are added or sheets are renamed. Is there a way to make it refresh?
This comment was minimized by the moderator on the site
why is it not working for me?i have copied the scripts and they seem so run with no errors, but when i go to google sheets, it dosent show the function "sheetsname"
This comment was minimized by the moderator on the site
Save the script and run
This comment was minimized by the moderator on the site
How to export all sheet names in open excel file to Google Sheet? Thank you
This comment was minimized by the moderator on the site
How to export all sheet names in open excel file to Google Sheet?
This comment was minimized by the moderator on the site
works for me! Thanks!!!
This comment was minimized by the moderator on the site
TypeError: Cannot read property 'getSheets' of null (riadok 3, súbor Kód)
This comment was minimized by the moderator on the site
Sorry.I did something wrong.It is already working fine.
This comment was minimized by the moderator on the site
Hey, may i know what is your mistake? i have the same error
This comment was minimized by the moderator on the site
Hi.
Of course You can.
I created a script using the Google Script Manager (script.google.com) and thought it would work automatically on all sheets in my google drive, but that wasn't true.Probably a script created throught Google Script Manager, not throught sheet, is not linked to a sheet.I had to create a script via menu in the top bar in the open Google Sheets "Tools / Script Editor" and the function I created works only in that given sheet.Please write if this solved your problem.
:)
This comment was minimized by the moderator on the site
Hello,


Ive registered an account just to say, ive found a way to automatically update this function, its a cheat really.



In cell C!, ive put a checkbox.

At my header of sheet names, I put this code.



=if(C1=true,sheetnames(),)


Then, when we edit a tab name or create a new one, we uncheck the box and check it again and it is done, not perfect, but better than deleting the cell and re-pasting.


Thank you


Charlie.

EDIT , i tried inserting picture, but it seems to disappear.
This comment was minimized by the moderator on the site
For everyone wondering how to get the sheet index to update automatically, you need to be able to call the function and then Re-enter the formula into where you want the index to be kept.
In my case I have a dedicated Index Sheet, and after most of my functions I call 'sheetnames()' and then just Re-enter the formula in the specific cell.
This comment was minimized by the moderator on the site
sheetnames();
ss.getSheetByName('Index').getRange('A1').setFormula('=sheetnames()');
This comment was minimized by the moderator on the site
What's ss?
This comment was minimized by the moderator on the site
Hi Carlos,

var ss = SpreadsheetApp.getActive();

Hope that helps.
This comment was minimized by the moderator on the site
me pueden ayudar para crear una macro en GAS que abra una nueva hoja (sheet), luego la renombre y luego se puede escribir dentro de esta hoja nueva?
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