Results 1 to 2 of 2

Thread: Re: Countif- Visible Cells in Filter mode
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular willow1985's Avatar
    Join Date
    Jul 2019
    Location
    Winnipeg, MB
    Posts
    223
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Countif- Visible Cells in Filter mode

    Hello, I hope someone could help me with a formula I have.

    I am looking to count any cells that contain "IAR" in range: A4:A10000

    My current formula is: =COUNTIF(A4:A1000,"*IAR*")

    This counts everything from A4 down that contains "IAR", however when a filter is applied I need it to count only the visible cells.

    I have tried: =SUMPRODUCT(SUBTOTAL(3,OFFSET(A4:A1000,ROW(A4:A1000)-MIN(ROW(A4:A1000)),,1))*(A4:A1000="*IAR*")) and it gives a result as 0 instead of 219

    Thank you to anyone who can help!!

    Carla
    Last edited by willow1985; Oct 18th, 2019 at 05:15 PM.

  2. #2
    Board Regular willow1985's Avatar
    Join Date
    Jul 2019
    Location
    Winnipeg, MB
    Posts
    223
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Countif- Visible Cells in Filter mode

    I figured it out.

    New formula: =SUMPRODUCT(SUBTOTAL(3,OFFSET(A4:A10000,ROW(A4:A10000)-MIN(ROW(A4:A10000)),,1)),ISNUMBER(SEARCH("*IAR*",A4:A10000))+0)

    This is working just fine. Not sure why the other never worked for me though...

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •