Cell A1 = 10002170
Cell A2 = 10068007
How do i remove 1st 2 digits and last digits on the numbers in each cell.
End result should look like this :
Cell A1 = 00217
Cell A2 = 68007
Cell A1 = 10002170
Cell A2 = 10068007
How do i remove 1st 2 digits and last digits on the numbers in each cell.
End result should look like this :
Cell A1 = 00217
Cell A2 = 68007
Formula:Please Login or Register to view this content.
Please click the * icon below if I have helped.
your example doesn't follow a rule, cell a1 excludes the final 0 but a2 is the last 5 digits, is this correct? that makes it harder because you can't use a simple mid() formula
Melvin's suggestion will work if the string/value length is the same, but if the lenth differs, try this isntead
=MID(A1,3,LEN(A1)-4)
If you need the answer to be value (left/mid/right all return text/string) then either use...
=value(MID(A1,3,LEN(A1)-4))
or
=MID(A1,3,LEN(A1)-4)*1
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Apologes, you are correct .
The end result should look as follows:
Cell A1 = 00217
Cell A2 = 06800
great sounds like you have your answer, use a mid formula. if so lets mark this thread as solved
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks