Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Selecting cells with certain formula?

Say I have a spreadsheet with tons of formula, is there a way to
select (highlight) those that have the formula I specifiy? (say SUM,
AVERAGE, etc. I wanna do FDS actually for factset). Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Selecting cells with certain formula?


formatconditional formattingformula is
--
Don Guillett
SalesAid Software

"Alex Li" wrote in message
oups.com...
Say I have a spreadsheet with tons of formula, is there a way to
select (highlight) those that have the formula I specifiy? (say SUM,
AVERAGE, etc. I wanna do FDS actually for factset). Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Selecting cells with certain formula?

I mean "select". not formatting. say range("A1").select.

Does it matter if the parameters of the formulas are different even
though it's all the same operator? (say SUM, I am sure the xxx in
SUM(xxx) are all different), but I wanna catch all SUM cells.)

On Jun 27, 8:37 am, "Don Guillett" wrote:
formatconditional formattingformula is
--
Don Guillett
SalesAid Software
"Alex Li" wrote in message

oups.com...



Say I have a spreadsheet with tons of formula, is there a way to
select (highlight) those that have the formula I specifiy? (say SUM,
AVERAGE, etc. I wanna do FDS actually for factset). Thanks.- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Selecting cells with certain formula?

Alex,

Try the macro below.

Note that asking for SUM will find SUM and SUMPRODUCT.... Ask for SUM( to prevent that....

HTH,
Bernie
MS Excel MVP


Sub FindFunctions()
Dim c As Range ' The cell found with what you want
Dim d As Range ' All the cells found with what you want
Dim myFindString As String
Dim firstAddress As String

myFindString = Application.InputBox("What function to find?", Type:=2)
With Cells

Set c = .Find(myFindString, LookIn:=xlFormulas, LookAt:=xlPart)

If Not c Is Nothing Then
Set d = c
firstAddress = c.Address
Else:
MsgBox "Not Found"
End
End If

Set c = .FindNext(c)
If Not c Is Nothing And c.Address < firstAddress Then
Do
Set d = Union(d, c)
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With

'Then do what you want with all the cells that have been found

' You can select them

d.Select

'or color them yellow
With d
With .Interior
.ColorIndex = 6
End With
End With

End Sub

"Alex Li" wrote in message
oups.com...
Say I have a spreadsheet with tons of formula, is there a way to
select (highlight) those that have the formula I specifiy? (say SUM,
AVERAGE, etc. I wanna do FDS actually for factset). Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Selecting cells with certain formula?

One more method which doesn't involve formulas.

Select ayour range and EditFind

What: SUM(

Find All.

With found cells dialog box open, hold shift key and scroll down to bottom of
list and select last in list.

Those cells will be highlighted.

Format them to a color for easy viewing.


Gord Dibben MS Excel MVP

On Wed, 27 Jun 2007 08:15:47 -0700, Alex Li wrote:

Say I have a spreadsheet with tons of formula, is there a way to
select (highlight) those that have the formula I specifiy? (say SUM,
AVERAGE, etc. I wanna do FDS actually for factset). Thanks.


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
By selecting cells adjacent to cells tally sheet tom Excel Worksheet Functions 2 September 20th 06 07:09 PM
IRR - selecting cells Edc Excel Worksheet Functions 1 November 30th 05 01:36 PM
formula for selecting all cells Andre Excel Discussion (Misc queries) 1 November 25th 05 05:34 PM
selecting cells Rick, United Kingdom Excel Discussion (Misc queries) 1 September 6th 05 08:49 AM
selecting cells ynissel Excel Discussion (Misc queries) 4 July 26th 05 08:06 PM


All times are GMT +1. The time now is 07:05 PM.

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"