Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Counting Down to a Blank Row

I have a list of student names in Column A. They are grouped by class
period. The first row in each class period grouping has "Student Name" in
Column A. The subsequent rows have student names and then, after the last
student's name, there is a blank row. The periods have different number of
student in them. I need to put a formula in column G opposite the first name
in each period that will return the number of names in the period.

Example:
Column A Column G
Student Name
SAM Formula returns 4
GEORGE
SLIM
FRANK

Student Name
GEORGE Formula returns 3
ALLEN
HENRY


Student Name
etc

Any ideas would be welcome! Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Counting Down to a Blank Row

Allen,
The =CountA formula will do this. =CountA will count all cells within the
range specified that contain any type of data.

Based on your example, let's say the first name for the first course is in
cell A2 and the last one is in cell A5. Based on that, enter the following
formula into cell G2:
=CountA(A2:A5)

The beginning cell of the count is the cell in which the first name is
entered for that course. The ending cell for the countA will be the last is
entered for that course.

If this response is helpful, click on Yes for "Was this post helpful to you?"

Linda



"Allen" wrote:

I have a list of student names in Column A. They are grouped by class
period. The first row in each class period grouping has "Student Name" in
Column A. The subsequent rows have student names and then, after the last
student's name, there is a blank row. The periods have different number of
student in them. I need to put a formula in column G opposite the first name
in each period that will return the number of names in the period.

Example:
Column A Column G
Student Name
SAM Formula returns 4
GEORGE
SLIM
FRANK

Student Name
GEORGE Formula returns 3
ALLEN
HENRY


Student Name
etc

Any ideas would be welcome! Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Counting Down to a Blank Row

This was somewhat helpful. My problem is i want the formula to determine the
last cell to count...or, more specifically, the first row it comes to with a
blank cell. The classes are different sizes and I want each formula to start
with the row it's in (G2 for the first class) and count down until it finds a
Blank cell in Column A and count the number of students between that first
row and the blank row.

"ADB_Seeker" wrote:

Allen,
The =CountA formula will do this. =CountA will count all cells within the
range specified that contain any type of data.

Based on your example, let's say the first name for the first course is in
cell A2 and the last one is in cell A5. Based on that, enter the following
formula into cell G2:
=CountA(A2:A5)

The beginning cell of the count is the cell in which the first name is
entered for that course. The ending cell for the countA will be the last is
entered for that course.

If this response is helpful, click on Yes for "Was this post helpful to you?"

Linda



"Allen" wrote:

I have a list of student names in Column A. They are grouped by class
period. The first row in each class period grouping has "Student Name" in
Column A. The subsequent rows have student names and then, after the last
student's name, there is a blank row. The periods have different number of
student in them. I need to put a formula in column G opposite the first name
in each period that will return the number of names in the period.

Example:
Column A Column G
Student Name
SAM Formula returns 4
GEORGE
SLIM
FRANK

Student Name
GEORGE Formula returns 3
ALLEN
HENRY


Student Name
etc

Any ideas would be welcome! Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting Non Blank Cells Lindsey Excel Discussion (Misc queries) 4 April 8th 09 06:41 PM
Counting Non Blank Cells AJ[_2_] New Users to Excel 6 March 27th 08 11:06 PM
Counting non-blank cells Joe M. Excel Discussion (Misc queries) 7 July 23rd 07 09:36 PM
Counting blank cells geoff1234 Excel Discussion (Misc queries) 7 July 10th 06 11:29 AM
Counting With Blank Rows SMDIYDLI Excel Discussion (Misc queries) 4 December 21st 04 09:00 AM


All times are GMT +1. The time now is 12:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"