ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count Cells Using Multiple Citeria (https://www.excelbanter.com/excel-discussion-misc-queries/121893-count-cells-using-multiple-citeria.html)

kjguillermo

Count Cells Using Multiple Citeria
 
I need to know how many cells in Column H meet 3 different results using
multiple criteria using the following as an example :

G H
6 1000 75.7
7 0 0.00
8 2470 80.33
9 330 58.93
10 5544 69.96
11 408 65.28
12 7633 65.38
14 0 0.00
15 1066 73.52

For the first result, I need to know how many cells are OR=G6 AND OR=H6
For the second result, I need to know how many cells are OR=G6 AND between
<H6 and H6*.9
For the third result, I need to know how many cells are OR=G6 AND between
<H6*.9 and 1.

Thank you in advance for all of your help!!!


JMB

Count Cells Using Multiple Citeria
 
I hope I understand correctly, try:

=SUMPRODUCT(--(G7:G14=G6),--(H7:H14=H6))
=SUMPRODUCT(--(G7:G14=G6),--(H7:H140.9*H6),--(H7:H14<H6))
=SUMPRODUCT(--(G7:G14=G6),--(H7:H140.9*H6),--(H7:H14<1))



"kjguillermo" wrote:

I need to know how many cells in Column H meet 3 different results using
multiple criteria using the following as an example :

G H
6 1000 75.7
7 0 0.00
8 2470 80.33
9 330 58.93
10 5544 69.96
11 408 65.28
12 7633 65.38
14 0 0.00
15 1066 73.52

For the first result, I need to know how many cells are OR=G6 AND OR=H6
For the second result, I need to know how many cells are OR=G6 AND between
<H6 and H6*.9
For the third result, I need to know how many cells are OR=G6 AND between
<H6*.9 and 1.

Thank you in advance for all of your help!!!


kjguillermo

Count Cells Using Multiple Citeria
 
JMB-
Most Excellent!!! Worked exactly how I needed it to work! Thanks a bunch!!!

"JMB" wrote:

I hope I understand correctly, try:

=SUMPRODUCT(--(G7:G14=G6),--(H7:H14=H6))
=SUMPRODUCT(--(G7:G14=G6),--(H7:H140.9*H6),--(H7:H14<H6))
=SUMPRODUCT(--(G7:G14=G6),--(H7:H140.9*H6),--(H7:H14<1))



"kjguillermo" wrote:

I need to know how many cells in Column H meet 3 different results using
multiple criteria using the following as an example :

G H
6 1000 75.7
7 0 0.00
8 2470 80.33
9 330 58.93
10 5544 69.96
11 408 65.28
12 7633 65.38
14 0 0.00
15 1066 73.52

For the first result, I need to know how many cells are OR=G6 AND OR=H6
For the second result, I need to know how many cells are OR=G6 AND between
<H6 and H6*.9
For the third result, I need to know how many cells are OR=G6 AND between
<H6*.9 and 1.

Thank you in advance for all of your help!!!


JMB

Count Cells Using Multiple Citeria
 
Glad to help.

"kjguillermo" wrote:

JMB-
Most Excellent!!! Worked exactly how I needed it to work! Thanks a bunch!!!

"JMB" wrote:

I hope I understand correctly, try:

=SUMPRODUCT(--(G7:G14=G6),--(H7:H14=H6))
=SUMPRODUCT(--(G7:G14=G6),--(H7:H140.9*H6),--(H7:H14<H6))
=SUMPRODUCT(--(G7:G14=G6),--(H7:H140.9*H6),--(H7:H14<1))



"kjguillermo" wrote:

I need to know how many cells in Column H meet 3 different results using
multiple criteria using the following as an example :

G H
6 1000 75.7
7 0 0.00
8 2470 80.33
9 330 58.93
10 5544 69.96
11 408 65.28
12 7633 65.38
14 0 0.00
15 1066 73.52

For the first result, I need to know how many cells are OR=G6 AND OR=H6
For the second result, I need to know how many cells are OR=G6 AND between
<H6 and H6*.9
For the third result, I need to know how many cells are OR=G6 AND between
<H6*.9 and 1.

Thank you in advance for all of your help!!!



All times are GMT +1. The time now is 03:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com