George
Member
Hi guys,
I'm trying to perform MATCH on some long strings, and I have discovered there is an upper limit of 255 characters as the search criteria.
Basically I've made a document creates an automatic summary of some source data (the names of the fields, the length of the longest entry, the data type and the number of entries) using some macros.
I found (I could be wrong about this) that just getting the macro to populate some cells with standard excel formulas (offset to define a range, match to lookup inside it) gave me a result far faster than using a
type of statement. Annoyingly I didn't create the data we're working with (otherwise there wouldn't be any need to search for anything so long), and I need to be able to search for the entire string (so no trimming off to the first 255 or something).
Am I going to need to go the macro route, or is there a clever little workaround to this problem?
Cheers,
George
I'm trying to perform MATCH on some long strings, and I have discovered there is an upper limit of 255 characters as the search criteria.
Basically I've made a document creates an automatic summary of some source data (the names of the fields, the length of the longest entry, the data type and the number of entries) using some macros.
I found (I could be wrong about this) that just getting the macro to populate some cells with standard excel formulas (offset to define a range, match to lookup inside it) gave me a result far faster than using a
Code:
for each cell in range
if cell.value = search value then
tell me where the match is
end if
next cell
type of statement. Annoyingly I didn't create the data we're working with (otherwise there wouldn't be any need to search for anything so long), and I need to be able to search for the entire string (so no trimming off to the first 255 or something).
Am I going to need to go the macro route, or is there a clever little workaround to this problem?
Cheers,
George