PC Review


Reply
Thread Tools Rate Thread

Count values in different columns

 
 
Chris S.
Guest
Posts: n/a
 
      20th Feb 2008
I want a to calculate the number of values in row A for the corresponding
value in row C that is great than 1.
For example in row 4 in column A I have 0.0099 but 0 in column C in row 4,
therefore the result would be 0. For the whole column A the correct result
should be 3.
A B C
0.0134 10711
0.0160 8071
0.0170 16410
0.0099 0
0.0103 0
0.0085 8827
0.0135 0
0.0050 0.0164 0
0.0093 0
0.0105 16313



--
Chris
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      20th Feb 2008
Chris,

Try

=SUMPRODUCT((A1:A20>0)*(C1:C20>0))

Mike

"Chris S." wrote:

> I want a to calculate the number of values in row A for the corresponding
> value in row C that is great than 1.
> For example in row 4 in column A I have 0.0099 but 0 in column C in row 4,
> therefore the result would be 0. For the whole column A the correct result
> should be 3.
> A B C
> 0.0134 10711
> 0.0160 8071
> 0.0170 16410
> 0.0099 0
> 0.0103 0
> 0.0085 8827
> 0.0135 0
> 0.0050 0.0164 0
> 0.0093 0
> 0.0105 16313
>
>
>
> --
> Chris

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      20th Feb 2008
Sorry tiy said greater than 1

=SUMPRODUCT((A1:A20>0)*(C1:C20>1))

Mike

"Chris S." wrote:

> I want a to calculate the number of values in row A for the corresponding
> value in row C that is great than 1.
> For example in row 4 in column A I have 0.0099 but 0 in column C in row 4,
> therefore the result would be 0. For the whole column A the correct result
> should be 3.
> A B C
> 0.0134 10711
> 0.0160 8071
> 0.0170 16410
> 0.0099 0
> 0.0103 0
> 0.0085 8827
> 0.0135 0
> 0.0050 0.0164 0
> 0.0093 0
> 0.0105 16313
>
>
>
> --
> Chris

 
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
How to count with values from multiple columns? PF Microsoft Excel Worksheet Functions 5 19th Nov 2009 01:57 AM
How to count rows with values in two columns Stapes Microsoft Excel Discussion 1 26th Jul 2007 02:23 PM
Formula to count values in two columns =?Utf-8?B?SkJ1cmxhZ2U=?= Microsoft Excel Misc 6 31st Aug 2006 12:59 PM
I would like to Count values in two columns. =?Utf-8?B?Um9uaQ==?= Microsoft Excel Worksheet Functions 6 5th Jun 2006 03:23 PM
How do I count values across multiple columns? elsenorjose@sbcglobal.net Microsoft Excel Worksheet Functions 4 21st Mar 2006 11:13 PM


Features
 

Advertising
 

Newsgroups
 


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