+ Reply to Thread
Results 1 to 11 of 11

Get Sheet Name In Transpose Formula

  1. #1
    Registered User
    Join Date
    07-30-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    9

    Get Sheet Name In Transpose Formula

    Myself Anoop Balagopal From India
    I am using a Transpose Function in formula,formula as follows
    Please Login or Register  to view this content.
    How can I get the sheet name ( here sheet names are ML1 and G20 ) dynamically.
    If I change the sheet name in the excel I will run this macro and will get the formula automatically.


    Thanks In advance
    Last edited by AliGW; 07-31-2019 at 01:00 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,238

    Re: Get Sheet Name In Transpose Formula

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-30-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    9

    Re: Get Sheet Name In Transpose Formula

    Hello AliGW

    Thank you for the info.Will keep in mind for next time

  4. #4
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Get Sheet Name In Transpose Formula

    Hi,
    I suggest to loop through the sheets
    then activate the desired sheet then:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-30-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    9

    Re: Get Sheet Name In Transpose Formula

    Hello mohadin

    I did the code which you have mentioned but unfortunately it didn't work out.
    The code which I did is

    Please Login or Register  to view this content.
    But in the formula bar it is showing as

    Please Login or Register  to view this content.
    I have hard coded the formula as below

    Please Login or Register  to view this content.
    I have to Implement a Tranpose formula in Sheet one ( Data to Transpose will be from Different Sheets)
    Last edited by anoopbalagopal; 07-31-2019 at 04:26 AM. Reason: Re format

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,238

    Re: Get Sheet Name In Transpose Formula

    You have already been advised about CODE TAGS in post #2: please add them to post #5.

    No further help to be offered, please, until this has been done.

  7. #7
    Registered User
    Join Date
    07-30-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    9

    Re: Get Sheet Name In Transpose Formula

    Edited.Took Time to understand.
    Sorry for this

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Get Sheet Name In Transpose Formula

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  9. #9
    Registered User
    Join Date
    07-30-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    9

    Re: Get Sheet Name In Transpose Formula

    Hello bakerman2

    It worked.
    Thank you very much.
    Code as follows
    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Get Sheet Name In Transpose Formula

    Hi Anoop,
    sorry it was my mistake
    but any way
    Please Login or Register  to view this content.

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Get Sheet Name In Transpose Formula

    You're welcome and thanks for rep+.

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

+ 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] formula or vba to extract complex specific data in transpose mode on summary sheet
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2017, 08:52 PM
  2. formula to transpose column of vaues on one sheet to row on another
    By gutterball in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2015, 11:08 AM
  3. VBA Code to transpose data from Sheet 1 to Sheet 2 in a specific order
    By zicitron in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2014, 07:20 AM
  4. Replies: 2
    Last Post: 04-16-2014, 08:07 PM
  5. [SOLVED] VBA / Macro / Formula help needed for extracting data and Transpose into another sheet
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-05-2014, 12:19 PM
  6. [SOLVED] How to copy data range form one sheet to other sheet with desire Reverse Transpose ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-18-2013, 12:30 PM
  7. Replies: 1
    Last Post: 03-30-2011, 03:30 AM

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