Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2010, 07:10 AM
thorgal67 thorgal67 is offline Making Formulas Visible Windows XP Making Formulas Visible Office 2003
Novice
Making Formulas Visible
 
Join Date: Apr 2009
Posts: 8
thorgal67 is on a distinguished road
Default Making Formulas Visible

I have a column (A) that contains a formula and displays the value

I would like to put in Column B a link to that formula, BUT there the formula should be displayed, and not the value.

Any ideas? Using "show formula" in Tools -> Options is not helpful, as I do not want to to display the formula in column A.

p.s. i use Excel 2003



Thanks
Reply With Quote
  #2  
Old 12-15-2010, 12:54 PM
BjornS BjornS is offline Making Formulas Visible Windows Vista Making Formulas Visible Office 2003
Competent Performer
 
Join Date: Jan 2010
Location: Sweden
Posts: 116
BjornS is on a distinguished road
Default

Hi,
Try this function:

Function CellFormula(CellRef As Range) As String
CellFormula = CellRef.Formula
End Function

You implement it by first pressing Alt-F11.
Then select the menu Insert/Module.
Now paste the code above.
Alt-Q to go back to Excel.

I am a macro beginner, but it looks like it works when I tried it

In cell B1 (for example) you can now type: =CellFormula(A1) to show the formula that is written in cell A1. This formula can of course by copied down or where ever you like.

Kind regards
Bjorn
Reply With Quote
  #3  
Old 12-17-2010, 07:53 AM
thorgal67 thorgal67 is offline Making Formulas Visible Windows XP Making Formulas Visible Office 2003
Novice
Making Formulas Visible
 
Join Date: Apr 2009
Posts: 8
thorgal67 is on a distinguished road
Default

Thanks Bjorn,

it seems to work fine. However, I found a simpler way that suits my needs.

I added an extra column to the right of my formula, and did a Copy-Paste special (formula). I then added a quote sign ( ' ) in front of the formula and dragged the formula down. this will turn the cell into a "text" field, thus displaying the formula.
Reply With Quote
Reply

Tags
formula



Similar Threads
Thread Thread Starter Forum Replies Last Post
Font List Not Visible JonJacobs PowerPoint 0 07-13-2010 07:12 AM
Making Formulas Visible IF Formulas mizzamzz Excel 1 07-08-2010 02:32 AM
text not visible in a number of emails jbrad Outlook 0 07-06-2010 03:44 PM
Table formulas markg2 Word Tables 0 01-15-2010 06:49 AM
No Header Gap visible? dr_mik Word 0 11-25-2009 06:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft