Comparing Groups of Values that are Equal

aje35

New Member
Joined
Jun 22, 2010
Messages
47
I have a table of data with one column of ID numbers and another column of contingency numbers. Some contingencies can be comprised of one ID number or multiple ID numbers (multiple contingencies). The contingencies that are only one ID number are simple to identify duplicates however I am attempting to create a code that identifies the groups that are the same.

My attempts to identify the multiple contingencies and provide the lowest of contingency numbers has had bugs all over. However what I do have is a dynamic array that contains some reference information: the first column is how many ID numbers within a contingency (currently ranging from 1 to 6), the second column is the amount of times that length occurs (i.e. 3 groups of 4), and finally the last column is the first cell that those groups start on.

Below is a screenshot of two separate arrays. The first one I mentioned above is in Column A:C and the second one containing the ID number, the number instances that the that contingency exists (same idea as column A), then I concatenated the ID number with the instances, and finally is the contingency number. As an example contingency 393 is the same length and contains identical elements as contingency 210. So what I want is for Range("H25:H28") to have 210's in those cells (which would be the 5th column of that data array).

95rlvd.jpg


I know this may be confusing :eeek: :confused: so feel free to ask me anything that may be clarifying.

Thank you in advance for your help.

AJ
 

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.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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