+ Reply to Thread
Results 1 to 11 of 11

Click on Summary Tab to set Filter in detail Tab

  1. #1
    Registered User
    Join Date
    06-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    47

    Click on Summary Tab to set Filter in detail Tab

    I have an excel spreadsheet. When click on count values like "4" , the cursor should go to "Detail" tab and filter the Status column to "Acknowledged".
    So that only status =Acknowledged" records display. The same way when click on "1", only status = in progress record should display.

    See the attached file for better clarification.

    Summary Tab
    ============
    Status count
    ------ -----
    Acknowledged 4
    Delivered 4
    In Progress 1


    Detail Tab
    =======
    Date Status Source
    ---- ------ ------
    1/3/2015 Acknowledged In-house
    1/5/2015 Acknowledged Internal
    1/6/2015 Acknowledged In-house
    1/9/2015 Acknowledged In-house
    1/1/2015 Delivered In-house
    1/4/2015 Delivered In-house
    1/7/2015 Delivered Internal
    1/8/2015 Delivered External
    1/2/2015 In Progress External
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: Click on Summary Tab to set Filter in detail Tab

    You could use code like this on the summary (right click on tab and View Code) tab:
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Click on Summary Tab to set Filter in detail Tab

    Hello excelmr,

    Add this code to the "Summary" sheet.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    06-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    47

    Re: Click on Summary Tab to set Filter in detail Tab

    Chance 2 - Your code worked. Thanks for your time.

  5. #5
    Registered User
    Join Date
    06-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    47

    Re: Click on Summary Tab to set Filter in detail Tab

    Leith Ross - Your code did not worked.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Click on Summary Tab to set Filter in detail Tab

    Hello excelmr,

    It worked for me. I can only assume you did place the code in the proper worksheet module.

  7. #7
    Registered User
    Join Date
    06-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    47

    Re: Click on Summary Tab to set Filter in detail Tab

    Leith

    There are 2 issues with your code.

    1. When click on count next to "Acknowledge", the cursor stayed in Summary Tab. The cursor should take to Detail Tab
    2. When click on count next to "External" , the detail tab show no records. That's not correct

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Click on Summary Tab to set Filter in detail Tab

    Hello excelmr,

    You should recheck the workbook you posted. There is no "External" listing.

    Here is the workbook with the change to switch to the "Detail" sheet. Everything else is the same as you posted.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    47

    Re: Click on Summary Tab to set Filter in detail Tab

    Leith,

    When click on "2" next to external, activate the "detail" tab. Filter the "Source" column of "detail" Tab which should show only 2 records having values "External".
    Same way when click on "5" filter out "Source" column and show 5 records having values "in-house".

    Source Count
    =============
    External 2
    In-house 5
    Internal 2

  10. #10
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Click on Summary Tab to set Filter in detail Tab

    Hello excelmr,

    Here is what I have on the "Detail" sheet in the workbook that was posted. This is from your original post.

    Please Login or Register  to view this content.
    Do you see any entry labeled "External" in the table? I don't.

    Are you saying the macro is to repeatedly include the entry into the "Detail" table based on the count?

    NOTE: Nevermind, I really need more sleep. Coffee is not working.
    Last edited by Leith Ross; 01-06-2016 at 08:02 PM.

  11. #11
    Registered User
    Join Date
    06-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    47

    Re: Click on Summary Tab to set Filter in detail Tab

    Leith-- Under "Summary" Tab ,below are the values. When you click on the values next to "Acknowledged", Delivered and "In Progress" . The filter works
    under "Detail" tab. But when click on the values next to "External","In House", internal the filter does not work. You should activate "Detail" sheet, when
    click on the values next to "External","In House", internal

    SUMMARY TAB
    ============

    Status count
    =============
    Acknowledged 4
    Delivered 4
    In Progress 1

    Source Count
    =============
    External 2
    In-house 5
    Internal 2

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Pivot Table Detail - Macro to double click/show detail
    By popps in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2012, 11:28 AM
  2. Summary of a detail list
    By sethup in forum Excel General
    Replies: 1
    Last Post: 07-08-2011, 09:18 AM
  3. How to derive summary totals based on detail?
    By Sun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2010, 12:58 AM
  4. copy detail to summary row in outline
    By Hobbes2006 in forum Excel General
    Replies: 1
    Last Post: 01-20-2006, 03:10 PM
  5. [SOLVED] Pulling selected data from a detail page to a summary
    By Redline in forum Excel General
    Replies: 2
    Last Post: 01-16-2006, 12:10 PM
  6. create detail from summary data
    By hvibberts25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2005, 01:57 PM
  7. [SOLVED] Summarize multiple worksheet detail on summary sheet
    By 061931 in forum Excel General
    Replies: 6
    Last Post: 05-23-2005, 10:06 AM

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