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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,323
Office Version
  1. 365
Platform
  1. Windows
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!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,834
Messages
5,855,893
Members
431,772
Latest member
dannyboi1

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
Top