Identify inter-related values in a matrix (multiple checks)

tweedi

New Member
Joined
Feb 13, 2013
Messages
21
Hi All! It's been a while :)
I need to find a solution in order to identify all the numbers which are inter-related.

For example, 1 is linked to 2, and threfore 2 is linked to 1. So I have a chain 1-2.
Then 2 is linked to 3, and 3 is linked to 2, and it is linked to 1, so I have a chain 1-2-3.

Now, 4 is linked to 1 and 3 and this number are also inter-related (i.e. 1 is linked to 3) so I have a chain 1-3-4. Howewer 4 is not linked to 2 so I will not have a chain 1-2-3-4, but instead I will have a chain 1-2-3 and a chain 4-3

The final result should be a succession of chains, with the first chain being the longest (with all the numbers inter-related), and then the other chains should be shorter and shorter.

The aim is to find out which divisions (represented by number), are interdependant, and which are more likely to work in isolation.

I hope it does make sense, I am happy to use VBA but I am not sure how to do this yet. So if you have any idea please share!

Please find the example table below (the real one is quite bigger (58 divisions):

1
2
3
4
1
X
X
X
2
X
3
X
4
X
X

<tbody>
</tbody>

Many Thanks! ;)
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,805
Messages
6,121,665
Members
449,045
Latest member
Marcus05

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