Solved

ms excel sort

Posted on 2014-02-17
5
159 Views
Last Modified: 2014-02-17
I just opened a question about counting the number of rows, it turned out that

=COUNTA(E1:E2000)

counts the rows as per the regmigrant's suggestion

Now I am having a problem with sorting. So I need to sort the excel doc, then total the rows.
But when I sort the rows, the numbers of the rows is all off, for example the numbering goes

2,3,6,7,15,16

as so on, obviously due to the filter, but my formula is

=COUNTA(E1:E2000)

my count is 2000 no matter how I filter the document.
So how can I get an accurate count of the rows after I apply the filter?
0
Comment
Question by:JeffBeall
  • 2
  • 2
5 Comments
 
LVL 19

Assisted Solution

by:helpfinder
helpfinder earned 250 total points
ID: 39865279
try this formula
=SUBTOTAL(3;E1:E2000)

(3 in the formula represents COUNTA)
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 39865322
OK, I tried

=SUBTOTAL(3;E1:E2000)

but I get this message

"The formula you typed contains an error"

there are some suggestions, but it's just things like click help for more info.
0
 
LVL 27

Accepted Solution

by:
MacroShadow earned 250 total points
ID: 39865330
=SUBTOTAL(3,E1:E2000)
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 39865373
I guess you had a typo helpfinder, using the comma after the 3 worked
Thank you so much! that works great.
0
 
LVL 19

Expert Comment

by:helpfinder
ID: 39865405
it´s not a typo. if comma or semicolon is a separator depends on Regional Settings and what you have set.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Office 2016 User Guides 5 33
Create Form using Wizard 14 32
Freeze Panes Solution 6 28
Sum iF  based on a null cell 11 29
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
My experience with Windows 10 over a one year period and suggestions for smooth operation
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now