delete item in array and resizing array

zoog25

Active Member
Joined
Nov 21, 2011
Messages
418
Hello All,

I code that compares two array that each are of different sizes. For example array A has 1000 unique entries and array B might have 10,000 unique entries. So here is what i want. Every time an item from Array A finds it match in Array B it deletes its spot in Array B and shrinks. So say entry 20 (99919) of Array A matches Entry 475 (99919) of Array B. Since they matched up, the entry in Array B would be deleted and Array B would be resized so now there are only 9,999 entries in Array B. Is this possible.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
use an system.collections.arraylist.
There you find commands to delete a certain entry or a certain position

or a dictionary (only unique values).

of the filter (dangerous)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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