A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count cells based upon criteria in other cells



 
 
Thread Tools Display Modes
  #1  
Old December 20th, 2009, 01:50 PM posted to microsoft.public.excel.worksheet.functions
JT
external usenet poster
 
Posts: 223
Default Count cells based upon criteria in other cells

The cells in column J contains donations made by various individuals. Cells
in column R contain certain member classifications. Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. EX: in
column R there are three classifications: RB1, RB2, RB3. Need to count how
many donations in column J are made by each classification.

Many thanks!
  #2  
Old December 20th, 2009, 01:54 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Count cells based upon criteria in other cells

Try the below formula

=COUNTIF(J:J,"RB1")

--
Jacob


"JT" wrote:

The cells in column J contains donations made by various individuals. Cells
in column R contain certain member classifications. Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. EX: in
column R there are three classifications: RB1, RB2, RB3. Need to count how
many donations in column J are made by each classification.

Many thanks!

  #3  
Old December 20th, 2009, 02:26 PM posted to microsoft.public.excel.worksheet.functions
JT
external usenet poster
 
Posts: 223
Default Count cells based upon criteria in other cells

Jacob:

Thanks, however this formula does not find the criterial thatis in the R
column. Thye J columb contains donations...the R column contains the
criteria that I need the formula to consider as it counts the corresponding J
column cells.

"Jacob Skaria" wrote:

Try the below formula

=COUNTIF(J:J,"RB1")

--
Jacob


"JT" wrote:

The cells in column J contains donations made by various individuals. Cells
in column R contain certain member classifications. Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. EX: in
column R there are three classifications: RB1, RB2, RB3. Need to count how
many donations in column J are made by each classification.

Many thanks!

  #4  
Old December 20th, 2009, 02:40 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Count cells based upon criteria in other cells

Do it this way, then:

=COUNTIF(R:R,"RB1")

and if you want to total the contributions which meet that criteria:

=SUMIF(R:R,"RB1",J:J)

Hope this helps.

Pete

On Dec 20, 2:26*pm, JT wrote:
Jacob:

Thanks, however this formula does not find the criterial thatis in the R
column. *Thye J columb contains donations...the R column contains the
criteria that I need the formula to consider as it counts the corresponding J
column cells.



"Jacob Skaria" wrote:
Try the below formula


=COUNTIF(J:J,"RB1")


--
Jacob


"JT" wrote:


The cells in column J contains donations made by various individuals. *Cells
in column R contain certain member classifications. *Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. *EX: *in
column R there are three classifications: *RB1, RB2, RB3. *Need to count how
many donations in column J are made by each classification.


Many thanks!- Hide quoted text -


- Show quoted text -


  #5  
Old December 20th, 2009, 03:14 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Count cells based upon criteria in other cells

Do you mean.

=COUNTIF(R:R,"RB1")

--
Jacob


"JT" wrote:

Jacob:

Thanks, however this formula does not find the criterial thatis in the R
column. Thye J columb contains donations...the R column contains the
criteria that I need the formula to consider as it counts the corresponding J
column cells.

"Jacob Skaria" wrote:

Try the below formula

=COUNTIF(J:J,"RB1")

--
Jacob


"JT" wrote:

The cells in column J contains donations made by various individuals. Cells
in column R contain certain member classifications. Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. EX: in
column R there are three classifications: RB1, RB2, RB3. Need to count how
many donations in column J are made by each classification.

Many thanks!

  #6  
Old December 20th, 2009, 04:10 PM posted to microsoft.public.excel.worksheet.functions
JT
external usenet poster
 
Posts: 223
Default Count cells based upon criteria in other cells

The SUMIF function works great, but I really need to know the number of cells
in J that correcpond to the number of RB1 criteria in column R; For example:
if there are 12 "RB1" designations out of 120 in R that have posted
contributions in the J column, I need the formula to return "12". If there
is no contribution listed in J for an RB1 designation in R, the formula
chould NOT count that J cell.

Does that help clarify what I'm looking for?


"Pete_UK" wrote:

Do it this way, then:

=COUNTIF(R:R,"RB1")

and if you want to total the contributions which meet that criteria:

=SUMIF(R:R,"RB1",J:J)

Hope this helps.

Pete

On Dec 20, 2:26 pm, JT wrote:
Jacob:

Thanks, however this formula does not find the criterial thatis in the R
column. Thye J columb contains donations...the R column contains the
criteria that I need the formula to consider as it counts the corresponding J
column cells.



"Jacob Skaria" wrote:
Try the below formula


=COUNTIF(J:J,"RB1")


--
Jacob


"JT" wrote:


The cells in column J contains donations made by various individuals. Cells
in column R contain certain member classifications. Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. EX: in
column R there are three classifications: RB1, RB2, RB3. Need to count how
many donations in column J are made by each classification.


Many thanks!- Hide quoted text -


- Show quoted text -


.

  #7  
Old December 20th, 2009, 04:25 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Count cells based upon criteria in other cells

Ah, right !! You didn't make that clear earlier - you have two
conditions to check for, rather than just one. COUNTIF (and SUMIF) can
only be used if you have one condition, so try this instead:

=SUMPRODUCT((R$1:R$100="RB1")*(J$1:J$100""))

This checks for column R containing RB1 AND J is not empty, and counts
the number that meet both criteria.

NOTE that you can't use full-column references with this function in
XL before version 2007, but adjust the ranges to suit your data (I've
assumed 100 rows).

Hope this helps.

Pete

On Dec 20, 4:10*pm, JT wrote:
The SUMIF function works great, but I really need to know the number of cells
in J that correcpond to the number of RB1 criteria in column R; *For example:
*if there are 12 "RB1" designations out of 120 in R that have posted
contributions in the J column, I need the formula to return "12". *If there
is no contribution listed in J for an RB1 designation in R, the formula
chould NOT count that J cell.

Does that help clarify what I'm looking for?



"Pete_UK" wrote:
Do it this way, then:


=COUNTIF(R:R,"RB1")


and if you want to total the contributions which meet that criteria:


=SUMIF(R:R,"RB1",J:J)


Hope this helps.


Pete


On Dec 20, 2:26 pm, JT wrote:
Jacob:


Thanks, however this formula does not find the criterial thatis in the R
column. *Thye J columb contains donations...the R column contains the
criteria that I need the formula to consider as it counts the corresponding J
column cells.


"Jacob Skaria" wrote:
Try the below formula


=COUNTIF(J:J,"RB1")


--
Jacob


"JT" wrote:


The cells in column J contains donations made by various individuals. *Cells
in column R contain certain member classifications. *Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. *EX: *in
column R there are three classifications: *RB1, RB2, RB3. *Need to count how
many donations in column J are made by each classification.


Many thanks!- Hide quoted text -


- Show quoted text -


.- Hide quoted text -


- Show quoted text -


  #8  
Old December 20th, 2009, 06:26 PM posted to microsoft.public.excel.worksheet.functions
JT
external usenet poster
 
Posts: 223
Default Count cells based upon criteria in other cells

Pete: Works perfectly. Many thanks!

JT

"Pete_UK" wrote:

Ah, right !! You didn't make that clear earlier - you have two
conditions to check for, rather than just one. COUNTIF (and SUMIF) can
only be used if you have one condition, so try this instead:

=SUMPRODUCT((R$1:R$100="RB1")*(J$1:J$100""))

This checks for column R containing RB1 AND J is not empty, and counts
the number that meet both criteria.

NOTE that you can't use full-column references with this function in
XL before version 2007, but adjust the ranges to suit your data (I've
assumed 100 rows).

Hope this helps.

Pete

On Dec 20, 4:10 pm, JT wrote:
The SUMIF function works great, but I really need to know the number of cells
in J that correcpond to the number of RB1 criteria in column R; For example:
if there are 12 "RB1" designations out of 120 in R that have posted
contributions in the J column, I need the formula to return "12". If there
is no contribution listed in J for an RB1 designation in R, the formula
chould NOT count that J cell.

Does that help clarify what I'm looking for?



"Pete_UK" wrote:
Do it this way, then:


=COUNTIF(R:R,"RB1")


and if you want to total the contributions which meet that criteria:


=SUMIF(R:R,"RB1",J:J)


Hope this helps.


Pete


On Dec 20, 2:26 pm, JT wrote:
Jacob:


Thanks, however this formula does not find the criterial thatis in the R
column. Thye J columb contains donations...the R column contains the
criteria that I need the formula to consider as it counts the corresponding J
column cells.


"Jacob Skaria" wrote:
Try the below formula


=COUNTIF(J:J,"RB1")


--
Jacob


"JT" wrote:


The cells in column J contains donations made by various individuals. Cells
in column R contain certain member classifications. Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. EX: in
column R there are three classifications: RB1, RB2, RB3. Need to count how
many donations in column J are made by each classification.


Many thanks!- Hide quoted text -


- Show quoted text -


.- Hide quoted text -


- Show quoted text -


.

  #9  
Old December 20th, 2009, 06:43 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Count cells based upon criteria in other cells

You're welcome - thanks for feeding back.

Pete

On Dec 20, 6:26*pm, JT wrote:
Pete: *Works perfectly. *Many thanks!

JT



"Pete_UK" wrote:
Ah, right !! You didn't make that clear earlier - you have two
conditions to check for, rather than just one. COUNTIF (and SUMIF) can
only be used if you have one condition, so try this instead:


=SUMPRODUCT((R$1:R$100="RB1")*(J$1:J$100""))


This checks for column R containing RB1 AND J is not empty, and counts
the number that meet both criteria.


NOTE that you can't use full-column references with this function in
XL before version 2007, but adjust the ranges to suit your data (I've
assumed 100 rows).


Hope this helps.


Pete


On Dec 20, 4:10 pm, JT wrote:
The SUMIF function works great, but I really need to know the number of cells
in J that correcpond to the number of RB1 criteria in column R; *For example:
*if there are 12 "RB1" designations out of 120 in R that have posted
contributions in the J column, I need the formula to return "12". *If there
is no contribution listed in J for an RB1 designation in R, the formula
chould NOT count that J cell.


Does that help clarify what I'm looking for?


"Pete_UK" wrote:
Do it this way, then:


=COUNTIF(R:R,"RB1")


and if you want to total the contributions which meet that criteria:


=SUMIF(R:R,"RB1",J:J)


Hope this helps.


Pete


On Dec 20, 2:26 pm, JT wrote:
Jacob:


Thanks, however this formula does not find the criterial thatis in the R
column. *Thye J columb contains donations...the R column contains the
criteria that I need the formula to consider as it counts the corresponding J
column cells.


"Jacob Skaria" wrote:
Try the below formula


=COUNTIF(J:J,"RB1")


--
Jacob


"JT" wrote:


The cells in column J contains donations made by various individuals. *Cells
in column R contain certain member classifications. *Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. *EX: *in
column R there are three classifications: *RB1, RB2, RB3. *Need to count how
many donations in column J are made by each classification.


Many thanks!- Hide quoted text -


- Show quoted text -


.- Hide quoted text -


- Show quoted text -


.- Hide quoted text -


- Show quoted text -


  #10  
Old December 20th, 2009, 07:09 PM posted to microsoft.public.excel.worksheet.functions
JT
external usenet poster
 
Posts: 223
Default Count cells based upon criteria in other cells

I have one more request.

I need a formula that looks at columns I and J. Column I contains
donations from 2009...J contains projected donations. Where there are
donations in cells in I, but no donation in adjacent cells in J, I'd like the
total from J. Example: in I5 there is a $50 donation, but no projected
donation in J5. The formula would return "1". Need the formula to look at
the range listed.

Thanks. thie will be the last one I post!

"JT" wrote:

The cells in column J contains donations made by various individuals. Cells
in column R contain certain member classifications. Am looking for a formula
that looks at column R, then counts the number of entries in the
corresponding cells in colum J for each member classsification. EX: in
column R there are three classifications: RB1, RB2, RB3. Need to count how
many donations in column J are made by each classification.

Many thanks!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:31 PM.


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