+ Reply to Thread
Results 1 to 3 of 3

How to refer to a cell with a formula in it and have the formul shown [SOLVED]

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    25

    How to refer to a cell with a formula in it and have the formul shown [SOLVED]

    Hi Experts!

    Does anyone know how to do the following:

    in cell A1 on tab Sales I have the following formula
    Formula: =ROUND((VLOOKUP(B8,'U:\Sales\[2012Sales.xls]TotalSales'!$B$9:$K$28,4,FALSE)),0)
    Value 24

    I would like cell B1 on the same tab to reference A1 and display the formula, not the value 24.

    is this possible???

    Thanks!

    SOLUTION (from another board):

    Sub fomuldisplay()

    Function GetFormula(Cell As Range) As String
    GetFormula = Cell.Formula

    End Function

    -----

    in cell b1: =GetFormula(A1)
    Last edited by papagorgio; 02-02-2012 at 03:15 PM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: How to refer to a cell with a formula in it and have the formul shown (not the va

    You would have to write a UDF

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-26-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: How to refer to a cell with a formula in it and have the formul shown (not the va

    Hey, thanks for the idea!

+ 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