+ Reply to Thread
Results 1 to 5 of 5

Return formula reference and text instead of values...?

  1. #1
    Registered User
    Join Date
    02-16-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    29

    Return formula reference and text instead of values...?

    Hello,

    Is there a way for excel to return the formula of a cell with the text contents of cell references within the formula?

    Let me clarify with an example:
    0 A B C D
    1 1 2
    2

    Formula: =A1+B1

    What I would like to see returned is 1+2

    Is this possible? Thanks in advance!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Return formula reference and text instead of values...?

    Not out the box...but, maybe using VBA. (It would probably be complicated, though, depending on the formula(s) you'd need to parse)
    Last edited by Ron Coderre; 06-17-2014 at 01:07 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Return formula reference and text instead of values...?

    maybe =A1&"+"&B1 would work?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  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,474

    Re: Return formula reference and text instead of values...?

    To serve what purpose? Have you looked at Evaluate Formula? It's on the Formula's Ribbon and allows you to step through the calculation of the formula.

    Other than that, NTIAAO


    Regards, TMS
    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


  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,832

    Re: Return formula reference and text instead of values...?

    If what you are trying to return is the text string "1+2", you could use the concatenate function: =concatenate(A1,"+",B1) ) (or the concatenate operator &: =A1 & "+" & B1. As Ron suggests, though, this will become rather complicated for larger formulas.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Return any values from partial text in single reference column
    By baba_jb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2013, 01:03 AM
  2. [SOLVED] Return Multiple Values Off One Reference
    By BobBing in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-29-2012, 03:43 PM
  3. Replies: 3
    Last Post: 05-09-2012, 06:22 PM
  4. Replies: 6
    Last Post: 01-22-2012, 12:39 PM
  5. Return formula as text (<> paste values)
    By geoB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2009, 03:52 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