Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how to convert a formula into text in order to display the formula

I want to display the formula and the result in the same worksheet so that
people can know what calculation has been used to obtain the given result.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 718
Default how to convert a formula into text in order to display the formula

Insert a Comment that gives the text of the Formula

HTH
--
AP

"Claudio Hartzstein" <Claudio a écrit
dans le message de news:
...
I want to display the formula and the result in the same worksheet so that
people can know what calculation has been used to obtain the given result.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default how to convert a formula into text in order to display the formula

As Ardus suggested:
Here are 2 macros (Put In Standard Module)
1) to Add All Existing Formulas to a CommentBox
2) to Remove All Comments <<Watch Out This removes ALL
Comments (not just ones created by 1) above..
HTH
Jim May

Sub ShowFormulasInComments()
Dim cell As Range
Dim sh As Worksheet
Dim i As Long
Set sh = ActiveSheet
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula Then
cell.AddComment.Text Text:=cell.Formula
End If
Next cell
End Sub
Sub RemoveFormulasInComments()
ActiveSheet.UsedRange.ClearComments
End Sub

"Ardus Petus" wrote in message
:

Insert a Comment that gives the text of the Formula

HTH
--
AP

"Claudio Hartzstein" <Claudio a écrit
dans le message de news:
...
I want to display the formula and the result in the same worksheet so that
people can know what calculation has been used to obtain the given result.


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
Find text within cell then display text to left Jambruins Excel Discussion (Misc queries) 5 April 17th 06 10:01 PM
Convert text in cell to a range name for formula Sawhney Excel Worksheet Functions 1 April 14th 06 01:06 AM
Copy formula so destination displays formula as text Omunene Excel Discussion (Misc queries) 2 September 30th 05 06:28 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM


All times are GMT +1. The time now is 08:32 AM.

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"