Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Displaying Cell Formulas (without using Tools/Options/View-Formula

Is there any way to display the Formula of another individual cell (not all
cells on the Worksheet as per using Tools / Options / View then selecting
Formulas Check box) using Standard Excel functions (not macros).

ie if Cell A1 has formula =A2+1 want to create a method of displaying the
formula (as text) in another Cell

Trying to avoid Macros but could do this easily by creating a VB Function like

Public Function TextFormula(rngFormula As Range) As String

TextFormula = rngFormula.Formula

End Function

Then having in the other Cell =TextFormula(A1)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Displaying Cell Formulas (without using Tools/Options/View-Formula

Hi,

you can try this. Go to insert Name Define and assign a name there -
"showformula". In the refers to box, type =GET.CELL(6,INDIRECT("RC[-1]",)).
In cell B1, enter =showformula.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Is there any way to display the Formula of another individual cell (not
all
cells on the Worksheet as per using Tools / Options / View then selecting
Formulas Check box) using Standard Excel functions (not macros).

ie if Cell A1 has formula =A2+1 want to create a method of displaying the
formula (as text) in another Cell

Trying to avoid Macros but could do this easily by creating a VB Function
like

Public Function TextFormula(rngFormula As Range) As String

TextFormula = rngFormula.Formula

End Function

Then having in the other Cell =TextFormula(A1)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Displaying Cell Formulas (without using Tools/Options/View-For

Thanks constantly amazed by the depth of Excel knowledge of people on this
forum.
That works great but I would like to understand how it is done.

Understand the use of INDIRECT Function and assume using R1C1 Style
reference, rather than A1 Style reference, so that the Name works across
multiple Worksheets without having a Sheet Reference.

Understand the use of CELL Function (and previously tried to use it to do
this) but only knewi nfotypes address, col, color, contents,
filename, Format, parenthesis, prefix, protect, row, type, and
"width".
So not sure whether 6 is one of these or something different altogether.

Searched the Excel Help File for GET and dont find it. Although if I
search for GET in VB Help File it finds lots of Get*** type keywords and if
I type GET into a VB module it obviously understands it.

Any suggestions where to look so I can get more information ?


"Ashish Mathur" wrote:

Hi,

you can try this. Go to insert Name Define and assign a name there -
"showformula". In the refers to box, type =GET.CELL(6,INDIRECT("RC[-1]",)).
In cell B1, enter =showformula.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Is there any way to display the Formula of another individual cell (not
all
cells on the Worksheet as per using Tools / Options / View then selecting
Formulas Check box) using Standard Excel functions (not macros).

ie if Cell A1 has formula =A2+1 want to create a method of displaying the
formula (as text) in another Cell

Trying to avoid Macros but could do this easily by creating a VB Function
like

Public Function TextFormula(rngFormula As Range) As String

TextFormula = rngFormula.Formula

End Function

Then having in the other Cell =TextFormula(A1)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Displaying Cell Formulas (without using Tools/Options/View-For

After about an hour of searching the Internet I think I have now answered my
"Reply" Question.

Can't find GET in the Excel Help File because it isn't there.
And it isn't there because it is an old Excel 4 XLM Type Macro.

Found all this from Chip Pearsons site http://cpearson.com/excel/Call.htm

Therefore went to Microsoft Support site

http://support.microsoft.com/kb/128185

and downloaded the Macrofun.hlp Help File which explains GET and the values
that can be passed into it to get various outputs.

So today has been an interesting day learning lots of new things.

"DSMessenger" wrote:

Thanks constantly amazed by the depth of Excel knowledge of people on this
forum.
That works great but I would like to understand how it is done.

Understand the use of INDIRECT Function and assume using R1C1 Style
reference, rather than A1 Style reference, so that the Name works across
multiple Worksheets without having a Sheet Reference.

Understand the use of CELL Function (and previously tried to use it to do
this) but only knewi nfotypes address, col, color, contents,
filename, Format, parenthesis, prefix, protect, row, type, and
"width".
So not sure whether 6 is one of these or something different altogether.

Searched the Excel Help File for GET and dont find it. Although if I
search for GET in VB Help File it finds lots of Get*** type keywords and if
I type GET into a VB module it obviously understands it.

Any suggestions where to look so I can get more information ?


"Ashish Mathur" wrote:

Hi,

you can try this. Go to insert Name Define and assign a name there -
"showformula". In the refers to box, type =GET.CELL(6,INDIRECT("RC[-1]",)).
In cell B1, enter =showformula.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Is there any way to display the Formula of another individual cell (not
all
cells on the Worksheet as per using Tools / Options / View then selecting
Formulas Check box) using Standard Excel functions (not macros).

ie if Cell A1 has formula =A2+1 want to create a method of displaying the
formula (as text) in another Cell

Trying to avoid Macros but could do this easily by creating a VB Function
like

Public Function TextFormula(rngFormula As Range) As String

TextFormula = rngFormula.Formula

End Function

Then having in the other Cell =TextFormula(A1)


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Displaying Cell Formulas (without using Tools/Options/View-For

You are welcome.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Thanks constantly amazed by the depth of Excel knowledge of people on
this
forum.
That works great but I would like to understand how it is done.

Understand the use of INDIRECT Function and assume using R1C1 Style
reference, rather than A1 Style reference, so that the Name works across
multiple Worksheets without having a Sheet Reference.

Understand the use of CELL Function (and previously tried to use it to do
this) but only knewi nfotypes address, col, color, contents,
filename, Format, parenthesis, prefix, protect, row, type,
and
"width".
So not sure whether 6 is one of these or something different altogether.

Searched the Excel Help File for GET and dont find it. Although if I
search for GET in VB Help File it finds lots of Get*** type keywords and
if
I type GET into a VB module it obviously understands it.

Any suggestions where to look so I can get more information ?


"Ashish Mathur" wrote:

Hi,

you can try this. Go to insert Name Define and assign a name there -
"showformula". In the refers to box, type
=GET.CELL(6,INDIRECT("RC[-1]",)).
In cell B1, enter =showformula.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Is there any way to display the Formula of another individual cell (not
all
cells on the Worksheet as per using Tools / Options / View then
selecting
Formulas Check box) using Standard Excel functions (not macros).

ie if Cell A1 has formula =A2+1 want to create a method of displaying
the
formula (as text) in another Cell

Trying to avoid Macros but could do this easily by creating a VB
Function
like

Public Function TextFormula(rngFormula As Range) As String

TextFormula = rngFormula.Formula

End Function

Then having in the other Cell =TextFormula(A1)




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Displaying Cell Formulas (without using Tools/Options/View-For

Also I visited your Website Ashish, and added it to my list of Excel Sites,
and will take the time to read through some of your other examples. I am in
Australia so a long way away from India. Thanks again.

"Ashish Mathur" wrote:

Hi,

you can try this. Go to insert Name Define and assign a name there -
"showformula". In the refers to box, type =GET.CELL(6,INDIRECT("RC[-1]",)).
In cell B1, enter =showformula.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Is there any way to display the Formula of another individual cell (not
all
cells on the Worksheet as per using Tools / Options / View then selecting
Formulas Check box) using Standard Excel functions (not macros).

ie if Cell A1 has formula =A2+1 want to create a method of displaying the
formula (as text) in another Cell

Trying to avoid Macros but could do this easily by creating a VB Function
like

Public Function TextFormula(rngFormula As Range) As String

TextFormula = rngFormula.Formula

End Function

Then having in the other Cell =TextFormula(A1)


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Displaying Cell Formulas (without using Tools/Options/View-For

Thank you.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Also I visited your Website Ashish, and added it to my list of Excel
Sites,
and will take the time to read through some of your other examples. I am
in
Australia so a long way away from India. Thanks again.

"Ashish Mathur" wrote:

Hi,

you can try this. Go to insert Name Define and assign a name there -
"showformula". In the refers to box, type
=GET.CELL(6,INDIRECT("RC[-1]",)).
In cell B1, enter =showformula.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"DSMessenger" wrote in message
...
Is there any way to display the Formula of another individual cell (not
all
cells on the Worksheet as per using Tools / Options / View then
selecting
Formulas Check box) using Standard Excel functions (not macros).

ie if Cell A1 has formula =A2+1 want to create a method of displaying
the
formula (as text) in another Cell

Trying to avoid Macros but could do this easily by creating a VB
Function
like

Public Function TextFormula(rngFormula As Range) As String

TextFormula = rngFormula.Formula

End Function

Then having in the other Cell =TextFormula(A1)


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
tabs are missing even though 'tools-options-view-sheet tabs' ok? rgranell Excel Worksheet Functions 3 August 16th 08 04:25 PM
menu tools options jim w Excel Discussion (Misc queries) 0 October 11th 07 04:51 PM
Grid lines in Excel not showing.Have tools,options,view/grid cked bajlearning Excel Discussion (Misc queries) 6 January 28th 07 02:00 AM
Tools Options F.C Setting up and Configuration of Excel 1 March 8th 06 12:12 PM
"Show Windows in Taskbar" option from the ToolsOptionsView broke Ben Zapp Excel Discussion (Misc queries) 0 November 9th 05 07:40 PM


All times are GMT +1. The time now is 07:03 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"