Swordfishtrombone
New Member
- Joined
- Jan 25, 2011
- Messages
- 47
Hi,
I have a huge (100k+) list of serials numbers and I am trying to search it for fragments/partials and return the row number.
I can tell if there is a fragment match anywhere in the list
=COUNTIF(A1:A4,"*"&B1&"*")>0
but this only returns TRUE/FALSE
And I can get the MATCH if I were trying to do an exact match
=MATCH(B1,A1:A4,0)
This returns the row number.
But I don't know how to combine these to return the row number for a fragment.
I would like to see something like ColC below.
ColA___ColB___ColC (Row in ColA where the ColB number fragment appears)
1234___21____4
2345___22____0 (no match)
6789___34____1 (not sure how multiples would be handled)
4321___8_____3
Hoping it's something simple that I am missing.
Also not sure what would happen if there are multiples, as in the example above the fragment "34" appears in both the first and the second entries in ColA. I suppose an additional ColD that contained the COUNT would be possible, but knowing the MATCH for all occurences would be ideal.
PS, the actual numbers being searched contain letters, numbers as well as dashes, if that matters...
Thanks in advance.
Mike
I have a huge (100k+) list of serials numbers and I am trying to search it for fragments/partials and return the row number.
I can tell if there is a fragment match anywhere in the list
=COUNTIF(A1:A4,"*"&B1&"*")>0
but this only returns TRUE/FALSE
And I can get the MATCH if I were trying to do an exact match
=MATCH(B1,A1:A4,0)
This returns the row number.
But I don't know how to combine these to return the row number for a fragment.
I would like to see something like ColC below.
ColA___ColB___ColC (Row in ColA where the ColB number fragment appears)
1234___21____4
2345___22____0 (no match)
6789___34____1 (not sure how multiples would be handled)
4321___8_____3
Hoping it's something simple that I am missing.
Also not sure what would happen if there are multiples, as in the example above the fragment "34" appears in both the first and the second entries in ColA. I suppose an additional ColD that contained the COUNT would be possible, but knowing the MATCH for all occurences would be ideal.
PS, the actual numbers being searched contain letters, numbers as well as dashes, if that matters...
Thanks in advance.
Mike