I need to make systematic changes to all occurrences of large numbers of string values in large spreadsheets - along the lines of
If value is 123Foo modified value is 123Foobar
replace all values of 123Foo with 123Foobar
else
end if
real changes are a little more complex than that and the change depends on the original value.
The problem is that I need to be able to select a column/columns of tens of thousands of rows from a table change each value and then apply that change to every occurrence of that value in sheets of up to 500k rows and 50 columns split into various tables - and the layout and column headings aren't consistent enough to allow me to target specific regions so I need to check the whole sheet. Using the built in replace all function takes about 1.6 seconds per value so doing a whole sheet would take hours as it's searching through large amounts of data thousands of times.
I already have code written that will loop through a selected column and make the required changes rapidly and have already tried turning off screen updating, events et.c.
Any ideas for reducing the number of searches being done or massively speeding them up?
Bookmarks