#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

I am putting together a spreadsheet where I need Excel to count both when a
class is scheduled and when a grade is entered. When the class is scheduled
the cell will contain a number designanting the term like 101. Later when
the student recieves a grade the cell would contain the number and the letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only or a
number and a letter but NOT just a letter. Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNTIF

So, a cell will contain either a number, a number combined with a letter or
a letter?

Is the number *always* a 3 digit number? Is the letter *always* a single
letter? Do you want to count a range of cells or is this just supposed to
check a single cell?

--
Biff
Microsoft Excel MVP


"PatrickP" wrote in message
...
I am putting together a spreadsheet where I need Excel to count both when a
class is scheduled and when a grade is entered. When the class is
scheduled
the cell will contain a number designanting the term like 101. Later when
the student recieves a grade the cell would contain the number and the
letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only or a
number and a letter but NOT just a letter. Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default COUNTIF

Hi Patrick,

you could try something like this

=COUNTA(B1:B21)-COUNTIF(B1:B21,"=A")-COUNTIF(B1:B21,"GG")

This will count all the non blank cells and then minus the count of cells
which are equal or greater than A and less than or equal to GG

Change the A and the GG to suit your letters.
Check as I think that this is case sensitive
Change the range to suit


"PatrickP" wrote:

I am putting together a spreadsheet where I need Excel to count both when a
class is scheduled and when a grade is entered. When the class is scheduled
the cell will contain a number designanting the term like 101. Later when
the student recieves a grade the cell would contain the number and the letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only or a
number and a letter but NOT just a letter. Thank you!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

The cell would contain either a 3 digit number OR a 3 digit number with a
letter. For example, 101 or 101A. I want either to be counted and I want it
to count a range of cells. Thanks.

"T. Valko" wrote:

So, a cell will contain either a number, a number combined with a letter or
a letter?

Is the number *always* a 3 digit number? Is the letter *always* a single
letter? Do you want to count a range of cells or is this just supposed to
check a single cell?

--
Biff
Microsoft Excel MVP


"PatrickP" wrote in message
...
I am putting together a spreadsheet where I need Excel to count both when a
class is scheduled and when a grade is entered. When the class is
scheduled
the cell will contain a number designanting the term like 101. Later when
the student recieves a grade the cell would contain the number and the
letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only or a
number and a letter but NOT just a letter. Thank you!



.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

Winnie: Is COUNTA telling Excel to "count all?"

"winnie123" wrote:

Hi Patrick,

you could try something like this

=COUNTA(B1:B21)-COUNTIF(B1:B21,"=A")-COUNTIF(B1:B21,"GG")

This will count all the non blank cells and then minus the count of cells
which are equal or greater than A and less than or equal to GG

Change the A and the GG to suit your letters.
Check as I think that this is case sensitive
Change the range to suit


"PatrickP" wrote:

I am putting together a spreadsheet where I need Excel to count both when a
class is scheduled and when a grade is entered. When the class is scheduled
the cell will contain a number designanting the term like 101. Later when
the student recieves a grade the cell would contain the number and the letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only or a
number and a letter but NOT just a letter. Thank you!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default COUNTIF

Hi Patrick,

Yes COUNTA counts all nonblank cells within the range

"PatrickP" wrote:

Winnie: Is COUNTA telling Excel to "count all?"

"winnie123" wrote:

Hi Patrick,

you could try something like this

=COUNTA(B1:B21)-COUNTIF(B1:B21,"=A")-COUNTIF(B1:B21,"GG")

This will count all the non blank cells and then minus the count of cells
which are equal or greater than A and less than or equal to GG

Change the A and the GG to suit your letters.
Check as I think that this is case sensitive
Change the range to suit


"PatrickP" wrote:

I am putting together a spreadsheet where I need Excel to count both when a
class is scheduled and when a grade is entered. When the class is scheduled
the cell will contain a number designanting the term like 101. Later when
the student recieves a grade the cell would contain the number and the letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only or a
number and a letter but NOT just a letter. Thank you!

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default COUNTIF

That is all cells with data

"winnie123" wrote:

Hi Patrick,

Yes COUNTA counts all nonblank cells within the range

"PatrickP" wrote:

Winnie: Is COUNTA telling Excel to "count all?"

"winnie123" wrote:

Hi Patrick,

you could try something like this

=COUNTA(B1:B21)-COUNTIF(B1:B21,"=A")-COUNTIF(B1:B21,"GG")

This will count all the non blank cells and then minus the count of cells
which are equal or greater than A and less than or equal to GG

Change the A and the GG to suit your letters.
Check as I think that this is case sensitive
Change the range to suit


"PatrickP" wrote:

I am putting together a spreadsheet where I need Excel to count both when a
class is scheduled and when a grade is entered. When the class is scheduled
the cell will contain a number designanting the term like 101. Later when
the student recieves a grade the cell would contain the number and the letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only or a
number and a letter but NOT just a letter. Thank you!

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNTIF

I would like it to count if there is either a number only
or a number and a letter but NOT just a letter.
The cell would contain either a 3 digit number
OR a 3 digit number with a letter.


Try this...

=SUMPRODUCT(--(LEN(A1:A10)1))

--
Biff
Microsoft Excel MVP


"PatrickP" wrote in message
...
The cell would contain either a 3 digit number OR a 3 digit number with a
letter. For example, 101 or 101A. I want either to be counted and I want
it
to count a range of cells. Thanks.

"T. Valko" wrote:

So, a cell will contain either a number, a number combined with a letter
or
a letter?

Is the number *always* a 3 digit number? Is the letter *always* a single
letter? Do you want to count a range of cells or is this just supposed to
check a single cell?

--
Biff
Microsoft Excel MVP


"PatrickP" wrote in message
...
I am putting together a spreadsheet where I need Excel to count both
when a
class is scheduled and when a grade is entered. When the class is
scheduled
the cell will contain a number designanting the term like 101. Later
when
the student recieves a grade the cell would contain the number and the
letter
grade, like 101A. How do I get Excel to count the cell under either
condition. I would like it to count if there is either a number only
or a
number and a letter but NOT just a letter. Thank you!



.



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
=countif ??? Tammy Excel Discussion (Misc queries) 0 November 29th 06 03:18 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 02:41 PM.

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

About Us

"It's about Microsoft Excel"