Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Show the formula not the result

Is there a way to have a cell show the formula not the result? More
specifically show the formula with the values of the cells used to calculate
the result not the cell referenced. I want the cell next to my result(10) to
show the formula used to get my result, =5*2 OR =Height*Length NOT =B2*B3
EXAMPLE:

GIVEN
Height 5
Length 2
CALCULATED
Area 10


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Show the formula not the result

Try this UDF

Function EvalCell(RefCell As String)
Application.Volatile
EvalCell = Evaluate(RefCell)
End Function

In A1 enter 5*2 no = sign

In B1 enter =EvalCell(A1) returns 10


Gord Dibben MS Excel MVP

On Fri, 3 Apr 2009 08:13:01 -0700, Haydie-lady
wrote:

Is there a way to have a cell show the formula not the result? More
specifically show the formula with the values of the cells used to calculate
the result not the cell referenced. I want the cell next to my result(10) to
show the formula used to get my result, =5*2 OR =Height*Length NOT =B2*B3
EXAMPLE:

GIVEN
Height 5
Length 2
CALCULATED
Area 10


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 293
Default Show the formula not the result

Hi Gordon,

I think Haydie-lady wants a formula that's been input in the form of =B2*B3 to display as =Height*Length or =5*2

Haydie-lady: Assuming B2 & B3 have the name ranges Height and Length, you could get =B2*B3 to display as =Height*Length by using
Find/Replace to change all instances of '=B2*B3' to '=Height*Length'.

--
Cheers
macropod
[MVP - Microsoft Word]


"Gord Dibben" <gorddibbATshawDOTca wrote in message ...
Try this UDF

Function EvalCell(RefCell As String)
Application.Volatile
EvalCell = Evaluate(RefCell)
End Function

In A1 enter 5*2 no = sign

In B1 enter =EvalCell(A1) returns 10


Gord Dibben MS Excel MVP

On Fri, 3 Apr 2009 08:13:01 -0700, Haydie-lady
wrote:

Is there a way to have a cell show the formula not the result? More
specifically show the formula with the values of the cells used to calculate
the result not the cell referenced. I want the cell next to my result(10) to
show the formula used to get my result, =5*2 OR =Height*Length NOT =B2*B3
EXAMPLE:

GIVEN
Height 5
Length 2
CALCULATED
Area 10



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Show the formula not the result

It seems we differ on interpretation of OP's needs.

Only OP will know for sure.


Gord

On Sat, 4 Apr 2009 09:18:51 +1100, "macropod"
wrote:

Hi Gordon,

I think Haydie-lady wants a formula that's been input in the form of =B2*B3 to display as =Height*Length or =5*2

Haydie-lady: Assuming B2 & B3 have the name ranges Height and Length, you could get =B2*B3 to display as =Height*Length by using
Find/Replace to change all instances of '=B2*B3' to '=Height*Length'.


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
Why does the formula show instead of the result? carpfish Excel Discussion (Misc queries) 3 July 5th 06 08:10 PM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
How do I get a cell to show the result instead of the formula? harticd Excel Worksheet Functions 2 January 27th 06 04:03 PM
I've put a formula in a field, the result won't show kanye Excel Discussion (Misc queries) 5 July 7th 05 08:07 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:20 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"