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

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 2. 08. 2024
  • 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 CZcams: czcams.com/users/Drawbridgef...
    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 czcams.com/users/Drawbridgef... 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
    }

Komentáƙe • 36

  • @Prism684
    @Prism684 Pƙed 17 dny +1

    Amazing. Thank you

  • @jacksonhoneycutt
    @jacksonhoneycutt Pƙed 2 lety +1

    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 Pƙed 2 lety +1

    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.

  • @patrickkeene702
    @patrickkeene702 Pƙed rokem +2

    Your script to reference the sheet names is amazing, thanks for being a life saver!

  • @mariovelasquez1265
    @mariovelasquez1265 Pƙed měsĂ­cem

    Thank you very much for your help! really informative video!

  • @AnaLucia262
    @AnaLucia262 Pƙed rokem +1

    Thank you for sharing this! It will save me a ton of time!

  • @neatorinde1
    @neatorinde1 Pƙed rokem +1

    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  Pƙed 2 lety +1

    💰 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

  • @JorgealonsoDELGADO-kt3km
    @JorgealonsoDELGADO-kt3km Pƙed 3 měsĂ­ci

    Thank you so much man!!

  • @jhonnyaguilar1128
    @jhonnyaguilar1128 Pƙed 3 měsĂ­ci +1

    Thank your so much!!!!!

  • @Harpeth_Internal
    @Harpeth_Internal Pƙed 10 měsĂ­ci +1

    This is great! Is there a way to add a link next to the tab name that will take the user to the tab?

  • @0netom
    @0netom Pƙed 2 lety +1

    @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"

  • @irapture9809
    @irapture9809 Pƙed 3 měsĂ­ci +1

    Is there a way to pull the names from a different Google Sheet?

  • @MrChumBuddy
    @MrChumBuddy Pƙed rokem +1

    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  Pƙed rokem

      I don’t know of a way but you can just pull the formula down to copy it into every cell in a column.

  • @CNBarnes
    @CNBarnes Pƙed 2 lety

    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  Pƙed 2 lety

      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

  • @ankitp7191
    @ankitp7191 Pƙed rokem

    Is it possible to have sheet names displayed horizontally instead of vertically?

  • @benjaminhilsdon2238
    @benjaminhilsdon2238 Pƙed 2 lety

    This function does not appear for me, do I need an extension?

    • @DrawbridgeFinance
      @DrawbridgeFinance  Pƙed 2 lety

      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.

  • @chem22691
    @chem22691 Pƙed 7 měsĂ­ci

    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  Pƙed 7 měsĂ­ci

      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.

  • @hxjdjdn6236
    @hxjdjdn6236 Pƙed 9 dny

    Is it possible to get the values as clickable links to jump to other tabs/cells?

    • @DrawbridgeFinance
      @DrawbridgeFinance  Pƙed 8 dny

      I wish that was possible also.

    • @hxjdjdn6236
      @hxjdjdn6236 Pƙed 8 dny

      @@DrawbridgeFinance i have managed to do it but it was not straight forward 😅

    • @DrawbridgeFinance
      @DrawbridgeFinance  Pƙed 7 dny

      @@hxjdjdn6236are you able to elaborate?