match of numbers

RANNYS

New Member
Joined
Nov 16, 2014
Messages
3
Hello all.

I have a row with 20 random numbers.
I want to know whether there is at least one match between two numbers along the row.

The indication can be with a true/false or a 1/0, using a formula at the end of the row.

I'd appreciate any assistance.
Thanx,
Ranny
 
Thank you. it works.
I have no experience with the frequeny formula.
Could you please explain the way it works?
 
Upvote 0
Thank you. it works.
I have no experience with the frequeny formula.
Could you please explain the way it works?

FREQUENCY(NumericData,Bins)

sorts the numeric data into bins it is given, such that it creates an occurrence count for each bin.

Example:

FREQURENCY({1,2,3},{1,3})

==>

{1;2;0}

Entry 1 of the first term maps onto bin 1 (Bin 1 occurrence count is 1). The entries 2 and 3 fits bin 3, that is, bin 3 gets every entry that is > 1 (bin 1) and less than or equal to 3 (bin 3). Hence bin 3 occurrence count is 2. Note that the function finds no entry > bin 3, so the rest bin occurrence is 0.

FREQUENCY(A2:T2,A2:T2)

uses as bins the entries it id fed with. Any bin count greater than or equal to 1 would satisfy the condition of having a duplicate (a match). Hence the MAX test > 1.

Hope this helps.
 
Upvote 0
Hi Aladin,

Can you please help me understand why this setup doesn't require CTRL-SHIFT-ENTER?
While a similar COUNTIF version for example - =...MAX(COUNTIF(A2:T2, A2:T2))... would require CSE?

Is it just a nice property of the FREQUENCY function and a case of that being how the function is built to behave?
Or perhaps there is something more underlying it that I don't understand?
 
Upvote 0
Hi Aladin,

Can you please help me understand why this setup doesn't require CTRL-SHIFT-ENTER?
While a similar COUNTIF version for example - =...MAX(COUNTIF(A2:T2, A2:T2))... would require CSE?

Is it just a nice property of the FREQUENCY function and a case of that being how the function is built to behave?
Or perhaps there is something more underlying it that I don't understand?

FREQUENCY like LOOKUP and SUMPRODUCT is designed as an array-processing function, so control+shift+enter confirmation is not required. By the way, it is also faster than CountIf(s).
 
Upvote 0

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