Extract a letter from a specific position
Solved
sebii
-
Vaucluse Posted messages 27336 Registration date Status Contributor Last intervention -
Vaucluse Posted messages 27336 Registration date Status Contributor Last intervention -
Hello everyone,
Being extremely bad at Excel, I'm calling on your expert knowledge :)
I would like to extract a character from a specific position in a string.
Example:
I have 13457689 and I need to find the character at the 5th position, the formula should return 7
Thank you very much in advance for your help.
Being extremely bad at Excel, I'm calling on your expert knowledge :)
I would like to extract a character from a specific position in a string.
Example:
I have 13457689 and I need to find the character at the 5th position, the formula should return 7
Thank you very much in advance for your help.
2 answers
Hello
two solutions:
=MID(A1,5,1)
or
=RIGHT(LEFT(A1,5),1)
note that these results are text. If you want to obtain numeric values, add *1 at the end of the formula after the last parenthesis
best regards
The quality of the answer mainly depends on the clarity of the question, thank you!
two solutions:
=MID(A1,5,1)
or
=RIGHT(LEFT(A1,5),1)
note that these results are text. If you want to obtain numeric values, add *1 at the end of the formula after the last parenthesis
best regards
The quality of the answer mainly depends on the clarity of the question, thank you!
Thank you Vaucluse
I had seen this formula but the result does not quite correspond to what I am looking for. I specify that I have a cell in A1 with a sequence of 2000 characters that follow each other and I have cells with numbers:
A1: Azertyazertyazertyazerty...
B2: 56
I would like the formula to find which letter corresponds to the number 56 in the string in A1
Thank you very much!!!
I had seen this formula but the result does not quite correspond to what I am looking for. I specify that I have a cell in A1 with a sequence of 2000 characters that follow each other and I have cells with numbers:
A1: Azertyazertyazertyazerty...
B2: 56
I would like the formula to find which letter corresponds to the number 56 in the string in A1
Thank you very much!!!