+ Reply to Thread
Results 1 to 11 of 11

display referenced cell value without losing reference itself (F9 loses 'smartness')

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    Reno, Nevada
    MS-Off Ver
    365
    Posts
    5

    display referenced cell value without losing reference itself (F9 loses 'smartness')

    Hi I'm doing engineering calculations in excel and I want my work to show (using FORMULATEXT), but I want the formulatext to show values instead of referenced cell (show "=18*48+20*36" instead of "=C2*D2+C3*D3"). When I use F9 to do this, the reference is lost and I have to reset references when updating the values in the calculation.

    I'm not an advanced user and am curious if this is possible. Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    Probably not what you want, but, in this instance, you could use
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you select the FORMULATEXT cell and press F9, you get
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    so you could manually edit the cell to put in the &s and quotes.

    Other than that, I doubt you can do what you want. Happy to be proven wrong though.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-18-2020
    Location
    Reno, Nevada
    MS-Off Ver
    365
    Posts
    5

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    Thank you, this gets me a lot closer and gets the job done. Is there a way for the value displayed to show to two decimal points? The formula is showing 18 when I want it to show 18.00

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    You'd need to use TEXT(C2, "0.00")

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    Hi,

    If the operators are only ever either +, -, * or / then:

    =TEXTJOIN(MID(FORMULATEXT(D1),MODE.MULT(IF(ISNUMBER(MATCH(MID(FORMULATEXT(D1),SEQUENCE(50),1),{"*";"+";"-";"/"},{0,0})),SEQUENCE(50))),1),,N(INDIRECT(FILTERXML("<a><b>"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MID(FORMULATEXT(D1),2,99),"/","+"),"-","+"),"*","+"),"+","</b><b>")&"</b></a>","//b"))))

    Note that FILTERXML is not available in the online version of Excel.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    08-18-2020
    Location
    Reno, Nevada
    MS-Off Ver
    365
    Posts
    5

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    Thank you TMS

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    (Self-deleted)
    Last edited by XOR LX; 08-18-2020 at 05:54 PM.

  8. #8
    Registered User
    Join Date
    08-18-2020
    Location
    Reno, Nevada
    MS-Off Ver
    365
    Posts
    5

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    This worked except it replaced the * with + in a couple spots. These are not the exact numbers, but for example formula reads 18*48+20*122, but textjoin cell reads 18+48+20+122
    Last edited by fmplatt530; 08-18-2020 at 05:21 PM.

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    You're correct. Ignore my last formula. The first version I posted is the right one to use.

    Regards

  10. #10
    Registered User
    Join Date
    08-18-2020
    Location
    Reno, Nevada
    MS-Off Ver
    365
    Posts
    5

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    The first formula worked. Thanks again

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: display referenced cell value without losing reference itself (F9 loses 'smartness')

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] How to get sheet reference to display nothing if cell referenced is blank
    By jmrlifesafe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2016, 04:36 PM
  2. Reference cell is empty but when referenced gives me value of 12:00 am
    By nhopkins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2013, 05:02 PM
  3. Display referenced cell and related hyperlinks
    By pepe.r.taylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2011, 08:10 AM
  4. Replies: 5
    Last Post: 03-07-2011, 05:56 PM
  5. Replies: 3
    Last Post: 02-09-2009, 11:16 AM
  6. Get the reference from a referenced cell
    By Niklas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2006, 01:10 PM
  7. [SOLVED] Get the reference from a referenced cell
    By Niklas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2006, 01:10 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