Results 1 to 6 of 6

Need help to summarize my countif results

Threaded View

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    Winnipeg, Manitoba
    MS-Off Ver
    2013
    Posts
    4

    Need help to summarize my countif results

    Ive created a sheet with 10000 lines of data, summarized by many criteria through many countifs.

    Im looking for a way to 'click' on a count if result, and have a new sheet open up that will give me the rows and their data, that compile that countif result.

    Ive tried the following VBA of which i am not the author....
    Sub SummarizeCountif()
    
      Dim rngSel   As Range
      Dim rng      As Range
      Dim rngPrec  As Range
      
      If TypeName(Selection) <> "Range" Then Exit Sub
      
      Set rngSel = Selection
      
      On Error Resume Next
      Application.ScreenUpdating = False
      
      For Each rng In rngSel
      
        Set rngPrec = Nothing
      
        If InStr(1, rng.Formula, "CountIf", vbTextCompare) = 2 Then
      
         
          Set rngPrec = rng.DirectPrecedents
      
          If rngPrec.Cells.Count = 1 Then Set rngPrec = Nothing
      
          If rngPrec Is Nothing Then
            rng.ShowPrecedents
            rng.NavigateArrow TowardPrecedent:=True, ArrowNumber:=1
      
            Set rngPrec = Selection
            rng.Parent.Activate
          End If
      
          rng.Hyperlinks.Add Anchor:=rng.Offset(, 1), _
                             Address:="", _
                             SubAddress:=rngPrec.Address(0, 0, External:=True), _
                             TextToDisplay:="Go to the source range"
          ActiveSheet.ClearArrows
        End If
      
      Next rng
      On Error GoTo 0
      
    End Sub
    My source data is contained in A25:AJ11000 (Labels in Row 24)

    Attachment 466117
    Attached Files Attached Files
    Last edited by xUPxONxONEx; 06-15-2016 at 02:15 PM. Reason: Title

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Using a Message Box to Summarize Macro Results
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2013, 07:27 AM
  2. [SOLVED] Summarize My Results
    By cyberice in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-20-2013, 01:42 PM
  3. Import Text File and Summarize Results
    By gaclark999 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2011, 12:13 AM
  4. add and count dates and summarize results
    By cathal78 in forum Excel General
    Replies: 9
    Last Post: 02-12-2011, 05:42 PM
  5. Summarize results from files into main file
    By aktarina in forum Excel General
    Replies: 4
    Last Post: 09-06-2007, 01:09 AM
  6. Best way to summarize results?
    By neil40 in forum Excel General
    Replies: 3
    Last Post: 04-05-2006, 11:31 AM
  7. countif results
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 09-06-2005, 07:05 AM
  8. countif results
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 09-06-2005, 06:05 AM

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