PC Review


Reply
Thread Tools Rate Thread

Count positive value

 
 
Thyag
Guest
Posts: n/a
 
      7th Jan 2008
Hi,

I Need a formula to count all the positive values with an addtioonal
condition.

Example -
Column A Column B
100 A
200- A
300 A
400 B

In The above case i need the formula to get me the count all the
positive figures with a "A" in column B.


Thanks,
Thyag
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      7th Jan 2008
Use a formula like the following:

=SUMPRODUCT((A1:A5>0)*(B1:B5="A"))

Change the A1:A5 and B1:B5 references to the appropriate ranges.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Thyag" <(E-Mail Removed)> wrote in message
news:5e3befb4-bca6-432d-96b4-(E-Mail Removed)...
> Hi,
>
> I Need a formula to count all the positive values with an addtioonal
> condition.
>
> Example -
> Column A Column B
> 100 A
> 200- A
> 300 A
> 400 B
>
> In The above case i need the formula to get me the count all the
> positive figures with a "A" in column B.
>
>
> Thanks,
> Thyag


 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      7th Jan 2008

something like to sum a above 0
=sumproduct((a2:a22>0)*(b2:b22="a")*(a2:a22))
to just count
=sumproduct((a2:a22>0)*(b2:b22="a"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Thyag" <(E-Mail Removed)> wrote in message
news:5e3befb4-bca6-432d-96b4-(E-Mail Removed)...
> Hi,
>
> I Need a formula to count all the positive values with an addtioonal
> condition.
>
> Example -
> Column A Column B
> 100 A
> 200- A
> 300 A
> 400 B
>
> In The above case i need the formula to get me the count all the
> positive figures with a "A" in column B.
>
>
> Thanks,
> Thyag


 
Reply With Quote
 
Ron Coderre
Guest
Posts: n/a
 
      7th Jan 2008
Try something like this:

=SUMPRODUCT(ISNUMBER(A1:A10)*(A1:A10>0)*(B1:B10="A"))

I originally tried
=SUMPRODUCT((A1:A10>0)*(B1:B10="A"))

BUT....
if Col_A contains text (even an apostrophe)
with a corresponding "A" in Col_B

Example:
A5: Ron
B5: A

....That pair is counted.

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Thyag" <(E-Mail Removed)> wrote in message
news:5e3befb4-bca6-432d-96b4-(E-Mail Removed)...
> Hi,
>
> I Need a formula to count all the positive values with an addtioonal
> condition.
>
> Example -
> Column A Column B
> 100 A
> 200- A
> 300 A
> 400 B
>
> In The above case i need the formula to get me the count all the
> positive figures with a "A" in column B.
>
>
> Thanks,
> Thyag



 
Reply With Quote
 
Thyag
Guest
Posts: n/a
 
      8th Jan 2008
On Jan 7, 2:05*pm, "Ron Coderre" <ronREMOVETHIScode...@bigfoot.com>
wrote:
> Try something like this:
>
> =SUMPRODUCT(ISNUMBER(A1:A10)*(A1:A10>0)*(B1:B10="A"))
>
> I originally tried
> =SUMPRODUCT((A1:A10>0)*(B1:B10="A"))
>
> BUT....
> if Col_A contains text (even an apostrophe)
> with a corresponding "A" in Col_B
>
> Example:
> A5: Ron
> B5: A
>
> ...That pair is counted.
>
> Does that help?
> Post back if you have more questions.
> --------------------------
>
> Regards,
>
> Ron
> Microsoft MVP (Excel)
> (XL2003, Win XP)
>
> "Thyag" <thyagaraj.she...@gmail.com> wrote in message
>
> news:5e3befb4-bca6-432d-96b4-(E-Mail Removed)...
>
>
>
> > Hi,

>
> > I Need a formula to count all the positive values with an addtioonal
> > condition.

>
> > Example -
> > Column A * * * * Column B
> > 100 * * * * * * * * * *A
> > 200- * * * * * * * * * A
> > 300 * * * * * * * * * *A
> > 400 * * * * * * * * * *B

>
> > In The above case i need the formula to get me the count all the
> > positive figures with a "A" in column B.

>
> > Thanks,
> >Thyag- Hide quoted text -

>
> - Show quoted text -


Thanks all for your help.
 
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
count current run of positive numbers Morgan Microsoft Excel New Users 6 18th Nov 2009 02:09 AM
Count number of positive values in range Diddy Microsoft Excel Misc 7 9th Jul 2008 10:57 AM
Count cells with positive numbers Jamie Microsoft Excel Misc 5 24th Oct 2006 09:40 PM
How do I count how many positive and negative numbers in a couumn =?Utf-8?B?QXJ0IE5pdHRza29mZg==?= Microsoft Excel Misc 3 19th Oct 2006 10:22 PM
How to count positive changes in a row of data =?Utf-8?B?SmFzb24=?= Microsoft Excel Misc 5 7th Jun 2006 10:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:32 PM.