Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Creating a list of Excel formulas

Is there a way to create a list of formulae used in a (Excel 2007)
worksheet?
I can paste range names, but would like to do the same for formulae.
Thank you for any suggestions.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Creating a list of Excel formulas

One method...........CTRL + ` to switch to formula view.

Second method.................VBA to place all formulas on a new worksheet.

Sub ListFormulas()
'from John Walkenbach
Dim FormulaCells As Range, Cell As Range
Dim FormulaSheet As Worksheet
Dim Row As Integer
Dim ws As Worksheet
' Create a Range object for all formula cells
On Error Resume Next
Set FormulaCells = Range("A1").SpecialCells(xlFormulas, 23)

' Exit if no formulas are found
If FormulaCells Is Nothing Then
MsgBox "No Formulas."
Exit Sub
End If

' Add a new worksheet
Application.ScreenUpdating = False
Set FormulaSheet = ActiveWorkbook.Worksheets.Add
FormulaSheet.Name = "Formulas in " & FormulaCells.Parent.Name

' Set up the column headings
With FormulaSheet
Range("A1") = "Address"
Range("B1") = "Formula"
Range("C1") = "Value"
Range("A1:C1").Font.Bold = True
End With

' Process each formula
Row = 2
For Each Cell In FormulaCells
Application.StatusBar = Format((Row - 1) / FormulaCells.Count, "0%")
With FormulaSheet
Cells(Row, 1) = Cell.Address _
(RowAbsolute:=False, ColumnAbsolute:=False)
Cells(Row, 2) = " " & Cell.Formula
Cells(Row, 3) = Cell.Value
Row = Row + 1
End With
Next Cell

' Adjust column widths
FormulaSheet.Columns("A:C").Cells.WrapText = True ''AutoFit
Application.StatusBar = False
End Sub


Gord Dibben MS Excel MVP

On Wed, 11 Feb 2009 10:10:52 -0800 (PST), wrote:

Is there a way to create a list of formulae used in a (Excel 2007)
worksheet?
I can paste range names, but would like to do the same for formulae.
Thank you for any suggestions.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Creating a list of Excel formulas

Thank you very much, for the courtesy and promptness of your response.

On Feb 11, 1:24*pm, Gord Dibben <gorddibbATshawDOTca wrote:
One method...........CTRL + ` to switch to formula view.

Second method.................VBA to place all formulas on a new worksheet.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Creating a list of Excel formulas

Hey, that's a very nice way of feeding back.

Why can't everyone be so polite ? (rhetorical question !!)

Pete

On Feb 11, 7:30*pm, wrote:
Thank you very much, for the courtesy and promptness of your response.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 903
Default Creating a list of Excel formulas

You are probably looking for a summary, but you can use Ctrl+~ (or whatever is to
left of the "1" number row key) to show formulas, and you can install "GetFormula"
as described in http://www.mvps.org/dmcritchie/excel/formula.htm to show the
formula used in another cell.

Would suggest also installing "GetFormula" into the right-click menu to help create
the formula as described in
http://www.mvps.org/dmcritchie/excel/rightclick.htm

Both can still be done in Excel 2007 and you can avoid referring to the ribbon
to use it if you implement both parts.

--
HTH,
David McRitchie
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm

<kansaskannan wrote...
Is there a way to create a list of formulae used in a (Excel 2007)
worksheet?
I can paste range names, but would like to do the same for formulae.
Thank you for any suggestions.

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
creating formulas for sequential numbers in excel tacks Excel Worksheet Functions 4 June 12th 08 05:08 AM
Creating large formulas in Excel Jakob Excel Worksheet Functions 7 March 9th 06 07:41 AM
Creating Formulas In Excel To Calculate Time Intervals TonyR Excel Worksheet Functions 1 November 14th 05 04:52 PM
creating IF formulas in excel Kowalskii Excel Discussion (Misc queries) 2 July 27th 05 05:05 PM
Creating list in Excel shethn Excel Worksheet Functions 1 March 6th 05 02:51 PM


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