+ Reply to Thread
Results 1 to 9 of 9

Is it possible to get the file name (text) to appear as text in my google sheet?

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Is it possible to get the file name (text) to appear as text in my google sheet?

    Hi guys,

    I am naming the same copy of various sheets with different names.

    I need to change text in a cell to use the name of the sheet. Is there a function to get the file name appear in a cell?

    Thanks
    Thanks,

    R.



  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    Please Login or Register  to view this content.
    Pete

  3. #3
    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
    80,745

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    Your thread title contradicts your question: do you want the file name or the sheet name?

    For the sheet name, a very quick Google tells me that you will need to write a Google Sheets script for this.
    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.

  4. #4
    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
    80,745

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    Quote Originally Posted by PeteABC123 View Post
    Please Login or Register  to view this content.
    Pete
    Have you checked that this works in Google Sheets?

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    Sorry I meant the file name

  6. #6
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    Quote Originally Posted by PeteABC123 View Post
    Please Login or Register  to view this content.
    Pete
    i`m sorry Pete, I meant the file name. I am using google sheets

  7. #7
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    MyBad. I just was a bit eager in a moment of frantic frenetic frenzy.


    Cheerio.
    Pete
    Last edited by PeteABC123; 08-17-2018 at 12:13 PM.

  8. #8
    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
    80,745

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    To be fair, Ray did post in the appropriate sub-forum AND mention Google Sheets in his thread title!

    As I said earlier, it doesn't look like there is a direct equivalent.

  9. #9
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Is it possible to get the file name (text) to appear as text in my google sheet?

    Add following in Google Script.
    Tools->Script editor.
    Please Login or Register  to view this content.
    Then in the worksheet.
    0.JPG
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ 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. Need to Read Text file and Paste required lines in different excel sheet based on Text
    By frazzlesole in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-05-2018, 08:34 PM
  2. Upload text file in google drive
    By zaku2s in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2017, 01:42 AM
  3. Macro to convert a mutiple sheet workbook to tab delimited text or fixed width text file
    By chandra 2185 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-05-2012, 10:29 AM
  4. Copy Excel to Text file and pass Text file to Access Table
    By robbie_xcell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2011, 01:53 PM
  5. Importing a text file to an existing sheet, with a dialog to pick the text file
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2011, 01:43 PM
  6. looping, Open text file, copy text, close text file
    By jwilds1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2009, 05:12 PM
  7. Transposing text in text file to Excel Sheet.
    By sifar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2005, 07:05 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