Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How to count COl3 with criteria in COl 1

I need to check for a value in column 1, and if true, count the value in the
same row in column 3.

Is it possible or feasible with Countif, or should I loop through the array
and set a counter etc.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default How to count COl3 with criteria in COl 1

Bobby

look at SUMIF rather than COUNTIF

Regards

Trevor


"Bobby" wrote in message
...
I need to check for a value in column 1, and if true, count the value in
the
same row in column 3.

Is it possible or feasible with Countif, or should I loop through the
array
and set a counter etc.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How to count COl3 with criteria in COl 1

I thought that SUmif couldn't be made to simply count. I need to count
ocurrances , not sum them up. I can devide the sum by number oof occurances
since I don't know how namy there will be and also, the numbers vary wildly.


"Trevor Shuttleworth" wrote:

Bobby

look at SUMIF rather than COUNTIF

Regards

Trevor


"Bobby" wrote in message
...
I need to check for a value in column 1, and if true, count the value in
the
same row in column 3.

Is it possible or feasible with Countif, or should I loop through the
array
and set a counter etc.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How to count COl3 with criteria in COl 1

=SUMIF(A:A,val,C:C)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bobby" wrote in message
...
I need to check for a value in column 1, and if true, count the value in

the
same row in column 3.

Is it possible or feasible with Countif, or should I loop through the

array
and set a counter etc.

Thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default How to count COl3 with criteria in COl 1

You can use SUMPRODUCT to count values in column C, where there is a
value in the same row in column A:

=SUMPRODUCT(--(A1:A17<""),--(C1:C17<""))

Bobby wrote:
I need to check for a value in column 1, and if true, count the value in the
same row in column 3.

Is it possible or feasible with Countif, or should I loop through the array
and set a counter etc.

Thanks



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How to count COl3 with criteria in COl 1

You said count the value, that is why Trevor suggested SUMIF. I thought the
same thing. Also, if you want to count them, which will you count, the
number in column A or column CO. Your requirement doesn't make sense to me.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bobby" wrote in message
...
I thought that SUmif couldn't be made to simply count. I need to count
ocurrances , not sum them up. I can devide the sum by number oof

occurances
since I don't know how namy there will be and also, the numbers vary

wildly.


"Trevor Shuttleworth" wrote:

Bobby

look at SUMIF rather than COUNTIF

Regards

Trevor


"Bobby" wrote in message
...
I need to check for a value in column 1, and if true, count the value

in
the
same row in column 3.

Is it possible or feasible with Countif, or should I loop through the
array
and set a counter etc.

Thanks






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count how many criteria in a column match criteria in another colu Charles Stover Excel Discussion (Misc queries) 3 March 6th 09 08:39 PM
if val in col3 is one of 13 codes (list), apply factor to val in c PBcorn Excel Worksheet Functions 1 July 29th 08 12:12 PM
Routine to find exact Row matches in Col1 Col2 Col3 but exact offsetting numbers in Col4 [email protected] Excel Discussion (Misc queries) 0 June 11th 08 11:30 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Sum Count of Criteria Every 3rd Row Sam via OfficeKB.com Excel Worksheet Functions 5 December 11th 05 02:21 AM


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"