Spreadsheet help

Discussion in 'Bulletin Board' started by Archey, Dec 5, 2021.

  1. Archey

    Archey Well-Known Member

    Joined:
    Jul 2, 2008
    Messages:
    26,066
    Likes Received:
    21,636
    Trophy Points:
    113
    Location:
    A big massive boat
    Style:
    Barnsley
    I'm trying my best to get my head around spreadsheets, but I just can't quite figure a few things out.

    I've got a pivot table which has text values in (mostly yes/no), and I want it to count a certain value when I've filtered it. At present, I can only get a count for the whole table, and not the filtered range. For example, if I was to filter the below table to only show results for Sunday, and then do a COUNTIF of the 'type' field equalling "unwitnessed", the output is 3 instead of 2 as it includes the whole table and not the filtered range.

    Anyone able to help?

    [​IMG]
     
  2. Redstone

    Redstone Well-Known Member

    Joined:
    Sep 10, 2005
    Messages:
    16,072
    Likes Received:
    11,516
    Trophy Points:
    113
    Style:
    Barnsley Dark
    As I understand it you put a load of numbers in then all your best players leave.
     
    sadbrewer, leeupo, Sheriff and 6 others like this.
  3. SFOTyke

    SFOTyke Well-Known Member

    Joined:
    Oct 26, 2005
    Messages:
    5,275
    Likes Received:
    6,568
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Retired (Early)
    Location:
    San Francisco, California, USA
    Style:
    Barnsley (full width)
    I think you need the SUBTOTAL function. =SUBTOTAL( ... then the first argument is SUM, COUNT, etc.
     
  4. Archey

    Archey Well-Known Member

    Joined:
    Jul 2, 2008
    Messages:
    26,066
    Likes Received:
    21,636
    Trophy Points:
    113
    Location:
    A big massive boat
    Style:
    Barnsley
    The subtotal function does ignore filtered out results, but you can't use the COUNTIF function within it (unless I'm using it wrong).
     
  5. Exi

    Exile Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    5,813
    Likes Received:
    6,717
    Trophy Points:
    113
    Gender:
    Male
    Style:
    Barnsley
    If it's for use in the January Transfer Window, can you please 'unhide' the 'Pace' column. Ta.
     
  6. SFOTyke

    SFOTyke Well-Known Member

    Joined:
    Oct 26, 2005
    Messages:
    5,275
    Likes Received:
    6,568
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Retired (Early)
    Location:
    San Francisco, California, USA
    Style:
    Barnsley (full width)
  7. Archey

    Archey Well-Known Member

    Joined:
    Jul 2, 2008
    Messages:
    26,066
    Likes Received:
    21,636
    Trophy Points:
    113
    Location:
    A big massive boat
    Style:
    Barnsley
    SFOTyke likes this.
  8. Tyke_67

    Tyke_67 Well-Known Member

    Joined:
    May 31, 2013
    Messages:
    14,972
    Likes Received:
    20,613
    Trophy Points:
    113
    Style:
    Barnsley (full width)
    SFOTyke likes this.
  9. Jaffa

    Jaffa Well-Known Member

    Joined:
    Jul 20, 2005
    Messages:
    2,463
    Likes Received:
    38
    Trophy Points:
    48
    Location:
    Tarn
    Style:
    Barnsley (full width)
    if its cells C you are counting put "=subtotal(3,c4:c23)" (obviously change the range of cells to whatever is needed, and remove the " symbols and that should work
     
  10. Jaffa

    Jaffa Well-Known Member

    Joined:
    Jul 20, 2005
    Messages:
    2,463
    Likes Received:
    38
    Trophy Points:
    48
    Location:
    Tarn
    Style:
    Barnsley (full width)
    if its cells C you are counting put "=subtotal(3,c4:c23)" (obviously change the range of cells to whatever is needed, ald move the " symbols and that should work
     
  11. Red

    Red Edge Active Member

    Joined:
    Mar 23, 2021
    Messages:
    129
    Likes Received:
    170
    Trophy Points:
    43
    Gender:
    Male
    Location:
    Penistone
    Style:
    Barnsley (full width)
    Think I may be missing something - but if you set up a pivot table based on your data. You can add the fields that you want to filter - e.g. Day and then add the fields you want to count in the value section - job done - no pratting about with functions

    upload_2021-12-6_15-39-6.png
     

Share This Page