Hi
I would like to extract only a second character from a cell on the left. What formula is for this purpose?
Thanks
Hi
I would like to extract only a second character from a cell on the left. What formula is for this purpose?
Thanks
Last edited by Harrold; 09-02-2011 at 03:08 AM.
If your data is in, say, cell A1 then in another cell put the formula =MID(A1,2,1)
Hi Andrew,
Thanks for your prompt reply.
It works with a minor issue. The formula does not detect '0' when it is the first character. Say, 0123, your formula for the 1st character is 1 instead of 0.
Is there a way to resolve it?
Thanks again
I'm not entirely sure I understand.
Either:
a) Your data is the string '0123', in which case the 2nd character is 1, but you want to ignore the zero and return 2 as the 2nd character or
b) Your data is 123, but formatted to 4 digits with a leading zero, in which case my formula will return '2', but you actually want it to return '1'.
Let me know which it is and I'll sort it for you.
Thanks,
Andrew
Hi Andrew,
Option b please.
Thanks
Oh good, that's the easy one.
Again with the data in cell A1, the formula is =MID(TEXT(A1,"0000"),2,1)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks