Excel - "Smart" Sheet Names (I bet you've never seen this before)

Поділитися
Вставка
  • Опубліковано 26 сер 2024
  • Learn how to have sheet names change when selected or deselected. This uses a simple lookup function and a pair of event-driven macros. Code can be copied from the sample file (link below).
    File download link:
    www.bcti.com//...

КОМЕНТАРІ • 98

  • @GuillermoPalchik
    @GuillermoPalchik 5 місяців тому +3

    Every single video you post is awesome.

    • @bcti-bcti
      @bcti-bcti  5 місяців тому

      Thank you so much for saying so. I have a big smile! Cheers.

  • @ashleymoller5951
    @ashleymoller5951 7 місяців тому +5

    So Simple - so very useful! Going to add this to half a dozen workbooks now.

  • @maciejkopczynski55
    @maciejkopczynski55 7 місяців тому +4

    Absolutely peak scenario! I am simply amazed! Magnificent work - your content is so unique!

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +2

      Thanks for watching. I try to show things that haven't been shown by 1,000 other publishers.

  • @SndfOmar
    @SndfOmar 4 місяці тому

    Wow! Absolutely 💯 AWESOME! You are not only creative, but also generous dude! Just thinking of this idea!

    • @bcti-bcti
      @bcti-bcti  4 місяці тому +1

      Thanks. It’s a weird and mostly useless idea, but it sparks creativity for other things. Thanks for watching.

  • @querrythis
    @querrythis 4 місяці тому

    Indeed, never seen this before. Pretty slick.

  • @marrzeus6205
    @marrzeus6205 4 місяці тому

    This is some kind of black magic f...kery! JK. So simple and yet so elegant. I'm absoluetly loving this channel! The power query series has been incredibly helpful, thank you.

    • @bcti-bcti
      @bcti-bcti  4 місяці тому

      Thanks so much for taking the time to watch and respond. Cheers.

  • @rwfrench66GenX
    @rwfrench66GenX 6 місяців тому +2

    This is a cool trick. When I create a workbook with more than 3 tabs I create a sheet with an index and links that jump to cell A1 on each sheet. If I’m using cut off names I have a column with the full name on the Index sheet.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому +1

      That is a much better idea. This was all just for an interesting bit of fun.

    • @rwfrench66GenX
      @rwfrench66GenX 6 місяців тому

      @@bcti-bcti I think it’s cool it changes the name automatically! I started using VBA back in Excel 98 and using a macro like this is very cool.

  • @johanverkerk3260
    @johanverkerk3260 5 місяців тому

    Great job, I made it without any VBA experience and it works great, also helped other people.

  • @salahaldeen7924
    @salahaldeen7924 3 місяці тому +1

    insightful vid, Thank you for your time

    • @bcti-bcti
      @bcti-bcti  3 місяці тому

      Thank you for your time and thanks for watching

  • @brendanmoran9313
    @brendanmoran9313 6 місяців тому +2

    I’m afraid I disagree with all the comments based on the two click rule.
    It should only take you two clicks to get from any one sheet to any other sheet - regardless of size.
    You should have your first sheet as a Main Menu with internal navigation to all sheets.
    Each sheet should also be linked back to the Main Menu.
    Two clicks take you from any sheet to any other sheet.
    This avoids infinite scrolling.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      You are absolutely right. I couldn’t agree more. This was merely an exercise in creativity and brining the concept of event-driven macros to people’s attention. Thanks for taking the time to watch and comment.

  • @iankr
    @iankr 7 місяців тому +1

    Boy, this is genius! Why did I not think of this?! 😅
    Many thanks. I can think of a few workbooks I use that would benefit from this. 👌

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +2

      Fantastic!!! So glad to hear.

  • @joyflowmonger248
    @joyflowmonger248 6 місяців тому +1

    Extraordinarily creative! I love it, so much! Thank you for publicizing your discovery!

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Thank you for wathcing!!!

  • @michaelt312
    @michaelt312 7 місяців тому +2

    This is incredibly useful. Too bad a lot of businesses don't allow Macro. But for personal use, absolutely!!

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +3

      I agree. Macros are incredibly useful. Good thing businesses aren't putting the "smack down" on Power Query.

    • @michaelt312
      @michaelt312 7 місяців тому

      @@bcti-bcti, agree there. That's where I live. But I did recently discover the CELL function. Nesting MID, CELL and FIND has been useful.

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +2

      Knowledge is POWER!! Especially when using Excel.@@michaelt312

  • @tb9359
    @tb9359 6 місяців тому +1

    This is supercool. I am already thinking how I can use this at work for a couple of workbooks. :) Thanks. Great idea!!

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Thanks so much for watching!!!

  • @robertw236
    @robertw236 6 місяців тому +1

    Awesome Sauce. Will be using as standard. Thanks for sharing.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Thanks for watching!!!

  • @777tmack
    @777tmack 3 місяці тому

    What a find! An immediate subscribe and bell icon!

    • @bcti-bcti
      @bcti-bcti  3 місяці тому

      Thank you so much!!!!

  • @LosoIAm
    @LosoIAm 6 місяців тому

    Brilliantly awesome, thank you!

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      So glad you enjoyed it. Thanks for watching.

  • @GuruDanny
    @GuruDanny 6 місяців тому

    Simple but powerful - Thanks for sharing

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Thank YOU for watching!

  • @T0NYD1CK
    @T0NYD1CK 6 місяців тому

    As soon as you described it my immediate thought was that would be so easy to do.
    Then I wondered why I had never thought of actually doing it!
    Very clever idea. Thank you. I know a spreadsheet where this idea will be implemented later today.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      I am amazed at the number of times I've had those, "Why didn't I think of that?" moments. Thanks for watching.

  • @bryanlane31
    @bryanlane31 6 місяців тому +1

    The only “bad” thing about this for me is that I retire on March 1st and won’t have the need to use it after that! I have always been a fan of tricks like this all the way back to Lotus 1-2-3.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому +2

      Best of luck in your retirement. I'm sure there's a part of all this that you'll miss. Cheers.

  • @cablegurl328
    @cablegurl328 6 місяців тому

    I will subscribe and give you a thumbs up because this is the best! I adore it and want to use this approach into a couple projects.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Thank you so much for the nice words and your subscription. It's always nice to see the number go up!!! Thanks for watching.

  • @barrywood7741
    @barrywood7741 6 місяців тому +1

    My sheet names are codes which are C01 through to C30. I have created a list C01 to C30 in column A, and a list of the different names in column B. Copied and pasted your code and altered slightly the row numbers as suggested. Mostly it works but on several nothing changes and on others it shows the names, not the codes. I'll do some debugging here but very odd. Liked the idea very much and once I've sussed this issue out I will use in many of my spreadsheets.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      If you can post your file so that I can download it, I'd be happy to take a look and see what I can figure out. Thanks for watching.

    • @barrywood7741
      @barrywood7741 6 місяців тому

      How would I post this file?@@bcti-bcti

    • @barrywood7741
      @barrywood7741 6 місяців тому

      I thought I answered, but can't see my comment. It was, how can I send you my spreadsheet?

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      You can send it as an email to training@bcti.com @@barrywood7741

  • @willbedeadsoon
    @willbedeadsoon 6 місяців тому

    Although I usually jûst right click on the sheet navigâtion tab, I think your trick is amazing. Code is isimple, but the idea is not so obvious.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Yeah, the obvious is sometimes the most elusive.

  • @mightydrew1970
    @mightydrew1970 7 місяців тому +13

    Or you could leave the sheet names and just right-click on the tab navigation buttons to get a proper list... I'm a fan of vba and have been for years, but as soon as you introduce it (in a corporate environment) you're in for a world of hurt

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +3

      Agreed. I really love the “right-click” option for the quick list. The point of this was just to show something creative. Thanks for watching.

    • @robinherrick2177
      @robinherrick2177 6 місяців тому +2

      I thought exactly the same. This is a terrible idea. Creativity isn't solving problems that don't exist.

    • @whoslacks
      @whoslacks 6 місяців тому

      100% on the corporate world of hurt 😂

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Yes, quite likely.@@whoslacks

    • @bcti-bcti
      @bcti-bcti  6 місяців тому +1

      I agree that it's not exactly a Nobel Prize winning idea. It was just an idea that popped into my head one day and I wanted to see if it could be done. The idea may, however, spark someone else's imagination in solving an actual problem. Thanks for watching.

  • @LarsV62
    @LarsV62 6 місяців тому

    This trick has a potential major flaw of the hidden list is subject to changes in the future. For that, it would be better to format the list as a table and refer to the column names directly in the formulas. Any new or deleted rows in the list works then not require modifying the code, and moving the table itself by inserting leading rows or columns would not matter to the formulas.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      One would think that using a proper Excel Data Table would be a better strategy, but I think you'll find, with a bit of testing, that this introduces an entirely new set of problems and shortcomings.
      My guess is that using a formula that discovers the length (i.e., height) of the table would be needed. Like another MATCH function that searches the entire column (A:A) for something that will never be found (99^99), and performs this as an Option 1 (closest without going over) type of search.
      Thanks tor contributing to the discussion.

  •  6 місяців тому +1

    Thanks Great example.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому +1

      Than you for taking the time to watch!!!

  • @alamiralshafay
    @alamiralshafay 7 місяців тому +1

    Very Nice Idea

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +1

      Thanks. And thank you for taking the time to watch.

  • @alexrosen8762
    @alexrosen8762 6 місяців тому

    Fantastic tutorial 👌

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      THank you so much. And thanks for watching.

  • @wmfield152
    @wmfield152 6 місяців тому

    Super!

  • @Malakawaka
    @Malakawaka 6 місяців тому

    Nice!

  • @gregorytaylor2749
    @gregorytaylor2749 6 місяців тому

    Genius!!

  • @redhaakhund1271
    @redhaakhund1271 7 місяців тому +1

    Excellent 👍👍👍👍👍

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +1

      Thanks for taking the time to watch.

  • @harikc872
    @harikc872 6 місяців тому

    Great Brain Job....excellent....

  • @hankgrimes1806
    @hankgrimes1806 7 місяців тому +1

    How, exactly, did you get the full sheet name to appear in the first couple of rows of each sheet? Is this done with the VBA code you shared or, is there another step needed to accomplish this? I like keeping sheet names as short as possible for the sake of clearer formula writing, so this technique would really come in handy, especially if I can get the full sheet name to display in the 2nd or 3rd row as a title.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      You can use the SHEET function to return the sheet's number in the workbook. ex: =SHEET()
      This could then be used in an INDEX function to return a word from an existing list. ex: =INDEX(List!A1:A100, SHEET())
      That's just an idea off the top of my head. I'm sure there's a lot of creative ways to use this.

    • @hankgrimes1806
      @hankgrimes1806 6 місяців тому +1

      Thank you for your reply and, like so many of my fellow followers of your work, I think you're amazing, and I will definitely start "retro-fitting" my workbook with this feature! 🙏@@bcti-bcti

  • @7bettyblu
    @7bettyblu 7 місяців тому

    No doubt about it, this is a great. Would be perfect if I can refer to a Table Col instead of a cell range so new sheet names can be automatically populate without having to modify the code repeatedly. How do we specify Table Col in "Visual Basic" code?

    • @bcti-bcti
      @bcti-bcti  7 місяців тому

      I agree, but you could just refer to either the entire column (ex: “List!A:A”), or just set the range to something you don’t ever expect to reach (ex: “List!A1:A1000”). Thanks for watching.

  • @Dexter101x
    @Dexter101x 7 місяців тому +1

    Cool

  • @brendanmoran9313
    @brendanmoran9313 6 місяців тому +1

    …and no macros required. File can be saved as xlsx.

    • @bcti-bcti
      @bcti-bcti  3 місяці тому

      Unfortunately, not. But an alternative might be an .XLSB file (if .XLSM files are blocked by your organization.)

  • @JJ_TheGreat
    @JJ_TheGreat 6 місяців тому

    2:26 And wouldn't it also help if we used Power Query to get a list of the "tab"/sheet names?

    • @bcti-bcti
      @bcti-bcti  6 місяців тому +1

      There you go! Now you’re getting creative!!!

  • @user-PHB
    @user-PHB 6 місяців тому

    Is there a kind of MouseOver event, so you could change the tab name before even clicking it? Would be even cooler.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Unfortunately, no. I looked into that as I thought it would be neater to have the tab name changed just by hovering over it. Excel has no mechanism to detect the presence of a mouse pointer when hovering over a sheet tab. Thanks for watching.

  • @Nonplused1
    @Nonplused1 6 місяців тому

    That's great unless you have macros that refer to sheet names. I suppose you can use the sheet objects instead, but who does that?

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Yeah, it has it's issues. It's a just for a bit of fun (but limited in its practicality.)

  • @kevinkohut5096
    @kevinkohut5096 6 місяців тому

    This will break any formulas that reference the sheet name

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      Yes, you are absolutely correct. It's just a neat thing, provided you don't have that sort of dependency. Thanks for watching.

  • @OnlyNuBeingSoule
    @OnlyNuBeingSoule 5 місяців тому

    Didn't work. Guess it's for the desktop version of excel and not the 365 version of excel 🤷🏽‍♀️

    • @bcti-bcti
      @bcti-bcti  5 місяців тому

      I don’t believe there is any reason why this wouldn’t work in non-365 environments. Double-check your efforts. Thanks for watching.

  • @ericxls93
    @ericxls93 6 місяців тому

    Not sure, love the idea, but the second you click on the tab, you have a massive title with the estate name, why bother?

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      THis was all just an exercise in creativity. I can't say it's something I'd use often, either.

  • @rdatta
    @rdatta 6 місяців тому

    Be very careful as this can mess up formulas that aggregate across sheets by changing sheets names. Esp if the workbook is used and edited by multiple users concurrently. This looks more like a tool in search of a problem. You could always put an index page with links to each sheet and whatever meta data you want as the 1st page sheet in a book. Ctrl+Left click jumps to that sheet. Will not mess with formulas.

    • @bcti-bcti
      @bcti-bcti  6 місяців тому

      I agree. This was just for fun.

  • @thinkIndependent2024
    @thinkIndependent2024 6 місяців тому

    Logic is never " Snakeoil" skills have utility = Value as in "valuable"

  • @RichardJones73
    @RichardJones73 7 місяців тому

    Yes you are a genius and yes it is worthless lol. No I am just kidding, this is a useful idea

    • @bcti-bcti
      @bcti-bcti  7 місяців тому +3

      HA! Yes, I recognize the value of this feature, but it is an interesting way to learn about event-driven macros (for those who are unfamiliar.)

    • @JJ_TheGreat
      @JJ_TheGreat 6 місяців тому +1

      ​@@bcti-bctiYrs, this video was quite interesting - especially for me who is a VBA newbie... It is interesting to see what can be done with it!