Solved

ms excel sort

Posted on 2014-02-17
5
158 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
Comment Utility
try this formula
=SUBTOTAL(3;E1:E2000)

(3 in the formula represents COUNTA)
0
 
LVL 1

Author Comment

by:JeffBeall
Comment Utility
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 26

Accepted Solution

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

Author Closing Comment

by:JeffBeall
Comment Utility
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
Comment Utility
it´s not a typo. if comma or semicolon is a separator depends on Regional Settings and what you have set.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

763 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

11 Experts available now in Live!

Get 1:1 Help Now