OaklandJim
Well-known Member
- Joined
- Nov 29, 2018
- Messages
- 833
- Office Version
- 365
- Platform
- Windows
I have a two dimensional array, asData. The first dimension has two indexes and there is a variable number of entries in the second dimension. I want to return an array with duplicate entries eliminated. So, I hope for a function that returns an array with unique entries only (i.e., without the duplicated entries). In the example the duplicates are for Joe and Eddie.
Just so I am clear, the array returned includes four entries: Bob, Tamika, one entry for Joe, and one entry for Eddie.
asData(1, 1) = Bob
asData(2, 1) = 2234
asData(1, 2) = Joe
asData(2, 2) = 5432
asData(1, 3) = Tamika
asData(2, 3) = 9976
asData(1, 4) = Eddie
asData(2, 4) = 9872
asData(1, 5) = Joe
asData(2, 5) = 5432
asData(1, 6) = Eddie
asData(2, 6) = 9872
I've seen examples using dictionary functionality but user may not have the necessary reference so ideally the approach offered uses arrays only.
I really appreciate the assistance.
Just so I am clear, the array returned includes four entries: Bob, Tamika, one entry for Joe, and one entry for Eddie.
asData(1, 1) = Bob
asData(2, 1) = 2234
asData(1, 2) = Joe
asData(2, 2) = 5432
asData(1, 3) = Tamika
asData(2, 3) = 9976
asData(1, 4) = Eddie
asData(2, 4) = 9872
asData(1, 5) = Joe
asData(2, 5) = 5432
asData(1, 6) = Eddie
asData(2, 6) = 9872
I've seen examples using dictionary functionality but user may not have the necessary reference so ideally the approach offered uses arrays only.
I really appreciate the assistance.