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

Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default count

Hi,

Try this array formula, see below on how to enter array formula. Change the
range to suit.

=COUNT(IF(ISERROR(SEARCH("anul",C1:C10)),IF(C1:C10 <"",1)))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"puiuluipui" wrote:

Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default count

One way:

=COUNTIF(C1:C20,"*")-COUNTIF(C1:C20,"*anul*")
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"puiuluipui" wrote in message
...
Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
Thanks!


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

One mo

=counta(a1:a20) - countif(a1:a20,"*(anul)*")



puiuluipui wrote:

Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
Thanks!


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default count

It's working!
Thanks allot!

"Dave Peterson" a scris:

One mo

=counta(a1:a20) - countif(a1:a20,"*(anul)*")



puiuluipui wrote:

Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
Thanks!


--

Dave Peterson



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

It's working!
Thanks allot!

"RagDyeR" a scris:

One way:

=COUNTIF(C1:C20,"*")-COUNTIF(C1:C20,"*anul*")
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"puiuluipui" wrote in message
...
Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
Thanks!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default count

It's working!
Thanks allot!

"Mike H" a scris:

Hi,

Try this array formula, see below on how to enter array formula. Change the
range to suit.

=COUNT(IF(ISERROR(SEARCH("anul",C1:C10)),IF(C1:C10 <"",1)))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"puiuluipui" wrote:

Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
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
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 09:57 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"