A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

letter and numbers substitute



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2003, 09:02 AM
Paul
external usenet poster
 
Posts: n/a
Default letter and numbers substitute

"ibo" wrote in message
...
Hi there

I have a cell with letters and numbers. Like below:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Is it possible to formula for substitute first two numbers on the left and
other numbers on the right like this:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Thanks for advance.

Ibo



You can construct a formula to add spaces between the letters and the second
group of numbers so that the whole string will be 11 characters long:
=LEFT(A1,FIND(" ",A1,4))&REPT(" ",11-LEN(A1))&RIGHT(A1,LEN(A1)-FIND("
",A1,4))
However, the second set of numbers will only line up if you use a monospaced
font.


  #2  
Old November 10th, 2003, 04:14 PM
Ilan Rencus
external usenet poster
 
Posts: n/a
Default letter and numbers substitute

Assuming you have one space between each group, you can use somthing like this:
your data in A1 then (I broke the formula into several subformulas for simplicity)
In B1 =FIND(" ",A1)
In C1 =MID(A1,B1+1,LEN(A1)-B1+1)
In D1 =FIND(" ",C1)
In E1 =RIGHT(C1,LEN(C1)-D1)
In F1 =LEFT(C1,D1-1)
In G1 =LEFT(A1,B1-1)
In H1 =E1&" "&F1&" "&G1

Ilan



"Paul" none wrote in message ...
"ibo" wrote in message
...
Hi there

I have a cell with letters and numbers. Like below:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Is it possible to formula for substitute first two numbers on the left and
other numbers on the right like this:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Thanks for advance.

Ibo



You can construct a formula to add spaces between the letters and the second
group of numbers so that the whole string will be 11 characters long:
=LEFT(A1,FIND(" ",A1,4))&REPT(" ",11-LEN(A1))&RIGHT(A1,LEN(A1)-FIND("
",A1,4))
However, the second set of numbers will only line up if you use a monospaced
font.

  #3  
Old November 12th, 2003, 06:35 AM
jale
external usenet poster
 
Posts: n/a
Default letter and numbers substitute

Thanks for response

Your formula seems:
57 abc 8798
65 j 9872
71 a dc 98
87 a bc 573

But I prefer

57 abc 8798
65 j 9872
71 adc 98
87 abc 573

Thanks


Your formu
"Paul" none wrote in message
...
"ibo" wrote in message
...
Hi there

I have a cell with letters and numbers. Like below:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Is it possible to formula for substitute first two numbers on the left

and
other numbers on the right like this:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Thanks for advance.

Ibo



You can construct a formula to add spaces between the letters and the

second
group of numbers so that the whole string will be 11 characters long:
=LEFT(A1,FIND(" ",A1,4))&REPT(" ",11-LEN(A1))&RIGHT(A1,LEN(A1)-FIND("
",A1,4))
However, the second set of numbers will only line up if you use a

monospaced
font.




  #4  
Old November 12th, 2003, 06:37 AM
jale
external usenet poster
 
Posts: n/a
Default letter and numbers substitute

Thanks for response
Your formula seems:
57 abc 8798
65 j 9872
71 adc 98
87 abc 573

But I prefer
57 abc 8798
65 j 9872
71 adc 98
87 abc 573

Thanks



"Ilan Rencus" wrote in message
om...
Assuming you have one space between each group, you can use somthing like

this:
your data in A1 then (I broke the formula into several subformulas for

simplicity)
In B1 =FIND(" ",A1)
In C1 =MID(A1,B1+1,LEN(A1)-B1+1)
In D1 =FIND(" ",C1)
In E1 =RIGHT(C1,LEN(C1)-D1)
In F1 =LEFT(C1,D1-1)
In G1 =LEFT(A1,B1-1)
In H1 =E1&" "&F1&" "&G1

Ilan



"Paul" none wrote in message

...
"ibo" wrote in message
...
Hi there

I have a cell with letters and numbers. Like below:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Is it possible to formula for substitute first two numbers on the left

and
other numbers on the right like this:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Thanks for advance.

Ibo



You can construct a formula to add spaces between the letters and the

second
group of numbers so that the whole string will be 11 characters long:
=LEFT(A1,FIND(" ",A1,4))&REPT(" ",11-LEN(A1))&RIGHT(A1,LEN(A1)-FIND("
",A1,4))
However, the second set of numbers will only line up if you use a

monospaced
font.



  #5  
Old November 12th, 2003, 07:44 AM
jale
external usenet poster
 
Posts: n/a
Default letter and numbers substitute

Hi Ian
Ignore it my first reply,Your formula seems:

8798 abc 57
9872 j 65
98 adc 71
573 abc 87

I prefer:
57 abc 8798
65 j 9872
71 adc 98
87 ab 573


I prefer
"Ilan Rencus" wrote in message
om...
Assuming you have one space between each group, you can use somthing like

this:
your data in A1 then (I broke the formula into several subformulas for

simplicity)
In B1 =FIND(" ",A1)
In C1 =MID(A1,B1+1,LEN(A1)-B1+1)
In D1 =FIND(" ",C1)
In E1 =RIGHT(C1,LEN(C1)-D1)
In F1 =LEFT(C1,D1-1)
In G1 =LEFT(A1,B1-1)
In H1 =E1&" "&F1&" "&G1

Ilan



"Paul" none wrote in message

...
"ibo" wrote in message
...
Hi there

I have a cell with letters and numbers. Like below:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Is it possible to formula for substitute first two numbers on the left

and
other numbers on the right like this:

57 abc 8798
65 j 9872
71 adc 98
87 ab 573

Thanks for advance.

Ibo



You can construct a formula to add spaces between the letters and the

second
group of numbers so that the whole string will be 11 characters long:
=LEFT(A1,FIND(" ",A1,4))&REPT(" ",11-LEN(A1))&RIGHT(A1,LEN(A1)-FIND("
",A1,4))
However, the second set of numbers will only line up if you use a

monospaced
font.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.