VBA to count number of cells with exact text
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: VBA to count number of cells with exact text

  1. #11
    New Member
    Join Date
    Aug 2019
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VBA to count number of cells with exact text

    Quote Originally Posted by Fluff View Post
    No problem, it's easily done.
    Do you just want to count the visible cells?

    I would love to just count the visible cells

  2. #12
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    27,029
    Post Thanks / Like
    Mentioned
    461 Post(s)
    Tagged
    46 Thread(s)

    Default Re: VBA to count number of cells with exact text

    You can use
    =SUMPRODUCT((A1:M9997="VOIP")*(SUBTOTAL(103,OFFSET(A1,ROW(A1:A9997)-MIN(ROW(A1:A9997)),0))))

    But it will only count cells where col A has a value
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #13
    New Member
    Join Date
    Aug 2019
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VBA to count number of cells with exact text

    Quote Originally Posted by Fluff View Post
    You can use
    =SUMPRODUCT((A1:M9997="VOIP")*(SUBTOTAL(103,OFFSET(A1,ROW(A1:A9997)-MIN(ROW(A1:A9997)),0))))

    But it will only count cells where col A has a value
    Thank you, Fluff! That worked perfectly.

    I tried following the other threads about SUMPRODUCT and I just couldn't get it right, but with the correct syntax, I can see what I was doing wrong.

  4. #14
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    27,029
    Post Thanks / Like
    Mentioned
    461 Post(s)
    Tagged
    46 Thread(s)

    Default Re: VBA to count number of cells with exact text

    You're welcome & thanks for the feedback
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

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
  •