Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How can I insert 2 spaces at the beginning of each of 1300 cells?
Rather than go through each of 1300 cells in a column to add a ' and 2
spaces, so that the column will match up when I import it into Access, how can I quickly add 2 spaces to the left of the text data in each column? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How can I insert 2 spaces at the beginning of each of 1300 cells?
"spaceless in Dallas" <spaceless in wrote
in message ... Rather than go through each of 1300 cells in a column to add a ' and 2 spaces, so that the column will match up when I import it into Access, how can I quickly add 2 spaces to the left of the text data in each column? A helper column =" "&A1 (with 2 spaces between the quote marks) -- David Biddulph |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
How can I insert 2 spaces at the beginning of each of 1300 cells?
Format the column for Custom and use space space @ as the format type
Hard to type an example, <g but maybe (__@) without the parenthesis and replacing the underscores with spaces....whew Vaya con Dios, Chuck, CABGx3 "spaceless in Dallas" wrote: Rather than go through each of 1300 cells in a column to add a ' and 2 spaces, so that the column will match up when I import it into Access, how can I quickly add 2 spaces to the left of the text data in each column? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
How can I insert 2 spaces at the beginning of each of 1300 cells?
spaceless in Dallas wrote: Rather than go through each of 1300 cells in a column to add a ' and 2 spaces, so that the column will match up when I import it into Access, how can I quickly add 2 spaces to the left of the text data in each column? Another way is to write a quick bit of vb to do the work for you. example: Sub addSpaces() Dim x, y As intergers For x = 1 To 5 '(how ever rows you need to cover) For y = 1 To 6 '(how ever many columns you need to cover) ActiveSheet.Cells(x, y).Value = "' " & ActiveSheet.Cells(x, y).Value Next y Next x End Sub should also note that your starting point for x and y should be the reference to where the first cell of the data is at. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculating only non-empty cells... | Excel Worksheet Functions | |||
How do I count cells with text but ignore cells with spaces? | Excel Discussion (Misc queries) | |||
key board short cut for insert cut cells | Excel Discussion (Misc queries) | |||
Removing spaces in cells with data in it | Excel Discussion (Misc queries) | |||
Sumproduct ... Empty Cells vs Spaces? | Excel Discussion (Misc queries) |