Hello all,
I am working on a way to extract just the numeric values from an email address as this numeric value is a unique employee ID. I have an example below of what I would like to do, I just can't figure out the best formula to achieve this. All of the values will be presented in the same exact format with the exception being the exact amount of numeric values listed.
Data examples provided:
d12345@genericemail.com
d1234@genericemail.com
d123456@genericemail.com
d12@genericemail.com
Outputs needed:
12345
1234
123456
12
I tried using a mid function, but was not sure if this would work or if I input it correctly as it was still providing an error.
I appreciate any assistance that can be provided in figuring this out.
I am working on a way to extract just the numeric values from an email address as this numeric value is a unique employee ID. I have an example below of what I would like to do, I just can't figure out the best formula to achieve this. All of the values will be presented in the same exact format with the exception being the exact amount of numeric values listed.
Data examples provided:
d12345@genericemail.com
d1234@genericemail.com
d123456@genericemail.com
d12@genericemail.com
Outputs needed:
12345
1234
123456
12
I tried using a mid function, but was not sure if this would work or if I input it correctly as it was still providing an error.
Code:
=MID('G16,SEARCH("d",G16)+1,SEARCH("d",G16,SEARCH("d",G16)+1)-SEARCH("@",G16)-1)
I appreciate any assistance that can be provided in figuring this out.