Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Florida, USA
    Posts
    394
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Counting records? (Office XP)

    Hello,
    I have a spreadsheet in which I use the auto filter. The formula that I use to calculate the results of a particular filter is SUBTOTAL which works great. What formula would I use to count the records. I tried COUNTA but that counted all of the records not just the filtered ones.

    Thanks!
    Louise

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Counting records? (Office XP)

    SUBTOTAL too <img src=/S/smile.gif border=0 alt=smile width=15 height=15>. Your subtotals probably use 9 as first argument. This corresponds to SUM. If you use 2 instead, you count the number of numeric items (corresponding to COUNT), and if you use 3, you count the number of non-empty cells (corresponding to COUNTA).

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Florida, USA
    Posts
    394
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Counting records? (Office XP)

    Hans, you're great! How do you know all this stuff! <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    You're right, it did use the argument of 9. Now I'll have to see what the other numbers do!

    Thanks again!
    Louise

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Counting records? (Office XP)

    You can look up the SUBTOTAL function in the Help index. You'll find all valid values.

Posting Permissions

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