Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2006

Tip: Looking for answers? Try searching our database.

Formula Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hittin_Provs - 08 Dec 2006 19:56 GMT
I have a in Col A a list of strings which are either 2 or 3 digit
characters, and I would like to break them apart and put them in the 3
adjacent columns.

AK
34
89s

AK      A    K
23       2     3
89s     8     9       s

I know that I could use the Left function for the first column, but am
not sure about the other 2 characters if there are 2.

Thanks in advance,

Andrew
RagDyer - 08 Dec 2006 20:25 GMT
Select your data, then:

<Data> <Text To Columns> <Fixed Width> <Next>

In the "Data Preview" window, click at each character to place a "Break
Line" exactly where you want a new column.
Then <Finish>.
Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

>I have a in Col A a list of strings which are either 2 or 3 digit
> characters, and I would like to break them apart and put them in the 3
[quoted text clipped - 14 lines]
>
> Andrew
Dave Miller - 08 Dec 2006 20:32 GMT
I believe this is what you are looking for:

if   "89s" is in "A1"

=left(A1,1) 'Returns 8
=mid(A1,2,1) 'Returns 9
=right(A1,1) 'Returns s

David Miller

> > AK
> > 34
[quoted text clipped - 3 lines]
> > 23       2     3
> > 89s     8     9       s

RagDyer wote:
> Select your data, then:
>
[quoted text clipped - 29 lines]
> >
> > Andrew
bigwheel - 08 Dec 2006 20:37 GMT
Use RIGHT for the last character and MID for th one in the middle (assuming
there's a maximum for three characters)
For example, in col B you would have =LEFT(A1,1)
In col C, =IF(LEN(A1)=3,MID(A1,2,1),RIGHT(A1,1))
In col D, =IF(LEN(A1)=3,RIGHT(A1,1),"")

>I have a in Col A a list of strings which are either 2 or 3 digit
> characters, and I would like to break them apart and put them in the 3
[quoted text clipped - 14 lines]
>
> Andrew
Hittin_Provs - 08 Dec 2006 23:38 GMT
Thank you very much.,

> Use RIGHT for the last character and MID for th one in the middle (assuming
> there's a maximum for three characters)
[quoted text clipped - 20 lines]
>
> > Andrew- Hide quoted text -- Show quoted text -

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.