+ Reply to Thread
Results 1 to 8 of 8

to find Sheet ref and Cell ref from a formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    272

    to find Sheet ref and Cell ref from a formula

    Dear Friends,

    Is there a formula which would give me file name, sheet name, cell ref. separately from a formula.

    e.g
    A1 = +'G:\R COST CODE\2016-17\[R Cost Branchwise 1617.xlsm]225'!M4 (which is the formula)
    B1 : R Cost Branchwise 1617.xlsm (which is file name)
    C1 : 225 (which is sheet no.)
    D1 : M4 (which is cell ref.)

    In my day-to-day work, my file is linked to many files and each file has many many sheets.

    The file is too heavy due to links
    I plan to break the links by doing paste special formula, but retain there file name, sheet name and cell ref.

    Please help.

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

    Re: to find Sheet ref and Cell ref from a formula

    Probably like this:

    =HYPERLINK("'G:\R COST CODE\2016-17\["&B1&"]"&C1&"'!"&D1)

    or

    =HYPERLINK(concatenate("'G:\R COST CODE\2016-17\[",C1,"]",C2,"'!",C3))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    272

    Re: to find Sheet ref and Cell ref from a formula

    It will not serve my purpose.

    File name, Sheet name and cell ref. will changes everytime.

    I need a formula which will separate the File name, Sheet name and cell ref. from a formula.

    Please help.

  4. #4
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    272

    Re: to find Sheet ref and Cell ref from a formula

    Just to clear confusion

    In A1 formula is already been there. ("+'G:\R COST CODE\2016-17\[R Cost Branchwise 1617.xlsm]225'!M4" )

    I need to fill
    B1 : R Cost Branchwise 1617.xlsm (which is file name)
    C1 : 225 (which is sheet no.)
    D1 : M4 (which is cell ref.)

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,765

    Re: to find Sheet ref and Cell ref from a formula

    OK - I misunderstood your requirement. Try these:

    B1 =MID(A1,FIND("[",A1)+1,FIND("]",A1)-FIND("[",A1)-1)
    C1 =MID(A1,FIND("]",A1)+1,FIND("!",A1)-FIND("]",A1)-2)
    D1 =RIGHT(A1,LEN(A1)-FIND("!",A1))

  6. #6
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    272

    Re: to find Sheet ref and Cell ref from a formula

    Its returning me #VALUE!

    Please assist.

    A1 has a formula. Its not a text value.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,765

    Re: to find Sheet ref and Cell ref from a formula

    Sorry, I am out of ideas. In the latest version of Excel you could replace all A1 references with FORMULATEXT(A1), but this function is not available in your version.

  8. #8
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: to find Sheet ref and Cell ref from a formula

    I don't think what you are asking is possible unless the path itself is visible on the worksheet
    Ash

+ 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. Replies: 1
    Last Post: 07-20-2015, 09:22 PM
  2. Find blank cell, insert formula to find median of above cell range
    By lilyeye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 11:58 AM
  3. Replies: 3
    Last Post: 05-19-2013, 09:07 AM
  4. Replies: 5
    Last Post: 02-21-2013, 07:17 PM
  5. Find value from sheet 1, cell A1 in sheet(s) 2 (3, 4?), copy, paste row to sheet 8
    By fleeting in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2011, 03:31 PM
  6. Lookup/Find Sheet then give value of specific cell within sheet
    By DoriBeE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2011, 08:42 AM
  7. How to find sheet in formula by (part) cell reference. use Indirect ???
    By KrisVeen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-21-2006, 06:38 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