Double lookup and Frequency Counter

jmc226

New Member
Joined
Nov 25, 2005
Messages
1
Hello,

I am trying to count the frequency of X and Y values that are in a certain range. For example the data is:

X Y
0.1 0.2
0.2 0.2
0.0 0.2
0.1 0.2
0.0 0.2
0.1 0.2

And I want to count the frequency of each for example:

X Y Frequency
0 0 0
0 0.1 0
0 0.2 2
0.1 0 0
0.1 0.1 0
0.1 0.2 3
0.2 0 0
0.2 0.1 0
0.2 0.2 1

So I need a way of comparing the 2 values in the data with the two values in the binning columns and be able to count the frequency.

If you know a way to do this please let me know! thanks :biggrin:

J.C.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Assuming that A1:B6 contains your data, and D1:E9 contains your 'binning' values, try...

F1, copied down:

=SUMPRODUCT(--($A$1:$A$6=D1),--($B$1:$B$6=E1))

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,217,476
Messages
6,136,879
Members
450,029
Latest member
MissQuotation

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