+ Reply to Thread
Results 1 to 18 of 18

Excel : Filter Functions List !

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Excel : Filter Functions List !

    I am using on my Spreadsheet functions like : SUM , COUNTIFS , COUNTIF
    They do not work with Filter (data will not update)
    So I replaced SUM with SUBTOTAL(SUM, ....)

    01. How can I replace COUNTIF and COUNTIFS to work with Filter ?
    02. Can you tell me the Excel Functions List which work with Filter ?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Excel : Filter Functions List !

    Use Excel Help (press the F1 key) to search for SUBTOTAL - you will see that the first parameter is a function number in the range 1 to 11 (or 101 to 111) which determines the function which you want to use. SUM is 9, AVERAGE is 1, MAX is 4, and so on. The numbers 1 to 11 will include manually-hidden rows whereas the numbers 101 to 111 will exclude them - both sets of numbers will exclude filtered-out rows. There is no equivalent function number for COUNTIFS, COUNTIF, as you can include the criteria for the filter within the conditions.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    So SUBTOTAL is the only function which works with Filtered-rows ?
    How can I make COUNTIFS , COUNTIF work with Filtered-rows ?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Excel : Filter Functions List !

    COUNTIF can only be used for one condition, so you might not be able to set that up, but COUNTIFS can be used for multiple conditions. You need to specify what you want to achieve - which column(s) have a filter condition applied to them and what are the conditions, which column is the COUNTIFS to apply to, and what condition will apply in that case?

    You can also use SUMPRODUCT to give you a conditional count or sum, but again you include the filter criteria within the formula.

    Pete

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    Ok, I want to count in a Table01 , how many in Column Range (A1:A100) IF in Column Range (B1:B100) = "NAME"
    Actually, "NAME" is = cell value in another TABLE02
    I used COUNTIF

    But when I Filter the Table01 (Filter in Column C) COUNTIF will not update
    How can I solve this ?

  6. #6
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    In other words, I am looking for similar function like SUBTOTAL , COUNT (but COUNT with criteria !!!)

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel : Filter Functions List !

    Quote Originally Posted by ionelz View Post
    Ok, I want to count in a Table01 , how many in Column Range (A1:A100) IF in Column Range (B1:B100) = "NAME"
    Actually, "NAME" is = cell value in another TABLE02
    I used COUNTIF

    But when I Filter the Table01 (Filter in Column C) COUNTIF will not update
    How can I solve this ?
    This is very confusing.

    How many "what" in Column Range (A1:A100)?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Excel : Filter Functions List !

    And what filter condition are you applying for column C ?

    Pete

  9. #9
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    Ok, how can I replace this :

    =SUMIF(A1:A10,"TEXT_A",B1:B10)

    =COUNTIFS(D1:D10,"TEXT_B",E1:E10,">0")

    SO IT WORK WITH FILTER

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel : Filter Functions List !

    Try these...

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(B2,ROW(B2:B10)-ROW(B2),0)),--(A2:A10="Text_A"))

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(D2,ROW(D2:D10)-ROW(D2),0)),--(D2:D10="Text_B"),--(E2:E10>0))

  11. #11
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    Thank you,
    It may work, I have to see ...
    But for example, column range B2:B10 I replaced with NAME_B (Created by selection)
    How to replace B2 ?
    How would I say B2 is second row in NAME_B ?

  12. #12
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    =SUMIF(A1:A10,"TEXT_A",B1:B10)

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(B2,ROW(B2:B10)-ROW(B2),0)),--(A2:A10="Text_A"))

    I can not make this one to work right !

  13. #13
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    Sorry, I was able to make all the formulas to work
    Thanks so much.
    If I can get an answer to this question : (posted before)

    But for example, column range B2:B10 I replaced with NAME_B (Created by selection)
    How to replace B2 ?
    How would I say B2 is second row in NAME_B ?

    Also, when I COPY the FORMULAS in Column

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(B2,ROW(B2:B10)-ROW(B2),0)),--(A2:A10="Text_A"))

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(D2,ROW(D2:D10)-ROW(D2),0)),--(D2:D10="Text_B"),--(E2:E10>0))


    for some reason (and I don't get it) B2 became B3 , in my opinion the Range should stay

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel : Filter Functions List !

    Quote Originally Posted by ionelz View Post
    But for example, column range B2:B10 I replaced with NAME_B (Created by selection) How to replace B2 ? How would I say B2 is second row in NAME_B ?
    Sorry, I don't understand.

    Also, when I COPY the FORMULAS in Column

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(B2,ROW(B2:B10)-ROW(B2),0)),--(A2:A10="Text_A"))

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(D2,ROW(D2:D10)-ROW(D2),0)),--(D2:D10="Text_B"),--(E2:E10>0))

    for some reason (and I don't get it) B2 became B3 , in my opinion the Range should stay
    If you want a particular reference to remain constant (also known as absolute) then you use the $ dollar sign:

    $A2 = absolute column
    A$2 = absolute row
    $A$2 = absolute column and row

  15. #15
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(B2,ROW(B2:B10)-ROW(B2),0)),--(A2:A10="Text_A"))

    B2 is second row in Column B2:B10

    B2:B10 is NAME_B so formula became (I have Created NAME_B for this Column)

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(B2,ROW(NAME_B)-ROW(B2),0)),--(A2:A10="Text_A"))

    But when I copy the formula, B2 change to B3, B4, ....and a want to freeze it to B2
    Range stay, condition A2:A19 change
    That is why I have asked, how can I freeze B2 even if table move to other location

  16. #16
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    I was looking for $A$2

  17. #17
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Excel : Filter Functions List !

    Thanks, I was looking for $A$2 ....

  18. #18
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel : Filter Functions List !

    You're welcome!

+ 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. How to replace drop down list filter to those normal excel filter?
    By cks1026 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2016, 02:48 AM
  2. List all functions used in an excel formula
    By Craigjre in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2012, 11:31 AM
  3. List of functions used in a particular Excel sheet
    By Duckman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2005, 04:45 AM
  4. How to get the complete list Excel Worksheet Functions
    By phil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-07-2005, 12:05 AM
  5. Using Excel link (hyper?) and list functions
    By iamgpop in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  6. How to get the complete list Excel Worksheet Functions
    By phil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 09:05 AM
  7. Using Excel link (hyper?) and list functions
    By iamgpop in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-17-2005, 12:05 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