Тёмный

Google Sheets: Get List of all Sheet Names and Reference Cells on other sheets 

Drawbridge Finance
Подписаться 62 тыс.
Просмотров 12 тыс.
50% 1

Google sheets function to get a list of all sheet names. This sheet names formula automatically generates a list of the google sheet tabs in a worksheet. Programming the automatically updateing index(array) of all the sheets in the workbook. How to use reference a sheet name in google sheets using simple code. I show the coding on how to get data from a cell in another sheet in google sheets using the indirect function google sheets.
💰 Join the members only chat room: / drawbridgefinance
📈 Purchase Custom Spreadsheets: www.etsy.com/shop/drawbridgep...
💰 All my links: www.linktr.ee/drawbridgefinance
▬ BROKERAGES I USE ▬▬▬▬▬▬▬▬▬
►Interactive Brokers: www.interactivebrokers.com/mk... (Paid Link)
►Wealthsimple Trade for CANADIANS: Get the cash equivalent of two free stocks my.wealthsimple.com/app/publi...
▬ Discount to Seeking Alpha Only $99/annually ▬▬▬▬▬▬▬▬▬
►www.sahg6dtr.com/2RSPJ5/R74QP/
▬ CONTENTS ▬▬▬▬▬▬▬▬▬▬
0:00 Intro to Google Sheets
1:10 sheetNameArray function make a list of tab names
2:14 Reference a Cell to Refresh the list
3:02 Edit the Apps Script
3:46 Variable value skip sheets
4:12 Indirect Reference a cell in another sheet
5:18 Reference another cell relative to the array
▬ GREAT FINANCIAL BOOKS ▬▬▬▬▬▬▬▬▬
► Unlucky Investor’s Guide to Options Trading(Pre Order): amzn.to/3ETWQpa
► Think and Grow Rich: amzn.to/2t285sL
► The Wealthy Barber: amzn.to/2sW9XTM
► The Millionaire Next Door: amzn.to/2HB6DTk
► Rich Dad Poor Dad: amzn.to/2y5rD4S
► Getting Started in Options: amzn.to/2LEJzWe
► Smart Couples Finish Rich: amzn.to/2Eu1qgr
▬ Trading Computer ▬▬▬▬▬▬▬▬▬
► LG OLED 48” 4k TV/Monitor: amzn.to/31lJPH8
► Samsung 28” 4k Monitors: amzn.to/32QZL4r
▬ Live Stream Gear: Video ▬▬▬▬▬▬▬▬▬
► Atem Mini Pro: amzn.to/3zRhJjA
► Glide Gear Teleprompter: amzn.to/3FSYnNl
► Elgato Stream Deck XL: amzn.to/3FMYV7t
► Iphone Lightening HDMI Adapter: amzn.to/3qLoVKh
► Joby GorillaPod (Bendy Tripod): amzn.to/3JsQ5xQ
► Manfrotto Tripod with Video Head: amzn.to/3bi67tr
-- As an Amazon Associate I earn from qualifying purchases --
Subscribe to Drawbridge Finance on RU-vid: ru-vid.com...
My primary investment strategy is long term high yield dividend investing, index funds and reducing risk and exposure using options. I have been actively trading the stock market for over 25 years and have built most of my wealth by reinvesting my dividends and following my 14 Personal Rules of investing. I actively trade options on both the American and Canadian Stock exchanges using options strategies and buying and holding high yield dividend paying stocks.
I generate monthly income in two ways. Averaging more than an annual 7% return by collecting dividends on high yield dividend stocks that I hold. The second income stream comes from the selling of option premium and taking advantage of theta decay. I love trading strangles, Iron condors and diagonal spread for maximizing returns. Delta neutral strategies allows me to make money in both bull and bear markets and limits my risk. Both of these strategies are suitable for passive income and create a stable predictable safe passive monthly income.
Want to learn how to trade stocks and make more money? This channel is dedicated to increasing investment returns and building wealth by passively trading in the stock market. If you’re tired of poor performance then make sure you subscribe to Drawbridge Finance ru-vid.com... I produce weekly videos for the beginner trader and use simple explanations to learn how I buy and sell stocks for profit.
Let’s Get Rich Together
Levi Woods
Disclaimer: I am not a financial planner and am not offering investment advice. This is an opinion channel only and should not be taken as any form of financial advice. I receive a small commission from the purchase of any item from using the links listed above. There are financial risks involved in taking on any monetary transaction that I discuss in my videos.
#investing #googlesheets #LetsGetRichTogether
The function is entered in the Apps Script and looks like this:
(It's impossible to post this fully here so it's missing the "less than, angled bracket" in the forth line of code between "i" and "sheets.length") but here is the code:
function sheetNameArray() {
var out = new Array()
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets();
for (var i=6; i sheets.length ; i++) out.push( [ sheets[i].getName() ] )
return out
}

Опубликовано:

 

31 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@Prism684
@Prism684 15 дней назад
Amazing. Thank you
@DrawbridgeFinance
@DrawbridgeFinance 14 дней назад
Glad you liked it!
@jacksonhoneycutt
@jacksonhoneycutt 2 года назад
This was the final piece of the puzzle to compile stats for a tennis score sheet I was making. Thank you so much!
@jamesbaumann9691
@jamesbaumann9691 2 года назад
Thanks for the education, Levi. I've been using your sheets for the last couple years and they have helped tremendously. Look forward to the new sheet every month as a Patreon. Totally worth it just for the sheets alone.
@DrawbridgeFinance
@DrawbridgeFinance 2 года назад
Thanks James!
@patrickkeene702
@patrickkeene702 Год назад
Your script to reference the sheet names is amazing, thanks for being a life saver!
@DrawbridgeFinance
@DrawbridgeFinance Год назад
Glad it worked for you!
@mariovelasquez1265
@mariovelasquez1265 Месяц назад
Thank you very much for your help! really informative video!
@DrawbridgeFinance
@DrawbridgeFinance Месяц назад
Glad it was helpful!
@AnaLucia262
@AnaLucia262 Год назад
Thank you for sharing this! It will save me a ton of time!
@DrawbridgeFinance
@DrawbridgeFinance Год назад
Glad it helped.
@DrawbridgeFinance
@DrawbridgeFinance 2 года назад
💰 Join the members only chat room: www.patreon.com/drawbridgefinance 📈 Purchase Custom Spreadsheets: www.etsy.com/shop/drawbridgeprops 💰 All my links: www.linktr.ee/drawbridgefinance
@neatorinde1
@neatorinde1 Год назад
thank you so much for posting this. did exactly what I wanted, once I figured out I was missing the < portion of the formula that I cut a paste!!!
@DrawbridgeFinance
@DrawbridgeFinance Год назад
Glad it helped
@JorgealonsoDELGADO-kt3km
@JorgealonsoDELGADO-kt3km 3 месяца назад
Thank you so much man!!
@DrawbridgeFinance
@DrawbridgeFinance 3 месяца назад
Happy to help!
@jhonnyaguilar1128
@jhonnyaguilar1128 3 месяца назад
Thank your so much!!!!!
@DrawbridgeFinance
@DrawbridgeFinance 3 месяца назад
You're welcome!
@Harpeth_Internal
@Harpeth_Internal 10 месяцев назад
This is great! Is there a way to add a link next to the tab name that will take the user to the tab?
@irapture9809
@irapture9809 3 месяца назад
Is there a way to pull the names from a different Google Sheet?
@MrChumBuddy
@MrChumBuddy Год назад
this is exactly what I'm look for! Also, is there a way, let say to use an arrayformula to display the data so that I don't have to copy the same indirect formula into every cell? I tried to do it but it doesn't work...
@DrawbridgeFinance
@DrawbridgeFinance Год назад
I don’t know of a way but you can just pull the formula down to copy it into every cell in a column.
@0netom
@0netom 2 года назад
@5:47 in my experience =INDIRECT(B4 & "!$E$13") would also work; no need to fiddle with the single quotes. if you are just constructing a single cell reference or range, i don't think omitting the single quotes would make any difference, because the expression is still unambiguous. maybe if u name your sheets like cell references, like A1, A1!A2 or R1C1, it might be misunderstood, but i just tried and this still works: =INDIRECT("A1!A2!B1") if i have a sheet called "A1!A2"
@DrawbridgeFinance
@DrawbridgeFinance 2 года назад
Thanks for that!
@CNBarnes
@CNBarnes 2 года назад
This is EXACTLY what I was trying to do ... up to the 5:55 mark. In your demo, you "fix' the target cell. I am wanting to fix the sheetname. Specifically, in my spreadsheet in cell C3, I have the "sheetname(2)", which puts the name of the 2nd tab in my worksheet. Then down in cell A3, I have =indirect("'"&$C$1&"'!A3") This perfectly pulls in the data from cell A3 of the tab named in cell C1. Where this falls apart is when I try to copy A3 to cell A4. What I want in cell A4 is =indirect("'"&$C$1&"'!A4") . But what I am getting is *exactly* the same thing I put into C3. In other words, it's not "advancing" the cell reference. Is there an "opposite" to using the $ in an cell reference to FORCE it to be relative when copied?
@DrawbridgeFinance
@DrawbridgeFinance 2 года назад
I’m not sure how to get the exact formula to change as you requested but you can use indirect with ranges to pull multiple cells which may help in your situation. =indirect(C1&”!A1:A2”) is a single formula that will fill two cells at once and the range could be expanded: A1:A10 or massive amounts of data with no ending row: A1:F
@chem22691
@chem22691 7 месяцев назад
Hello. I've been using your script for about 5 months now. But for some unknown reason, it already stopped working. I'm getting an error message and couldn't seem to find out what's causing it. What could be possible reasons that the code stopped working all of a sudden? Thank you.
@DrawbridgeFinance
@DrawbridgeFinance 7 месяцев назад
With no change it just stopped? I would try adding a blank line of code in the script so it’s changed without actually changing it. Save. Then run again to see if it works again.
@ankitp7191
@ankitp7191 Год назад
Is it possible to have sheet names displayed horizontally instead of vertically?
@DrawbridgeFinance
@DrawbridgeFinance Год назад
Yes. Watch the short videos I post.
@benjaminhilsdon2238
@benjaminhilsdon2238 2 года назад
This function does not appear for me, do I need an extension?
@DrawbridgeFinance
@DrawbridgeFinance 2 года назад
This is not an extension. I walk through The entire process. You may just have to watch the video again as you likely missed a step.
@hxjdjdn6236
@hxjdjdn6236 7 дней назад
Is it possible to get the values as clickable links to jump to other tabs/cells?
@DrawbridgeFinance
@DrawbridgeFinance 6 дней назад
I wish that was possible also.
@hxjdjdn6236
@hxjdjdn6236 6 дней назад
@@DrawbridgeFinance i have managed to do it but it was not straight forward 😅
@DrawbridgeFinance
@DrawbridgeFinance 5 дней назад
@@hxjdjdn6236are you able to elaborate?
Далее
Rolling Options Record Keeper - Starting a new trade
25:03
Аминка ❤️
00:16
Просмотров 595 тыс.
How to List All Sheet Names In An Excel Workbook
3:18
Google Sheets | How to Reference Cells in Other Sheets
11:21