Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 41
Default Count occurences over range if a certain criteria met

Hi

I have a named range, called Servers (B2:I50). Within this range I
want to count how many entries begin with New, so figure I need to use
Left somehow, but am not sure how I can use this in a single cell with
some countif/sumproduct function to count them all. Can anyone help
please?



B C

New1 Server C
Server A new3
Server B Server E
Server C Server F
New2 Server G
Server B Server D
Server A New 4


So this would return 4.


Cheers

Rich
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 303
Default Count occurences over range if a certain criteria met

=COUNTIF(B2:I50,"new*")

note the * after new
Greetings from New Zealand

"Richhall" wrote in message
...
Hi

I have a named range, called Servers (B2:I50). Within this range I
want to count how many entries begin with New, so figure I need to use
Left somehow, but am not sure how I can use this in a single cell with
some countif/sumproduct function to count them all. Can anyone help
please?



B C

New1 Server C
Server A new3
Server B Server E
Server C Server F
New2 Server G
Server B Server D
Server A New 4


So this would return 4.


Cheers

Rich



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 506
Default Count occurences over range if a certain criteria met

=COUNTIF(B:C,"NEW*")

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Richhall" wrote:

Hi

I have a named range, called Servers (B2:I50). Within this range I
want to count how many entries begin with New, so figure I need to use
Left somehow, but am not sure how I can use this in a single cell with
some countif/sumproduct function to count them all. Can anyone help
please?



B C

New1 Server C
Server A new3
Server B Server E
Server C Server F
New2 Server G
Server B Server D
Server A New 4


So this would return 4.


Cheers

Rich
.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 41
Default Count occurences over range if a certain criteria met

Excellent thank you, how do I count Unique entries please? Request has
moved on a notch!

i.e

Server A New1
New 1 New 2
Server B new 3
new 2 new 1

Would return 3.

Thank you

Rich
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 506
Default Count occurences over range if a certain criteria met

Assume that your data is starts From A1 cell and end with B4 cell.

A Col B Col
Row 1 Server A New1
Row 2 New 1 New 2
Row 3 Server B new 3
Row 4 new 2 new 1

Copy the below formula and place the cursor in any cell other than A1 to B4
cell and press F2 and give Cntrl+V and Press Cntrl+Shift+Enter since it is an
array formula.
=SUM(ISNUMBER(FIND("New",A1:B10))+0)

After pressing Cntrl+Shift+Enter the formula will be covered with Curly
Braces like the below in the Formulabar.

{=SUM(ISNUMBER(FIND("New",A1:B10))+0)}

Dont type the Curly Braces Manually.

--------------------
(Ms-Exl-Learner)
--------------------


"Richhall" wrote:

Excellent thank you, how do I count Unique entries please? Request has
moved on a notch!

i.e

Server A New1
New 1 New 2
Server B new 3
new 2 new 1

Would return 3.

Thank you

Rich
.



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 41
Default Count occurences over range if a certain criteria met

thank you, and Happy Chistmas.
  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 506
Default Count occurences over range if a certain criteria met

Thank you and you are welcome

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Richhall" wrote:

thank you, and Happy Chistmas.
.

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 text occurences in range when criteria in other column is me eliyahuz Excel Worksheet Functions 3 October 26th 09 05:36 PM
count occurences meeting criteria geebee Excel Worksheet Functions 8 July 17th 08 05:09 PM
How to count the occurences in my range with 2 characters only? Jen[_4_] Excel Worksheet Functions 5 June 27th 07 09:30 AM
How do I count occurences in a date range? Jeremy Excel Worksheet Functions 2 July 8th 05 11:21 PM
How do I count the number of alpha occurences in a range? CRM Excel Worksheet Functions 2 May 30th 05 04:08 PM


All times are GMT +1. The time now is 05:36 AM.

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"