I have a column of thousands of cells that contain responses from a survey. Each cell contains an account number (or should) of exactly 10 numbers, but at different positions in the cell. The cell can also contain other numbers, but I need to extract just the 10-digit account number from each cell to another cell.
Example(1):
aa9876 reviewed 1234567891 and proceeded to credit $10
Example(2):
2345678912 completed
Example(3):
$50 credit. 3456789123 done. 3ab456 approved
Because this is a survey-type response, the user can enter anything they wish and submit it. But each response *should* contain the 10-digit account number.
I found and slightly modified the following CSE array formula (though I don't really understand it), but it only returns the first 10 numbers in the cell; as the account number is not always the first thing entered, it does not help:
=LEFT(SUM(MID(0&C31,LARGE(ISNUMBER(--MID(C31,ROW(INDIRECT("1:"&LEN(C31))),1))*ROW(INDIRECT("1:"&LEN(C31))),ROW(INDIRECT("1:"&LEN(C31))))+1,1)*10^ROW(INDIRECT("1:"&LEN(C31)))/10),10)
I need a formula that will search for the string of the 10-digit account number and return only that number, regardless of what other text/numbers are in the cell.
Thanks in advance!!!
Example(1):
aa9876 reviewed 1234567891 and proceeded to credit $10
Example(2):
2345678912 completed
Example(3):
$50 credit. 3456789123 done. 3ab456 approved
Because this is a survey-type response, the user can enter anything they wish and submit it. But each response *should* contain the 10-digit account number.
I found and slightly modified the following CSE array formula (though I don't really understand it), but it only returns the first 10 numbers in the cell; as the account number is not always the first thing entered, it does not help:
=LEFT(SUM(MID(0&C31,LARGE(ISNUMBER(--MID(C31,ROW(INDIRECT("1:"&LEN(C31))),1))*ROW(INDIRECT("1:"&LEN(C31))),ROW(INDIRECT("1:"&LEN(C31))))+1,1)*10^ROW(INDIRECT("1:"&LEN(C31)))/10),10)
I need a formula that will search for the string of the 10-digit account number and return only that number, regardless of what other text/numbers are in the cell.
Thanks in advance!!!