Pop-Out Tables for relevant data

k______S

New Member
Joined
May 12, 2017
Messages
7
Hello,

I apologize in advance because my question is going to be vague. A year or so ago a collegue sent me an excel workbook which had the ability to click on certain fields wihtin the summary page and the data related to that cell would break out in a new table on a new tab.

I have a list of claims with member ID #'s. Each member might have anywhere from 1-30 claims and the member ID# field is consistent on each claim line.

I have created a summary tab that, amongst other metrics, counts the number of claims and displays this at the member level.

Is there any functionality which allows me to click on the member ID# on this summary page and a table including only the claims associated with that members is broken out?

Any help is appreciated!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Sounds like the file your collegue sent contained a Pivot Table, giving that ability.

You could use VBA to go to the data and filters by the member ID once you double click on a member ID.


In the below i'm assuming both Membership numbers are in column A, and the data is on a sheet called "Data".

The macro needs to go in the worksheet module.

Code:
Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)


    Dim ssheet As Worksheet
    Dim dsheet As Worksheet
    Dim Memno As String


    Set ssheet = ActiveSheet
    Set dsheet = Sheets("Data")   'change to name of sheet containing the data


    If Target.Column = 1 Then   'change 1 to column number in the Summary containing Membership number
    Memno = ActiveCell.Value
    dsheet.Select
    dsheet.Range("A1").AutoFilter Field:=1, Criteria1:=Memno     'change 1 to column number in the Data containing Membership number
    End If


End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,710
Messages
6,174,019
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top