Countifs

Vanda_a

Well-known Member
Joined
Oct 29, 2012
Messages
934
Hello all

Could anyone help count my below issue?
Thank you very much
AB
10-1000
2100-5002
3500-10002

<tbody>
</tbody>
I would like to count column A that meet criteria with above table
ABCD
1Apple100
2Orange300
3Mango500
4Apple1000
5Orange300
6
Apple
700

<tbody>
</tbody>
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Could you explain the logic to get the results you have shown?
0
2
2
Do you want to count unique the fruits that meet the criteria?

M.
 
Upvote 0
Maybe something like this...


A
B
C
D
E
F
G
H
1
Lower​
Higher​
Result​
Apple​
100​
2
0​
100​
0​
Orange​
300​
3
100​
500​
2​
Mango​
500​
4
500​
1000​
2​
Apple​
1000​
5
Orange​
300​
6
Apple​
700​

<tbody>
</tbody>


Array formula in C2 copied down
=SUM(IF(FREQUENCY(IF($F$1:$H$6<>"",IF($F$1:$H$6>=A2,IF($F$1:$H$6 < B2,MATCH($E$1:$E$6,$E$1:$E$6,0)))),ROW($E$1:$E$6)-ROW($E$1)+1),1))
<b2,match($e$1:$e$6,$e$1:$e$6,0)))),row($e$1:$e$6)-row($e$1)+1),1))
Ctrl+Shift+Enter

M.</b2,match($e$1:$e$6,$e$1:$e$6,0)))),row($e$1:$e$6)-row($e$1)+1),1))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,415
Messages
6,124,768
Members
449,187
Latest member
hermansoa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top