+ Reply to Thread
Results 1 to 4 of 4

Worksheet name using =cell... formula

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Copenhagen
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    90

    Worksheet name using =cell... formula

    Hi,

    I have tried using a function "RIGHT(TRIM(RIGHT(SUBSTITUTE(CELL("filename";H1);"_";REPT(" ";20));20));2)" to extract the 2 numbers from the worksheet name. It works and shows in row1 as a number but I want as well it to show as a month name (on row1) and change the month name depending on what last 2 digits i write in the worksheet name.

    Is it possible to do without using VBA ?

    Thanks for any help !
    Attached Images Attached Images

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Worksheet name using =cell... formula

    =TEXT(DATE(1;RIGHT(CELL("filename";A1);2)+0;1);"MMM")
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    04-18-2012
    Location
    Copenhagen
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    90

    Re: Worksheet name using =cell... formula

    Thanks bro, works like magic

    BTW what does "1" represents after date (... ?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Worksheet name using =cell... formula

    1st 1 is year and 2nd 1 is day

+ 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. drag formula to new cell keeping cell but changing worksheet number
    By TREBOR74 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2017, 11:10 PM
  2. [SOLVED] Worksheet Change? Use a formula cell as input and then revert back to original formula...
    By trickyricky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2016, 11:39 PM
  3. [SOLVED] Formula to Copy Cell Value from one Worksheet to another Worksheet.
    By Ortz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2016, 04:58 PM
  4. [SOLVED] Formula to return value of cell relative to another cell in separate worksheet
    By jakevogel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2016, 12:41 PM
  5. [SOLVED] Find value of a cell in another worksheet. offset formula to change adjacent cell.
    By joyhampton in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2014, 09:22 PM
  6. [SOLVED] Loop formula on one worksheet until empty cell on another worksheet
    By Natstin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2013, 11:16 PM
  7. Replies: 2
    Last Post: 01-26-2011, 05:56 PM

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