PC Review


Reply
Thread Tools Rate Thread

Counting Cells with multiple criteria.One criteria supporting wild

 
 
=?Utf-8?B?QXpoYXIgQXJhaW4=?=
Guest
Posts: n/a
 
      12th Jan 2005
How can I count cells starting with character "C" in second column and
related with the name John only.


John Car
Steve Bus
Bush Cycle
Powell Truck
Bruce Van
Bush Car
Powell Bus
Powell Cycle
Bruce Truck
John Van
Steve Car
Steve Bus
Bush Cycle
Powell Truck
John Van
John Cycle
John Car

 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      12th Jan 2005
Assuming the source data is in cols A and B,

Try in say, C1:

=SUMPRODUCT((TRIM(A1:A100)="John")*(LEFT(TRIM(B1:B100),1)="C"))

Adjust the ranges to suit

Note: You can't use entire col references (A:A, B:B, etc) in SUMPRODUCT

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
"Azhar Arain" <Azhar (E-Mail Removed)> wrote in message
news71956AF-48D7-4897-8CB3-(E-Mail Removed)...
> How can I count cells starting with character "C" in second column and
> related with the name John only.
>
>
> John Car
> Steve Bus
> Bush Cycle
> Powell Truck
> Bruce Van
> Bush Car
> Powell Bus
> Powell Cycle
> Bruce Truck
> John Van
> Steve Car
> Steve Bus
> Bush Cycle
> Powell Truck
> John Van
> John Cycle
> John Car
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting cells with multiple criteria Charlie510 Microsoft Excel Worksheet Functions 3 26th Aug 2008 05:10 PM
counting cells using multiple criteria st120869 Microsoft Excel Programming 5 1st Mar 2006 10:33 PM
Counting multiple cells using a criteria =?Utf-8?B?Sm9obg==?= Microsoft Excel Misc 1 14th Jun 2005 04:51 PM
Counting Cells with multiple criteria.One criteria supporting wild =?Utf-8?B?QXpoYXIgU2FsZWVt?= Microsoft Excel Worksheet Functions 0 12th Jan 2005 07:51 AM
Counting cells using multiple criteria Atchy Microsoft Excel Charting 2 7th May 2004 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 PM.