#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default countif

Hi all
In Column AA rows 8 thru 13 I have a list of names. These names vary as we
move along Columns
In AA14 I would like to place a countif formula to give the total number of
names in each column

Along the lines of =countif(aa8:aa13,istext)

Any help welcome

Best

Stew
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default countif

What do the cells without names have in them? Are they blank or "" or
something else?

You could use:
(i) COUNTA to count all non-blank cells; or
(ii) 6-COUNTIF(AA8:AA13,istext) where istext is ""

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 175
Default countif

do you just want to have the number of count that occupy AA8 to AA13 or
you want to count a specific name in the range?

if the formal, you can use COUNTA to find the total number of names in the
range
=COUNTA(AA8:AA13)
this will counts the number of cells that are not empty in the list

if the later, try =COUNTIF(AA8:AA13,B14)
B14 is where you will input the name you want to count in the list.


--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked


Thank You

cheers, francis


"stew" wrote:

Hi all
In Column AA rows 8 thru 13 I have a list of names. These names vary as we
move along Columns
In AA14 I would like to place a countif formula to give the total number of
names in each column

Along the lines of =countif(aa8:aa13,istext)

Any help welcome

Best

Stew

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default countif

Hi Francis and Test

I can see now that this is going to be more difficult than I thought.
In aa8 - aa13 We have a Formula
=IF(AA$3="NONE","",IF(RIGHT(INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6))),6)="MEMBER"," ",INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6)))))

The result of which, as you can see, displays a blank or a name.

All Counta or Countif Formua appear to be counting the Formula as a text
string. This is my problem
I do not want the Formula counted only the result of the formula

Thanks for your time

Best

Stew
"Test" wrote:

What do the cells without names have in them? Are they blank or "" or
something else?

You could use:
(i) COUNTA to count all non-blank cells; or
(ii) 6-COUNTIF(AA8:AA13,istext) where istext is ""


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default countif

Use the formula "=6-COUNTIF(AA8:AA13," ")"


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default countif

On 3/14/09 10:52 AM, stew wrote:

Hi Francis and Test

I can see now that this is going to be more difficult than I thought.
In aa8 - aa13 We have a Formula
=IF(AA$3="NONE","",IF(RIGHT(INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6))),6)="MEMBER"," ",INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6)))))

The result of which, as you can see, displays a blank or a name.

All Counta or Countif Formua appear to be counting the Formula as a text
string. This is my problem
I do not want the Formula counted only the result of the formula

Thanks for your time

Best

Stew
"Test" wrote:

What do the cells without names have in them? Are they blank or "" or
something else?

You could use:
(i) COUNTA to count all non-blank cells; or
(ii) 6-COUNTIF(AA8:AA13,istext) where istext is ""


Stew,
This should do what you want:

=ROWS(AA8:AA13)-COUNTBLANK(AA8:AA13)

COUNTA, ISBLANK, etc. examines the contents of cells. Formulas count as
part of the contents and therefore are not empty.

COUNTBLANK counts cells that are actually empty cells plus cells with
formulas that return "", as in your situation.
--
Art
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default countif

Hi Test

I Used It as shown But it gives the result 6 if there is 6 names or 6 if
there is no names!!

Any other thoughts

Stew

"Test" wrote:

Use the formula "=6-COUNTIF(AA8:AA13," ")"

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default countif

Change it to "=6-COUNTIF(AA8:AA13,"")" and change your formulas so that " "
equals "" so the blank results are consistent.

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 175
Default countif

try

=SUMPRODUCT(--(AA3:AA13<""))

if your existing formula return a blank, the blank will not be count
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked


Thank You

cheers, francis










"stew" wrote:

Hi Francis and Test

I can see now that this is going to be more difficult than I thought.
In aa8 - aa13 We have a Formula
=IF(AA$3="NONE","",IF(RIGHT(INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6))),6)="MEMBER"," ",INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6)))))

The result of which, as you can see, displays a blank or a name.

All Counta or Countif Formua appear to be counting the Formula as a text
string. This is my problem
I do not want the Formula counted only the result of the formula

Thanks for your time

Best

Stew
"Test" wrote:

What do the cells without names have in them? Are they blank or "" or
something else?

You could use:
(i) COUNTA to count all non-blank cells; or
(ii) 6-COUNTIF(AA8:AA13,istext) where istext is ""


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default countif

Thank you Art Test and Francis for your assistance and Efforts
That has doe the trick, And I understand as well!!

Best

Stew

"Art" wrote:

On 3/14/09 10:52 AM, stew wrote:

Hi Francis and Test

I can see now that this is going to be more difficult than I thought.
In aa8 - aa13 We have a Formula
=IF(AA$3="NONE","",IF(RIGHT(INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6))),6)="MEMBER"," ",INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6)))))

The result of which, as you can see, displays a blank or a name.

All Counta or Countif Formua appear to be counting the Formula as a text
string. This is my problem
I do not want the Formula counted only the result of the formula

Thanks for your time

Best

Stew
"Test" wrote:

What do the cells without names have in them? Are they blank or "" or
something else?

You could use:
(i) COUNTA to count all non-blank cells; or
(ii) 6-COUNTIF(AA8:AA13,istext) where istext is ""


Stew,
This should do what you want:

=ROWS(AA8:AA13)-COUNTBLANK(AA8:AA13)

COUNTA, ISBLANK, etc. examines the contents of cells. Formulas count as
part of the contents and therefore are not empty.

COUNTBLANK counts cells that are actually empty cells plus cells with
formulas that return "", as in your situation.
--
Art



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default countif

Hi Francis

That returns a 10 where the correct answer is 6.

Art has given me =ROWS(AA8:AA13)-COUNTBLANK(AA8:AA13)
Which is doing the Business.

Thank you very much for your time and efforts

Best

Stew

"francis" wrote:

try

=SUMPRODUCT(--(AA3:AA13<""))

if your existing formula return a blank, the blank will not be count
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked


Thank You

cheers, francis










"stew" wrote:

Hi Francis and Test

I can see now that this is going to be more difficult than I thought.
In aa8 - aa13 We have a Formula
=IF(AA$3="NONE","",IF(RIGHT(INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6))),6)="MEMBER"," ",INDIRECT("'Personel
'!"&ADDRESS(4,(INT(ROW()/1)-6)))))

The result of which, as you can see, displays a blank or a name.

All Counta or Countif Formua appear to be counting the Formula as a text
string. This is my problem
I do not want the Formula counted only the result of the formula

Thanks for your time

Best

Stew
"Test" wrote:

What do the cells without names have in them? Are they blank or "" or
something else?

You could use:
(i) COUNTA to count all non-blank cells; or
(ii) 6-COUNTIF(AA8:AA13,istext) where istext is ""


  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default countif

=counta(AA8:AA13)

will count the number of cells that have something in them. A formula that
evaluates to "" will be counted.

A cell that contained a formula that evaluated to "" and converted to values
will be counted.

An empty cell (edit|Clear|contents or hitting the delete key to clear the cell)
will not be counted

stew wrote:

Hi all
In Column AA rows 8 thru 13 I have a list of names. These names vary as we
move along Columns
In AA14 I would like to place a countif formula to give the total number of
names in each column

Along the lines of =countif(aa8:aa13,istext)

Any help welcome

Best

Stew


--

Dave Peterson
  #13   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default countif


Francis, I read your post using Countif() to another user. I
UNDERSTOOD! I am amazed. LOL

I have a followon question. I want to use the equivalent of COUNTIFS()
(Excel 2007). My girlfriend has 2003 and my spreadsheet is NOT backward
compatible. SO, I have write the function using a compound COUNTIF()
function or some equivalent, to evaluate two different coulumns.

For example the logic would be
IF the item in Column A = "Yes"
AND if the item in Column B = "Red"
THEN count it
OTHERWISE don't count
NEXT ROW loop to IF above.

Can you help me put this logic into a formula that will work in 2007 and 2003?

I would appreciate the help.
You can also respond back to me directly at or 314.331.7520.

Thanks much for your help.
ROn Montgomery

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 dinadvani via OfficeKB.com Excel Discussion (Misc queries) 3 July 27th 06 10:59 AM
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 01:17 PM.

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"