+ Reply to Thread
Results 1 to 6 of 6

How to filter source data and use only that filtered data in results/formula's

  1. #1
    Registered User
    Join Date
    01-25-2019
    Location
    Belgium
    MS-Off Ver
    Office 2016
    Posts
    8

    How to filter source data and use only that filtered data in results/formula's

    Hi,

    I have a document with statistics for my national soccer league from the last 20 years.
    They contain, teams, scores, goals, cards, corners.

    With those stats, I used some formulas to show me how many wins, corners, goals, goal differences,... They all have a separate formula, and are on a second page

    I made this all based on the stats I have for the current season.
    Now my question is the following:

    If I make the source file for my stats, all the stats from the past years, is there a way my formulas will still work If I filter in that file.
    eg. i wanna know the stats for this season en the one before, my results (the ones on the second page) still show the data for all the seasons; and not just those from the last 2 seasons.

    Also, I can't make a seperate page with formula's for each season, seeing as I sometimes want 2 or more season stats at once.

    Thanks in advance to any advice you can give me.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: How to filter source data and use only that filtered data in results/formula's

    Have a look at the SUBTOTAL() function
    https://support.office.com/en-us/art...0-e478765b9939

    it can handle filtered area's to only count visible cells in the range.

  3. #3
    Registered User
    Join Date
    01-25-2019
    Location
    Belgium
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: How to filter source data and use only that filtered data in results/formula's

    I figured SUBTOTAL() was only for sums, I see I can use it for more functions, but the formulas I use are COUNTIF
    Is there any way to do it when I'm using the COUNTIF formulas in my result?

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: How to filter source data and use only that filtered data in results/formula's

    No countif is not able to work with visible only but if you set the subtotal function to count and only visible cells then it will act the same as a countif but also handle only visible rows.

  5. #5
    Registered User
    Join Date
    01-25-2019
    Location
    Belgium
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: How to filter source data and use only that filtered data in results/formula's

    Okay, Thanks for the info, this will help me along.
    Maybe you could help me with this,
    in the document I have in column C the home team and in column D the away team. Is there any way to filter so that I can see all games from 1 team?
    Meaning; show all the games 1 team plays both away and at home?

    currently I'm using this formula to get all the row numbers in which a certain team stands, and I fill out the rest of the columns based on the row number. But I was wondering whether there was a simpler way.

    =KLEINSTE(ALS('2018-2019'!D:E=$D$1;RIJ('2018-2019'!D:E));RIJ('2018-2019'!1:1))

    KLEINSTE = SMALLEST
    ALS = IF
    RIJ = ROW

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: How to filter source data and use only that filtered data in results/formula's

    Since you have to array enter the SMALL(IF... formula, you may want to look into the AGGREGATE function. AGGREGATE(15,6,... can be used to yield the same results without array entering.
    https://support.office.com/en-us/art...6-E19993FA26DF
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Want to Show Filtered data in Listbox with Tickbox Option to Filter data
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2017, 11:55 AM
  2. [SOLVED] Want to Show Filtered data in Listbox with Tickbox Option to Filter data
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2017, 05:49 AM
  3. Formula to filter results from data
    By iantix in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 04-11-2017, 10:36 AM
  4. Replies: 9
    Last Post: 07-14-2016, 06:44 AM
  5. Replies: 0
    Last Post: 03-20-2014, 10:03 AM
  6. Replies: 2
    Last Post: 11-02-2012, 10:38 AM
  7. Need a macro to filter data then email filtered data through lotus notes (or print)
    By Crimson Bourne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2012, 01:26 PM

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