PC Review


Reply
Thread Tools Rate Thread

countif again sorry

 
 
RobcPettit
Guest
Posts: n/a
 
      17th Nov 2006
Sorry, Im not thinking my questions through proply and missing bits of.
Ok if I have in range a1:a13 the letters H or S, doesnt matter on order
or how many of each. Then in b1:b13 I have numbers 1 through to 13. Is
it possible to count how many in b1:b13 are greater that 3 if a1:a13 =
S. For instance
a1 = h b1 = 5
a2 =s b2 = 1
a3 = s b3 = 4
a4 = h b4 = 10
etc therefore only 1 meets my criteria. Id like ti use a worksheet
function if possible.
Regards Robert

 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      17th Nov 2006
i'm no sumproduct expert like bob p, but i'll take a stab

give this a try

=SUMPRODUCT(-(A1:A4="s"),-(B1:B4>3),B1:B4)

--


Gary


"RobcPettit" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sorry, Im not thinking my questions through proply and missing bits of.
> Ok if I have in range a1:a13 the letters H or S, doesnt matter on order
> or how many of each. Then in b1:b13 I have numbers 1 through to 13. Is
> it possible to count how many in b1:b13 are greater that 3 if a1:a13 =
> S. For instance
> a1 = h b1 = 5
> a2 =s b2 = 1
> a3 = s b3 = 4
> a4 = h b4 = 10
> etc therefore only 1 meets my criteria. Id like ti use a worksheet
> function if possible.
> Regards Robert
>



 
Reply With Quote
 
RobcPettit
Guest
Posts: n/a
 
      17th Nov 2006
Thankyou for your reply. I added your formula and when i deleted the
last part b1:b4 it worked perfect.

Regards Robert
Gary Keramidas wrote:
> i'm no sumproduct expert like bob p, but i'll take a stab
>
> give this a try
>
> =SUMPRODUCT(-(A1:A4="s"),-(B1:B4>3),B1:B4)
>
> --
>
>
> Gary
>
>
> "RobcPettit" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Sorry, Im not thinking my questions through proply and missing bits of.
> > Ok if I have in range a1:a13 the letters H or S, doesnt matter on order
> > or how many of each. Then in b1:b13 I have numbers 1 through to 13. Is
> > it possible to count how many in b1:b13 are greater that 3 if a1:a13 =
> > S. For instance
> > a1 = h b1 = 5
> > a2 =s b2 = 1
> > a3 = s b3 = 4
> > a4 = h b4 = 10
> > etc therefore only 1 meets my criteria. Id like ti use a worksheet
> > function if possible.
> > Regards Robert
> >


 
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
COUNTIF is Off by 1 GooseMA Microsoft Excel Misc 4 8th Dec 2009 05:04 PM
Can I use COUNTIF with OR? AA Arens Microsoft Excel Discussion 3 20th Nov 2006 04:11 PM
How do I use a countif function according to two other countif fu. =?Utf-8?B?S2lyc3R5?= Microsoft Excel Worksheet Functions 2 20th Feb 2006 11:44 AM
COUNTIF or not to COUNTIF on a range in another sheet =?Utf-8?B?RWxsaWU=?= Microsoft Excel Worksheet Functions 4 15th Sep 2005 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? =?Utf-8?B?Sm9ubmllUA==?= Microsoft Excel Worksheet Functions 3 22nd Feb 2005 02:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:58 AM.