In Column C I have a URL which will sometimes contain an 8 character number.
In Column D I wish to enter a formula which will extract this 8 character number. If an 8 character number is not found, it will leave the cell blank.
I have searched and come across multiple formula's that do not work properly for my requirement. For example, I found: =MAX(IF(ISNUMBER(--MID(C2,ROW(INDIRECT("1:"&LEN(C2))),8)),--MID(C2,ROW(INDIRECT("1:"&LEN(C2))),8)))
However this also seems to return a random 5 digit number when a date is captured in Column C.
I only wish for 8 digit numbers to be returned when they are together as one string. For example 87438483 would be returned, but 877 32 77 9 would not.
There could be instances of less or more numbers together, for example 10 characters 8467309238. I do not want the first 8 returned in this case, this example should return a blank.
I also do not want 8 characters returned if they contain a mixture of other characters and numbers e.g. 10/10/2024 - this is 8 numbers but not 8 continual numbers so a blank should be returned.
Thanks for your help
In Column D I wish to enter a formula which will extract this 8 character number. If an 8 character number is not found, it will leave the cell blank.
I have searched and come across multiple formula's that do not work properly for my requirement. For example, I found: =MAX(IF(ISNUMBER(--MID(C2,ROW(INDIRECT("1:"&LEN(C2))),8)),--MID(C2,ROW(INDIRECT("1:"&LEN(C2))),8)))
However this also seems to return a random 5 digit number when a date is captured in Column C.
I only wish for 8 digit numbers to be returned when they are together as one string. For example 87438483 would be returned, but 877 32 77 9 would not.
There could be instances of less or more numbers together, for example 10 characters 8467309238. I do not want the first 8 returned in this case, this example should return a blank.
I also do not want 8 characters returned if they contain a mixture of other characters and numbers e.g. 10/10/2024 - this is 8 numbers but not 8 continual numbers so a blank should be returned.
Thanks for your help