+ Reply to Thread
Results 1 to 5 of 5

Help with Formulas for a Filtered Table

  1. #1
    Registered User
    Join Date
    12-10-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help with Formulas for a Filtered Table

    Hi All - This is my first post requesting help with a formula. I did some digging prior but didn't find a solution. Please open attached spreadsheet for request / problem.

    Thank you,
    JH

    Request: I want Columns D and F to represent their respective totals whether the table is filtered or not. D3 should represent total of distinct Candidates (the total in D3 should adjust as the table is filtered).

    F2,3,4 totals should represent the number of distinct Candidates (from Column B) with their respective color and adjust as the table if filtered E.g. "Suzy Woozy" is interviewing 4 distinct Candidates, 1 of which is Blue and 3 are Red. I want the Column F totals to show those values when the table if filtered for Suzy Woozy
    Attached Files Attached Files
    Last edited by AliGW; 08-17-2022 at 12:34 AM. Reason: SOLVED tag applied - no need to edit the thread title for this.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,469

    Re: Help with Formulas for a Filtered Table

    For D3, change SUBTOTAL(3? ) to SUBTOTAL(103?)

    For column F, you probably need to look at AGGREGATE instead of SUMPRODUCT.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Help with Formulas for a Filtered Table

    I'm on O365 but these should work:

    Please Login or Register  to view this content.
    Note that the formula in D3 is an array formula entered with Ctrl+Shift+Enter.

    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Registered User
    Join Date
    12-10-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with Formulas for a Filtered Table

    Thank you all for jumping in so quickly to help. WBD - I plugged your formulas in and they are 100% bomber! Thanks a ton!
    Last edited by Jar Head; 08-18-2022 at 07:02 PM.

  5. #5
    Registered User
    Join Date
    12-10-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with Formulas for a Filtered Table

    I spoke too soon - there is still one unresolved issue with the filtered table totals. Notice that when you filter by Interviewer (Column A), the totals in Column F don't match the distinct values. E.g. in the image below, we should have a total of 3 Red distinct Candidates not 5. Column F is counting instances of a value (color) instead of counting distinct "Candidates" and their corresponding color totals.
    Any ideas on how to solve?

    Here is the formula in F3 I'm using from WideBoyDixon: =SUMPRODUCT(SUBTOTAL(3,OFFSET(IntvwData[Color Code],ROW(IntvwData[Color Code])-ROW(IntvwData[#Headers])-1,,1))*(IntvwData[Color Code]=$E3))
    Attached Images Attached Images
    Last edited by Jar Head; 08-18-2022 at 07:07 PM.

+ 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. Replies: 14
    Last Post: 01-01-2020, 09:05 AM
  2. Replies: 7
    Last Post: 12-31-2019, 01:49 AM
  3. [SOLVED] Macro to Autofilter a table and delete filtered rows: Error 1004 cannot alter table
    By brytsyt in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-05-2018, 04:57 AM
  4. Histogram on filtered table, results only on filtered rows
    By Cheesecube in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 03-25-2018, 03:54 AM
  5. Replies: 3
    Last Post: 11-04-2013, 07:50 PM
  6. Replies: 2
    Last Post: 06-16-2011, 06:53 PM
  7. Applying formulas to a table of filtered results
    By jovialtom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-21-2007, 07:21 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