Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Arjan
 
Posts: n/a
Default Displaying in a cell the formula from another cell

Hi,

is it possible to show (in text) the formula from the cell next to it? For
example, in cell A1 I have the formula ='D:My Documents\[test.xls]Sheet1'!D18
which gives as result "18". Can I display in cell A2 the text "D:My
Documents\[test.xls]Sheet1'!D18" somehow?

Arjan
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

Arjan

How about a user defined function? Enter this and take the cell you wish to
return the formula string from as the single parameter

Function ShowFormula(rngInput As Range) As Variant
Application.Volatile True
ShowFormula = rngInput.Formula
End Function

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Arjan" wrote in message
...
Hi,

is it possible to show (in text) the formula from the cell next to it? For
example, in cell A1 I have the formula ='D:My
Documents\[test.xls]Sheet1'!D18
which gives as result "18". Can I display in cell A2 the text "D:My
Documents\[test.xls]Sheet1'!D18" somehow?

Arjan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using contents of a cell in a formula Mike Excel Discussion (Misc queries) 4 June 9th 05 03:10 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Conditional Formatting for dates spacerocket Excel Worksheet Functions 2 November 4th 04 10:13 AM


All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"