LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
srinivasan
 
Posts: n/a
Default Again-revealing the contents of formula

My Original post:
A cell contains the following calculation. =(28.36x38697/1000) and the answer
for this calculation is displayed in the cell. I want to know whether any
formula will display the numbers etc.,that has been used for the calculation
so that the one can have a the figures that have been used for the
calculation at a glance by placing the same in a cell beneath it.

Mr Harald's code for the same:
Function DisplayFormula(Cel As Range) As String
DisplayFormula = Cel(1).Formula

It works
Return to Excel. With your calculation in cell A1, enter this in A2:
=DisplayFormula(A1)
End Function

In Continuation of my query, I have another one. Even though the code
perfectly reproduces the formula contained in the cell it only shows the cell
reference of the formula. But I have given a name for the cell and the said
name is not displayed but the cell reference (row & col no) only has been
displayed. Is it possible to amend the formula /code to make it display the
exact contents of the formula (name given to the cell) rather than the cell
reference wherever the formula contains names. i.e instead of =L122*L119/1000
the formula should show -26.93*_36347/1000



 
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
I have problems keeping the merge formula to use as a template. PBrunner Excel Discussion (Misc queries) 2 June 20th 05 10:45 PM
Using contents of a cell in a formula Mike Excel Discussion (Misc queries) 4 June 9th 05 03:10 AM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
Cell shows formula and not the result of the formula. stumpy1220 Excel Worksheet Functions 2 January 14th 05 05:11 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 12:56 AM.

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

About Us

"It's about Microsoft Excel"