Counting lines when using a filter

After using a filter to view certain rows of a spreadsheet, is there a way to 
get an accurate count of how many rows are shown by either clicking and 
dragging the mouse over the selection or clicking on the first row and then 
shift-click on the last row?

Thanks in advance,
Hagan
0
hagan (8)
7/5/2005 4:35:06 PM
excel.misc 78881 articles. 5 followers. Follow

8 Replies
600 Views

Similar Articles

[PageSpeed] 23

How about using SUBTOTAL function

-- 
Don Guillett
SalesAid Software
donaldb@281.com
"hagan" <hagan@discussions.microsoft.com> wrote in message
news:F9264E3D-5869-4371-BED7-0DBF18712832@microsoft.com...
> After using a filter to view certain rows of a spreadsheet, is there a way
to
> get an accurate count of how many rows are shown by either clicking and
> dragging the mouse over the selection or clicking on the first row and
then
> shift-click on the last row?
>
> Thanks in advance,
> Hagan


0
Don
7/5/2005 4:48:24 PM
Right click on the bottom status bar, and select Count
See encl. picture:
http://www.excelforum.com/attachment.php?attachmentid=3569&stc=1
HTH
Ola


+-------------------------------------------------------------------+
|Filename: Clipboard01.jpg                                          |
|Download: http://www.excelforum.com/attachment.php?postid=3569     |
+-------------------------------------------------------------------+

-- 
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=17760
View this thread: http://www.excelforum.com/showthread.php?threadid=384605

0
7/5/2005 5:22:30 PM
Hi Don,

  I tried the SUBTOTAL function but it seems to be better suited for using 
this function on numbers in cells of a filtered spreadsheet, but I'm looking 
for a way to count the number of rows shown after a document has been 
filtered.  None of my columns have numbers for me to use the SUBTOTAL 
function with the COUNT or COUNTA options.  Do you have any other 
suggestions, or is there a way to tweak the SUBTOTAL function to count a text 
string.

Hagan

"Don Guillett" wrote:

> How about using SUBTOTAL function
> 
> -- 
> Don Guillett
> SalesAid Software
> donaldb@281.com
> "hagan" <hagan@discussions.microsoft.com> wrote in message
> news:F9264E3D-5869-4371-BED7-0DBF18712832@microsoft.com...
> > After using a filter to view certain rows of a spreadsheet, is there a way
> to
> > get an accurate count of how many rows are shown by either clicking and
> > dragging the mouse over the selection or clicking on the first row and
> then
> > shift-click on the last row?
> >
> > Thanks in advance,
> > Hagan
> 
> 
> 
0
hagan (8)
7/5/2005 5:26:07 PM
Try the following....

To count the number of cells that are not empty:

=SUBTOTAL(3,A2:A10)

To count the number of cells that contain a specific text string:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A2:A10,ROW(A2:A10)-MIN(ROW(A2:A10)),0,1)),(
A2:A10="Text String")+0)

Hope this helps!

In article <6A5B3F7A-1F2A-4447-923D-4A407C32D6BB@microsoft.com>,
 "hagan" <hagan@discussions.microsoft.com> wrote:

> Hi Don,
> 
>   I tried the SUBTOTAL function but it seems to be better suited for using 
> this function on numbers in cells of a filtered spreadsheet, but I'm looking 
> for a way to count the number of rows shown after a document has been 
> filtered.  None of my columns have numbers for me to use the SUBTOTAL 
> function with the COUNT or COUNTA options.  Do you have any other 
> suggestions, or is there a way to tweak the SUBTOTAL function to count a text 
> string.
> 
> Hagan
0
domenic22 (716)
7/5/2005 6:56:22 PM
Just highlight the visible rows and right-click on the status bar and select
"count".

Won't count rows hidden by filter.


Gord Dibben Excel MVP

On Tue, 5 Jul 2005 09:35:06 -0700, "hagan" <hagan@discussions.microsoft.com>
wrote:

>After using a filter to view certain rows of a spreadsheet, is there a way to 
>get an accurate count of how many rows are shown by either clicking and 
>dragging the mouse over the selection or clicking on the first row and then 
>shift-click on the last row?
>
>Thanks in advance,
>Hagan

0
Gord
7/5/2005 6:57:06 PM
Domenic,

  Worked like a charm...a little trickier than what I was looking for, but 
it worked.  However, the 2 replies after yours were a little simpler.

Thanks,
Hagan

"Domenic" wrote:

> Try the following....
> 
> To count the number of cells that are not empty:
> 
> =SUBTOTAL(3,A2:A10)
> 
> To count the number of cells that contain a specific text string:
> 
> =SUMPRODUCT(SUBTOTAL(3,OFFSET(A2:A10,ROW(A2:A10)-MIN(ROW(A2:A10)),0,1)),(
> A2:A10="Text String")+0)
> 
> Hope this helps!
> 
> In article <6A5B3F7A-1F2A-4447-923D-4A407C32D6BB@microsoft.com>,
>  "hagan" <hagan@discussions.microsoft.com> wrote:
> 
> > Hi Don,
> > 
> >   I tried the SUBTOTAL function but it seems to be better suited for using 
> > this function on numbers in cells of a filtered spreadsheet, but I'm looking 
> > for a way to count the number of rows shown after a document has been 
> > filtered.  None of my columns have numbers for me to use the SUBTOTAL 
> > function with the COUNT or COUNTA options.  Do you have any other 
> > suggestions, or is there a way to tweak the SUBTOTAL function to count a text 
> > string.
> > 
> > Hagan
> 
0
hagan (8)
7/5/2005 7:50:02 PM
Olasa,

  That works!!  Thank you for your help.

Hagan

"olasa" wrote:

> 
> Right click on the bottom status bar, and select Count
> See encl. picture:
> http://www.excelforum.com/attachment.php?attachmentid=3569&stc=1
> HTH
> Ola
> 
> 
> +-------------------------------------------------------------------+
> |Filename: Clipboard01.jpg                                          |
> |Download: http://www.excelforum.com/attachment.php?postid=3569     |
> +-------------------------------------------------------------------+
> 
> -- 
> olasa
> ------------------------------------------------------------------------
> olasa's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=17760
> View this thread: http://www.excelforum.com/showthread.php?threadid=384605
> 
> 
0
hagan (8)
7/5/2005 7:52:03 PM
Gord,

  That it!!  Thanks for your help.

Hagan

"Gord Dibben" wrote:

> Just highlight the visible rows and right-click on the status bar and select
> "count".
> 
> Won't count rows hidden by filter.
> 
> 
> Gord Dibben Excel MVP
> 
> On Tue, 5 Jul 2005 09:35:06 -0700, "hagan" <hagan@discussions.microsoft.com>
> wrote:
> 
> >After using a filter to view certain rows of a spreadsheet, is there a way to 
> >get an accurate count of how many rows are shown by either clicking and 
> >dragging the mouse over the selection or clicking on the first row and then 
> >shift-click on the last row?
> >
> >Thanks in advance,
> >Hagan
> 
> 
0
hagan (8)
7/5/2005 7:54:03 PM
Reply:

Similar Artilces:

Using form to enter "query criteria" (between values)
Good morning everyone, I want to create a form with two boxes, where first box is lower limit of the value and the second upper limit. This values should be used in my query as filter criteria. Like this (query filter criteria): > "textbox1" AND < "textbox2" Does anyone know how I can build this in a form (i.e. connect my textboxes and query criteria)? Kindly, Mikael Sweden By thinking about for another minute I found the (simple) answer. In the query criteria I put the following expression: BETWEEN [forms].[nameofform].[NameofDatefield1] AND [forms].[name...

Pivot table and counting.
I have a pivot table that gives me the number of rides done by a van. I can have the pivot table return the number of rides, but what I need is the number vans that participated for a certain day. Example, it is possible to have 27 trips done by 18 vans, how can I count the number of vans and not addup the van number? Any help appreciated. Thank you, Joe Hi Joe We need a bit more information on how your source data table is set up. What information do you have in each column? -- Regards Roger Govier sacredarms <sacredarms@discussions.microsoft.com> wrote: > I have a pi...

spontaneously changed subject lines #2
Hi, A lot of our users experience problems with spontaneously 'changed' subject lines in Outlook. When sending an e-mail or planning an appointment the enter a subject line. Let say the original subject line they entered was: "Mail for you Boss" After sending the mail/appointment they found out that the subject line was changed in: "???????? Mail for you Boss, or "=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=96=A1 Mail for your Boss" or something else This happens every time they create/sent a new mail or change/view an existing mail. ...

Cycle Counting
Hello, I am looking for ideas on how to cycle count serial number tracked items without increasing workload. Our serialized items are barcoded but the problem is the are situated on the pallet incorrectly and the pallet is placed on a third level of a racking system. If we could just cycle count based on item count and not include the serial number it would make it easy. Is this possible in Great Plains. We are running Great Plains 8.0. Any suggestions are greatly aprreciated. Thank You, Brian Morris Database Administrator ...

Using owiningbusinessunit in account
I am looking for suggestions on how people usually do this. We would like each account to be related to a specific business unit and would like to put the owing business unit on the account form. The attribute of owningbusinessunit appears to be an attribute under account, but you can't add it to a form. Any suggestions on how people are doing this ? You can not modify this attriubtue directly, it is updated based on the record owner. -- Matt Parks MVP - Microsoft CRM "MHG marine" <MHG marine@discussions.microsoft.com> wrote in message news:CF32B222-316A...

Count
Hi, I would like to know how which formula I should use to count some codes & to ignore the duplicated codes, for example in column A: Code 1234 4321 4321 1234 1234 3214 Now, I want Excel to count & the result is 3 which are: 1234-4321-3214 Yes I can use PivotTable, but I would like to use a formula because I have to deal with this every day. I appreciate your support. -- MFS22 COUNTIF will do it. =COUNTIF(Rng,Rng), where the criterion is the same as the range: e.g =COUNTIF(A3:A8,A3:A8) HTH Peter "MFS" wrote: > Hi, > I wo...

How do I use the Lotus Transition Keys?
I have tried to engage the transition keys but it does not work as outlined. Anyone with ideas I'll be so grateful What do you want them to do and what is "does not work"? Gord Dibben MS Excel MVP On Tue, 10 Jan 2006 14:57:02 -0800, "projectsclerk" <projectsclerk@discussions.microsoft.com> wrote: >I have tried to engage the transition keys but it does not work as outlined. >Anyone with ideas I'll be so grateful ...

How do I count the # of times a value reoccurs and plot it over ti
I wish to plot a number of errors made by each users and compare it over time. I have a column of user ID's and a column of dates. I want the chart to count the number of times each user ID appears and plot against it's corresponding date. However, each time I try to do this, the chart appears wrong. Any ideas? In article <9595B2A1-8282-4AB3-8511-A6776E108164@microsoft.com>, Stephen@discussions.microsoft.com says... > I wish to plot a number of errors made by each users and compare it over > time. I have a column of user ID's and a column of dates. I want t...

Problems with MFC using CAsyncSocket::
Snippet from my code. Being a client connected to a Server, I have 3 member functions below to use. OnClose, OnConnect and OnReceive. If I were to loose the connection to the server I have no knowledge of it. Any ideas, how I can get notified when I loose my connection to the Server? Also, when I poll the "sock.m_SockStatus" it doesn't give me an error as well. Beging a newbie at this, any help is surely appreciated. Thanks! JT //////////////////////////////////////////////////////////////////////////// / // mysock member functions void mysock::OnClose(int nErrorCode) { ...

Line Graph and Shading
Here is what I would like to do; I’d like to shade the area following the crossing of Line1 and Line2 in a different color and highlight and label the point at which the lines cross. Line1 is “Current Cost” and Line2 is “Projected Cost”, the area following the crossing I’d like to highlight as the “Projected Savings”. Now maybe a line graph isn’t what I’m looking for, any other recommendations? For example; x axis values of 1, 2, 3 and y axis 1-100 step 10 and Line1 values 0, 50, 100, Line2 values 25, 50, 75. From the point at which the lines cross, value 50, I’d like to highlight t...

HTML Emails Not Using Default Font
I'm using O2003. I have all my fonts composing, reading, replying/forwarding to be Tahoma 10. Sometimes when I get a message and reply, it defaults to Times New Roman 10. I then need to change it back to Tahoma. Can I change this so it always defaults to Tahoma 10 all the time. In the past I didn't think this could be done, but wanted to ask if maybe it was now possible. Thank you. Shawn ...

>Anyone using SQL server cluster?
Is anyone is using a clustered SQL Server for Microsoft CRM 1.2 ? (in deployments with no Sales for Outlook clients) . Please share your experience with the group OR if you do not wish to post a reply here ; ) due to risk of invalidating support with MS - please email me at peter DOT lynch AT optevia DOT com I believe a clustered CRM database works just fine in deployments with browser clients only. Thanks in advance! Peter I know of at least one client using clustered sql so there are companies doing it however I do not have a contact there. -- John O'Donnell Microsoft CRM ...

Line count
I am working with a program called Dictaphone. We use Word 2007 in this program. The line count on Dictaphone and the line count in Word 2007 are different even though the Dictaphone text is retrieved from Word 2007. Why would they be different? What is the difference between virutal line count and physical line count? ...

Is there any way to use longer strings in formulas?
In Excel 2002, the longest string I can use in a formula is (to my mind) ludicrously short. I have a workbook that requires HUNDREDS of English sentences like: ="Just to let y'all know, thanks to all the swell work by our sales staff in 2007, and despite our having to fire half of them for insubordination, and despite our chairman's having run off to a region in Asia which we believe is officially called the Glorious Former Soviet Autonomous People's Provisional Revolutionary Socialist Republic of Trans-Caucasian Equitorial Guinea, our company's annual return on investme...

Using message to create an address list
I have sent an email to 100 people and 25 of them have replied to say they're interested in whatever it is. So I have a folder in Outlook with all their replies in it. I want to send a message to all of them. How do I get their addresses in to a list or create a mail message with all their addresses in it? Diane <anonymous@discussions.microsoft.com> wrote: > I have sent an email to 100 people and 25 of them have > replied to say they're interested in whatever it is. So > I have a folder in Outlook with all their replies in it. > I want to send a message to ...

OT: What tax software is everyone using this year?
TurboTax is too expensive ($40 + electronic filing fees), TaxCut is $30 and included filing fees, TaxAct is $20 for the same thing. Do Money 2006 Deluxe owners get any special offers on Taxcut? -- Aloke ---- to reply by e-mail remove 123 and change invalid to com Excel. I'll probably use the Quicken free efile and then put my own data in the free state online system. "Aloke Prasad" <aprasad123@columbus.rr.invalid> wrote in message news:esnx6uG$FHA.3564@TK2MSFTNGP10.phx.gbl... > TurboTax is too expensive ($40 + electronic filing fees), TaxCut is $30 > and i...

count number of characters in rich edit control
How can i count number of characters in rich edit control 2 If u mean controls of type Rich TextBox control, try RichControl1 RC1; CString Mes=RC.GetText(); int n=Mes.GetLength(); "Rahul" <Rahul@discussions.microsoft.com> wrote in message news:7743023C-EA83-4ACA-AB67-F1AE7279F1EB@microsoft.com... > How can i count number of characters in rich edit control 2 EM_GETTEXTLENGTHEX, WM_GETTEXTLENGTH, WM_GETTEXT, EM_STREAM* "Rahul" <Rahul@discussions.microsoft.com> wrote in message news:7743023C-EA83-4ACA-AB67-F1AE7279F1EB@microsoft.com... > How can i co...

Bold Grid Lines
I have a company expense form that has bold grid lines for all of the rows. I removed several of the rows last month and now have had to add them back but I cannot get the grid lines to show or print out as bold even though I have indicated that the grid lines should be printed. I am using Excel 2002 with SP2. Thanks for your help. Paul (ctunes) Select the range, format>cells>border Carlos "Ctunes" <Ctunes@discussions.microsoft.com> wrote in message news:0F20A454-A9D0-48C4-80D8-F36DD2B46826@microsoft.com... > I have a company expense form that has bold grid l...

Extra Blank Lines
The following macro imports a text file and sorts horse races in time order and puts a blank line in between each race time (which is at the end of the code), which it does admirably. I had some valuable help with this project from group members recently. However, it does create quite a few blank lines en bloc. It's not really a problem, as I search them out and do a delete. Below is the code which a member might use in order to find the cause of the blank lines? Sub Macro1() Range("A2:J601").Select Selection.ClearContents Range("A2").Select ...

Counting sales
I have two different datasets. Each with a common identifier. I need a formula that will reference the identifiers in both datasets and count the number of sales a particular agent made. Example. look up this identifier in the other dataset and then give me the value that is 2 columns over from the identifier in the second dataset. See if this helps: http://contextures.com/xlFunctions02.html -- Biff Microsoft Excel MVP "Dave" <Dave@discussions.microsoft.com> wrote in message news:E7245B37-033F-400E-9CEE-9822BE7CB0F5@microsoft.com... >I have two...

How do I fill different areas in a graph with multiple lines?
I have a graph with three separate lines that cross each other. I want to custom fill certain areas with different colors.....I don't think this is possible....or is it? ...

Counting Cells with Conditional Formatting
Is there a way to look at a row of data that is either highlighted yellow or red and to count only the data that is highlighted yellow and give me that number? None of my data is numerical....just one letter data, i.e.: "S" or "U" I just want to count how many of the cells are highlighted yellow in a specific row, if that makes more sense. Here's a UDF (Put in a Standard module) and use it in cell A1, like =CountByColor(A8:H8,6) << where 6 (at present) = Yellow = change to =CountByColor(A8:H8,3) to get the reds HTH Function CountByColor(InRa...

COUNT ? need formula
Hi, I want to track the results of my teams sales performance. I record if it is a sale, no sale, cancelled etc in column M. I thought I'd be able to use the COUNT function/formula to be able to search for all the SALES in column M and place the result in a cell ( column O )but I can't work it out. Any ideas? Damian Hi! Try this: =COUNTIF(M1:M100,"sale") Biff "Diamond Jones" <kwanzaNOSPAM@optusnet.com.au> wrote in message news:43a0e897$0$17704$afc38c87@news.optusnet.com.au... > Hi, > > I want to track the results of my teams sales perf...

Count Function
I am creating a report for the number of pupils being collected at a certain collection time e.g. 14:00hr and 15:00hrs using the formula =Count([Child Last Name]) in the collection time footer However when i try to count the overall number of pupils in the footer using the same formula, 'Error' appears on screen? Thanks There are potentially a dozen footer sections in a report. Which one is giving you a problem? What is the name of the control? What is the exact formula? -- Duane Hookom Microsoft Access MVP "ELo" wrote: > I am creating a r...

Important task using visio
Hi, I have a very important presentation to give and am planning to give using visio but however am new to visio environment. Thepresentation is about say the task carried by 2 companies during a project that is the 2 companies share different responsibilities during project implementation The flow is: Comany A Task 1 Comapany B Task 2 Task 3 Company A Task 4 Company B Task 5 Task 6 The flow can be analogous to a computer program flow Can anyone help me how 2 implement in visio?? Hello Raj, There's the main Visio 2007 Help and How-to page over here: http://office.microsof...