MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 03:22 PM   #1
Steve Rosenberg
 
Join Date: Sep 2003
Posts: 40
Default Formula to count the number of rows

Hi,
I'm seeking a formula that will count the number of rows. I have a list of invoices that changes with each update. I need to keep a running total of the number of invoices.

Please let me know if there is a formula.

Thanks,
Steve
Steve Rosenberg is offline   Reply With Quote
Old Mar 30th, 2004, 03:24 PM   #2
just_jon
MrExcel MVP
 
just_jon's Avatar
 
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
Default Re: Formula to count the number of rows

Any blank rows in the range?

Is the range filled with text or numeric data?
__________________
just_jon
Book of the Month: I'm Not Really an MVP, I Just Play One on TV [j. jon, 2004]
just_jon is offline   Reply With Quote
Old Mar 30th, 2004, 03:25 PM   #3
onlyadrafter
 
Join Date: Aug 2003
Location: England
Posts: 4,584
Default Re: Formula to count the number of rows

Hello,

Probably a better way but I use this

=COUNTIF(A:A,"<>")
__________________
-------------------------
Hope this is helpful.
-------------------------
only a drafter,
but broadening my Excel knowledge.
onlyadrafter is offline   Reply With Quote
Old Mar 30th, 2004, 03:33 PM   #4
just_jon
MrExcel MVP
 
just_jon's Avatar
 
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
Default Re: Formula to count the number of rows

OK; Data in column A, some blanks --

=COUNTA($A$1:$A1000)

will give you a count of how many cells in A1:A1000 have something in them
__________________
just_jon
Book of the Month: I'm Not Really an MVP, I Just Play One on TV [j. jon, 2004]
just_jon is offline   Reply With Quote
Old Mar 30th, 2004, 03:34 PM   #5
Steve Rosenberg
 
Join Date: Sep 2003
Posts: 40
Default

Hi Onlyadrafter,
your formula works perfectly...thank you very much.

Hi Just_Jon,
thank you also for getting back to me.


Steve
Steve Rosenberg is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 07:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.