Consulting

Results 1 to 5 of 5

Thread: Solved: Counting rows?

  1. #1
    VBAX Regular
    Joined
    Jan 2005
    Location
    Kansas, land of Dorothy and Toto
    Posts
    36

    Solved: Counting rows?

    Help! I've just converted over to Office 2007 and am mired in ribbons, searching for things, and saying bad words under my breath. I need to know if there is a way to get a count of the number of rows in all the workseehts in a file. I have a spreadsheet with 11 sheets, they have anywhere from 25 to 63,345 rows each. I wanted to have a summary sheet that shows the name of each sheet and how many rows are on that sheet. How?
    Alas Babylon's Trivia Questions
    Three questions a day, Monday through Friday.
    To join, send e-mail to
    alasbabylon@gmail.com with SUBSCRIBE in the subject line.
    To leave, send e-mail to
    alasbabylon@gmail.com with UNSUBSCRIBE in the subject line
    http://groups.google.com/group/AlasBabylon?lnk=li

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    With or without VBA?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jan 2005
    Location
    Kansas, land of Dorothy and Toto
    Posts
    36
    Without, preferably. What I'd really like is to be able to have a column for worksheet name followed by a column for number of rows. If VBA is the best way to go, I can do that, with some heavy duty hand holding - I'm a VBA Dummy to the nth degree.
    Alas Babylon's Trivia Questions
    Three questions a day, Monday through Friday.
    To join, send e-mail to
    alasbabylon@gmail.com with SUBSCRIBE in the subject line.
    To leave, send e-mail to
    alasbabylon@gmail.com with UNSUBSCRIBE in the subject line
    http://groups.google.com/group/AlasBabylon?lnk=li

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you have a key column in each sheet, say A, you can simply use

    =COUNTIF(Sheet2!A:A<,"<>")

    If the rows might have embedded blanks and you nee to count them, you could use

    =MAX(IF(Sheet2!A1:A63345<>"",row(A1:A63345))

    as an array formula and so on
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Jan 2005
    Location
    Kansas, land of Dorothy and Toto
    Posts
    36
    AWESOME! Thanks so much! It works like a Charm!
    Alas Babylon's Trivia Questions
    Three questions a day, Monday through Friday.
    To join, send e-mail to
    alasbabylon@gmail.com with SUBSCRIBE in the subject line.
    To leave, send e-mail to
    alasbabylon@gmail.com with UNSUBSCRIBE in the subject line
    http://groups.google.com/group/AlasBabylon?lnk=li

Posting Permissions

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