troubleshooting Question

Procedure / Script / Macro for Creation of Lists from Data Matrix

Avatar of justearth
justearthFlag for United States of America asked on
Microsoft ExcelPythonVB Script
17 Comments1 Solution516 ViewsLast Modified:
Hello,
I have data contained in square matrix. The data is the distance in meters between two locations.  I'd like to create/output lists from this data matrix based on the following scheme:

- All of the locations (the numbers in the matrix) are ranked based on "Priority Level", the .1, .2 or .3 following the number indicates priority level. Any selection between any points will need to have a distance greater than 16100.  
- I would like the lists to be created "randomly" I say I have placed randomly in quotes because I want a preference given to priority level  (i.e. 1>2>3 ).
- I don't know if this is possible, but I would like to start out by "randomly" choosing a priority 1 location and then adding as many priority 1 locations, then priority 2, and finally priority 3 locations, given that all points are greater than 16100 apart, for like 50 runs.

I don't care how the data is stored ( text file, excel, csv, etc )

Does this sound plausible to do in VB macro in excel, python or VBscript. I'd be greatly appreciative of any annotated code so that I might learn what you did.

Thank you kindly,
JE
N-x-N-2.xls
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 17 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros