+ Reply to Thread
Results 1 to 5 of 5

Return a formula as text string to a cell

  1. #1
    Sharon
    Guest

    Return a formula as text string to a cell

    Hi - I would be really grateful if anybody knows a function to return the
    formula contained in one cell to another cell as a text string?

    Thanks
    --
    Sharon

  2. #2
    Gary''s Student
    Guest

    RE: Return a formula as text string to a cell

    Try this tiny UDF:


    Function textit(r As Range) As String
    textit = Chr(39) & r.Formula
    End Function

    If A1 has a formula, then =textit(A1) will display it
    --
    Gary''s Student


    "Sharon" wrote:

    > Hi - I would be really grateful if anybody knows a function to return the
    > formula contained in one cell to another cell as a text string?
    >
    > Thanks
    > --
    > Sharon


  3. #3
    Don Guillett
    Guest

    Re: Return a formula as text string to a cell

    Put this in a REGULAR code module and then just type =stringit(c4)

    Function stringit(x)
    stringit = x.Formula
    End Function

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Sharon" <[email protected]> wrote in message
    news:[email protected]...
    > Hi - I would be really grateful if anybody knows a function to return the
    > formula contained in one cell to another cell as a text string?
    >
    > Thanks
    > --
    > Sharon




  4. #4
    Peo Sjoblom
    Guest

    Re: Return a formula as text string to a cell

    There is no such beast but you can roll your own


    http://www.mvps.org/dmcritchie/excel/formula.htm

    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com



    "Sharon" <[email protected]> wrote in message
    news:[email protected]...
    > Hi - I would be really grateful if anybody knows a function to return the
    > formula contained in one cell to another cell as a text string?
    >
    > Thanks
    > --
    > Sharon




  5. #5
    Sharon
    Guest

    Re: Return a formula as text string to a cell

    Thanks to y'all!! Really hit the spot.
    --
    Sharon


    "Peo Sjoblom" wrote:

    > There is no such beast but you can roll your own
    >
    >
    > http://www.mvps.org/dmcritchie/excel/formula.htm
    >
    > --
    >
    > Regards,
    >
    > Peo Sjoblom
    >
    > http://nwexcelsolutions.com
    >
    >
    >
    > "Sharon" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi - I would be really grateful if anybody knows a function to return the
    > > formula contained in one cell to another cell as a text string?
    > >
    > > Thanks
    > > --
    > > Sharon

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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