Counting occurrences

  • Thread starter Thread starter GARY
  • Start date Start date
ONE way, if you're really counting formulas is to use Edit/Replace, replacing
= with x=. Excel will tell you how many it replaced. Then replace X= with =
to restore it!
 
Run this macro. It'll tell you the number of "=" you have in the active
spreadsheet. Hope this helps!

Sub equalnumber()

Dim i As Integer
Dim cell As Range

i = 0

For Each cell In ActiveSheet.UsedRange

If cell.Formula Like "*=*" Then i = i + 1

Next cell

MsgBox ("There are " & i & " occurences of = in this worksheet")

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top