+ Reply to Thread
Results 1 to 7 of 7

How to make sheet name as dynamic in formula?

  1. #1
    Forum Contributor
    Join Date
    09-14-2011
    Location
    Nepal
    MS-Off Ver
    Office 2021
    Posts
    117

    Thumbs up How to make sheet name as dynamic in formula?

    Hi there,

    I have a hundreds of sheet name: 1,2,3,4,5...so on. I have to copy from all sheets into combine sheet. How to make sheet name dynamic in formula for drag down? Your suggestion is highly appreciated. Sample file is attached.

    Regards,
    Indra
    Attached Files Attached Files
    Last edited by Indra Rai; 06-23-2021 at 10:24 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to make sheet name as dynamic in formula?

    The simplest answer is, in B2, copied down:

    =IFERROR(INDIRECT("'"&$A2&"'!B2"),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to make sheet name as dynamic in formula?

    But, if you want to pick up B2, C2, etc, etc, from all sheets using a draggable formula, then use:

    =IFERROR(INDIRECT("'"&$A2&"'!"&ADDRESS(2,COLUMNS($A:B),4)),"")
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to make sheet name as dynamic in formula?

    Are you still using Excel 2003?? Clearly not as you have attached an .xlsx. Please update your profile.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to make sheet name as dynamic in formula?

    Purely out of interest why are you keeping a data record for a single individual on multiple sheets?

    Why not keep them all on a single sheet? You say they are dynamic which implies you continually change the individual sheets.
    When you have all the details on a single sheet I suggest you delete all the others and just work with the single sheet database.
    When you want to edit a record just use Autofilter to find the name you want.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Contributor
    Join Date
    09-14-2011
    Location
    Nepal
    MS-Off Ver
    Office 2021
    Posts
    117

    Re: How to make sheet name as dynamic in formula?

    Dear Glenn Kennedy,

    Thank you very much for you quick solution. It works for me. You are genius.

    Regards,
    Indra

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to make sheet name as dynamic in formula?

    Lol. Please update your profile NOW, before you forget.



    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Make a dynamic 'sheet' active to be able to extract data into an array.
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2017, 01:13 PM
  2. Make a dynamic 'sheet' active to be able to extract data into an array.
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2017, 08:40 AM
  3. [SOLVED] help to make formula dynamic
    By Lewster in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 05-12-2016, 04:39 PM
  4. [SOLVED] Make YTD formula dynamic.
    By ammartino44 in forum Excel General
    Replies: 4
    Last Post: 03-25-2015, 01:07 AM
  5. How to make a dynamic range with multiple tables on sheet?
    By AlexRM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2015, 08:32 PM
  6. [SOLVED] Suggestion on how to make Sheet name is more dynamic
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 12:37 PM
  7. Daily trades sheet..How to make dynamic.
    By Gogan in forum Excel General
    Replies: 1
    Last Post: 03-01-2007, 03:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1