Results 1 to 10 of 10

Trying to find a formula that QUICKLY counts errors, formula or results, on a SS

Threaded View

  1. #1
    Registered User
    Join Date
    11-09-2007
    Posts
    42

    Question Trying to find a formula that QUICKLY counts errors, formula or results, on a SS

    I am trying to just count errors in a defind range on my spreadsheet. I tried using an array formula but it killed the processing time. I then tried a UDF, shown below, but it also kills the processing time because it runs more than once when doing a standard calculation. Is there a way to set the formula to only run at the end of a calc cycle?

    Function CountErrors()
    Dim rng, c As Range, e As Integer
    
    Set rng = ActiveSheet.UsedRange
        For Each c In rng
            If InStr(1, c.Formula, "#REF!") Or IsError(c) Then
                CountErrors = CountErrors + 1
            End If
        Next c
    End Function
    Thanks!
    Last edited by Uziel; 03-17-2010 at 04:11 PM. Reason: shg told me to :)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1