PC Review


Reply
Thread Tools Rate Thread

Counting characters in multiple rows when rows meet specific criteria

 
 
news.virginmedia.com
Guest
Posts: n/a
 
      28th Jun 2008
Hi can anyone help with what seems a simple task that I can't fathom. I want
to count characters in rows if the row starts with a certain inital in the
first columb:

a x x x
b x x x x
c x x x x x
a x x x
b x
c x x x x x


So what is the total number of "x" in rows begining with "b"

I thought it would be simple but I cant work out can someone help at all,

thanks


 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      28th Jun 2008
Assuming the data starts in A1, that the last possible column that can
contain data is K (just to have an ending column to refer to in the formula;
change to suit your conditions) and the the maximum row where you could have
data is 100 (again, change to suit your conditions)...

=SUMPRODUCT((A1:A100="a")*(B1:K100="x"))

Rick


"news.virginmedia.com" <(E-Mail Removed)> wrote in message
news:NCt9k.165724$(E-Mail Removed)2...
> Hi can anyone help with what seems a simple task that I can't fathom. I
> want to count characters in rows if the row starts with a certain inital
> in the first columb:
>
> a x x x
> b x x x x
> c x x x x x
> a x x x
> b x
> c x x x x x
>
>
> So what is the total number of "x" in rows begining with "b"
>
> I thought it would be simple but I cant work out can someone help at all,
>
> thanks
>


 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      28th Jun 2008
>So what is the total number of "x" in rows begining with "b"

5

=SUMPRODUCT((A1:A6="B")*(B1:F6="X"))


--
Biff
Microsoft Excel MVP


"news.virginmedia.com" <(E-Mail Removed)> wrote in message
news:NCt9k.165724$(E-Mail Removed)2...
> Hi can anyone help with what seems a simple task that I can't fathom. I
> want to count characters in rows if the row starts with a certain inital
> in the first columb:
>
> a x x x
> b x x x x
> c x x x x x
> a x x x
> b x
> c x x x x x
>
>
> So what is the total number of "x" in rows begining with "b"
>
> I thought it would be simple but I cant work out can someone help at all,
>
> thanks
>



 
Reply With Quote
 
Martin
Guest
Posts: n/a
 
      28th Jun 2008
Thanks Rick and Biff very much appreciated

=SUMPRODUCT((A1:A100="a")*(B1:K100="x"))

=SUMPRODUCT((A1:A6="B")*(B1:F6="X"))

I can get on again now

thanks


"news.virginmedia.com" <(E-Mail Removed)> wrote in message
news:NCt9k.165724$(E-Mail Removed)2...
> Hi can anyone help with what seems a simple task that I can't fathom. I
> want to count characters in rows if the row starts with a certain inital
> in the first columb:
>
> a x x x
> b x x x x
> c x x x x x
> a x x x
> b x
> c x x x x x
>
>
> So what is the total number of "x" in rows begining with "b"
>
> I thought it would be simple but I cant work out can someone help at all,
>
> thanks
>



 
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 rows that meet multiple criteria sabow71 Microsoft Excel Worksheet Functions 5 23rd Apr 2009 04:50 PM
Counting rows that meet multiple criteria sabow71 Microsoft Excel Worksheet Functions 0 22nd Apr 2009 09:20 PM
Delete rows where 1st 3 characters in a cell DO NOT meet criteria Peruanos72 Microsoft Excel Programming 5 15th Apr 2009 08:46 PM
Counting rows that meet conditions in multiple columns belleinhell Microsoft Excel Worksheet Functions 3 21st Jul 2008 06:50 PM
Delete rows that do not meet specific criteria =?Utf-8?B?U0lUQ0ZhblRO?= Microsoft Excel Programming 3 6th Jun 2006 04:36 PM


Features
 

Advertising
 

Newsgroups
 


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