I have a cell that will contain between 2 and 4 characters. The first will always be a letter. The following digits will be a positive integer between 1 and 999.
Let's say that cell is A1. Then in B1, I want the cell to display on the first letter. In cell C1, I want the number to be displayed.
Hope this makes sense, any help as to what formulas to use would be great. Thanks!
Please see attached- does this work for you?
Good evening skatmandu2002
B1 : =LEFT(A1,1)
C1 : =VALUE(RIGHT(A1,LEN(A1)-1))
The VALUE part of the formula ensures that the numeric part is shown as a number. If you would prefer it shown as a text string, just omit the VALUE part, thus : =RIGHT(A1,LEN(A1)-1).
HTH
DominicB
Now available : Ultimate Add-In 2007
Integrates directly into the Office Excel Ribbon
Download Ultimate Add-In v1.52 from www.dom-and-lis.co.uk
90+ Utilities, 200+ Sub utilities last updated 25th April 2008
Free!!
or in b1
=LEFT(A1,1)
in c1
=SUBSTITUTE(A1,B1,"")+0
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Perfect. You are all brilliant as usual.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks