ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Text to columns (https://www.excelbanter.com/excel-discussion-misc-queries/183945-text-columns.html)

Nigel

Text to columns
 
I have exported a table from MS Access to Excel to be able to use it as a
mailing list. When I try to convert text to columns I am unable to enter the
text delimiter as it is some sort of white square, well in fact there are two
squares together. Can any one help?
I've pasted a sample here but it shows without the squares and the text has
wrapped.

"Beech House
Witham Park
Waterside South"







Gary''s Student

Text to columns
 
Some detective work is required:

1. copy a typical item into an unused cell, say Z100
2. using the fomula bar, remove all characters except for a single small
square
3. In Z101 enter:
=CODE(Z1)

Once we know the code, we can change it into something Text to Columns can
use.
--
Gary''s Student - gsnu200779


"Nigel" wrote:

I have exported a table from MS Access to Excel to be able to use it as a
mailing list. When I try to convert text to columns I am unable to enter the
text delimiter as it is some sort of white square, well in fact there are two
squares together. Can any one help?
I've pasted a sample here but it shows without the squares and the text has
wrapped.

"Beech House
Witham Park
Waterside South"







Nigel

Text to columns
 
Hi Gary

Ok I've done that and the answer is 13

"Gary''s Student" wrote:

Some detective work is required:

1. copy a typical item into an unused cell, say Z100
2. using the fomula bar, remove all characters except for a single small
square
3. In Z101 enter:
=CODE(Z1)

Once we know the code, we can change it into something Text to Columns can
use.
--
Gary''s Student - gsnu200779


"Nigel" wrote:

I have exported a table from MS Access to Excel to be able to use it as a
mailing list. When I try to convert text to columns I am unable to enter the
text delimiter as it is some sort of white square, well in fact there are two
squares together. Can any one help?
I've pasted a sample here but it shows without the squares and the text has
wrapped.

"Beech House
Witham Park
Waterside South"







Gary''s Student

Text to columns
 
Now enter and run this small macro:

Sub boxkiller()
For Each r In ActiveSheet.UsedRange
r.Value = Replace(r.Value, Chr(13), "^")
Next
End Sub



It will change all the "boxes" into ^
We can then use Text to Columns with the ^ as a separator:


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Gary''s Student - gsnu200779


"Nigel" wrote:

Hi Gary

Ok I've done that and the answer is 13

"Gary''s Student" wrote:

Some detective work is required:

1. copy a typical item into an unused cell, say Z100
2. using the fomula bar, remove all characters except for a single small
square
3. In Z101 enter:
=CODE(Z1)

Once we know the code, we can change it into something Text to Columns can
use.
--
Gary''s Student - gsnu200779


"Nigel" wrote:

I have exported a table from MS Access to Excel to be able to use it as a
mailing list. When I try to convert text to columns I am unable to enter the
text delimiter as it is some sort of white square, well in fact there are two
squares together. Can any one help?
I've pasted a sample here but it shows without the squares and the text has
wrapped.

"Beech House
Witham Park
Waterside South"







Nigel

Text to columns
 
Hi Gary

The macro worked but only removed/changed one of the pair of boxes. Running
the code again does nothing. Sorry!

"Gary''s Student" wrote:

Now enter and run this small macro:

Sub boxkiller()
For Each r In ActiveSheet.UsedRange
r.Value = Replace(r.Value, Chr(13), "^")
Next
End Sub



It will change all the "boxes" into ^
We can then use Text to Columns with the ^ as a separator:


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Gary''s Student - gsnu200779


"Nigel" wrote:

Hi Gary

Ok I've done that and the answer is 13

"Gary''s Student" wrote:

Some detective work is required:

1. copy a typical item into an unused cell, say Z100
2. using the fomula bar, remove all characters except for a single small
square
3. In Z101 enter:
=CODE(Z1)

Once we know the code, we can change it into something Text to Columns can
use.
--
Gary''s Student - gsnu200779


"Nigel" wrote:

I have exported a table from MS Access to Excel to be able to use it as a
mailing list. When I try to convert text to columns I am unable to enter the
text delimiter as it is some sort of white square, well in fact there are two
squares together. Can any one help?
I've pasted a sample here but it shows without the squares and the text has
wrapped.

"Beech House
Witham Park
Waterside South"







Dave Peterson

Text to columns
 
Time to find out what that other character is.

Use the same technique as before.

Nigel wrote:

Hi Gary

The macro worked but only removed/changed one of the pair of boxes. Running
the code again does nothing. Sorry!

"Gary''s Student" wrote:

Now enter and run this small macro:

Sub boxkiller()
For Each r In ActiveSheet.UsedRange
r.Value = Replace(r.Value, Chr(13), "^")
Next
End Sub



It will change all the "boxes" into ^
We can then use Text to Columns with the ^ as a separator:


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Gary''s Student - gsnu200779


"Nigel" wrote:

Hi Gary

Ok I've done that and the answer is 13

"Gary''s Student" wrote:

Some detective work is required:

1. copy a typical item into an unused cell, say Z100
2. using the fomula bar, remove all characters except for a single small
square
3. In Z101 enter:
=CODE(Z1)

Once we know the code, we can change it into something Text to Columns can
use.
--
Gary''s Student - gsnu200779


"Nigel" wrote:

I have exported a table from MS Access to Excel to be able to use it as a
mailing list. When I try to convert text to columns I am unable to enter the
text delimiter as it is some sort of white square, well in fact there are two
squares together. Can any one help?
I've pasted a sample here but it shows without the squares and the text has
wrapped.

"Beech House
Witham Park
Waterside South"







--

Dave Peterson

Nigel

Text to columns
 
Hi Dave

I've just done that, character was "10", altered the macro and hey presto.
Thanks Dave and Gary, brilliant!

"Dave Peterson" wrote:

Time to find out what that other character is.

Use the same technique as before.

Nigel wrote:

Hi Gary

The macro worked but only removed/changed one of the pair of boxes. Running
the code again does nothing. Sorry!

"Gary''s Student" wrote:

Now enter and run this small macro:

Sub boxkiller()
For Each r In ActiveSheet.UsedRange
r.Value = Replace(r.Value, Chr(13), "^")
Next
End Sub



It will change all the "boxes" into ^
We can then use Text to Columns with the ^ as a separator:


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select the macro
3. Touch Run



To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Gary''s Student - gsnu200779


"Nigel" wrote:

Hi Gary

Ok I've done that and the answer is 13

"Gary''s Student" wrote:

Some detective work is required:

1. copy a typical item into an unused cell, say Z100
2. using the fomula bar, remove all characters except for a single small
square
3. In Z101 enter:
=CODE(Z1)

Once we know the code, we can change it into something Text to Columns can
use.
--
Gary''s Student - gsnu200779


"Nigel" wrote:

I have exported a table from MS Access to Excel to be able to use it as a
mailing list. When I try to convert text to columns I am unable to enter the
text delimiter as it is some sort of white square, well in fact there are two
squares together. Can any one help?
I've pasted a sample here but it shows without the squares and the text has
wrapped.

"Beech House
Witham Park
Waterside South"







--

Dave Peterson



All times are GMT +1. The time now is 06:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com