Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to add a space (or any character(s)) after each text value in all the
cells in a row or in a column For example, cell A2 contains "ABC", cell B2 contains "DEF", and so on. I want to make all the cells in row 2 to have a space so cell A2 contains "ABC ", cell B2 contains "DEF ",... |
#2
![]() |
|||
|
|||
![]()
Here's how you can add a space after each text value in all the cells in a row:
Alternatively, you can also use the Code:
CONCATENATE 1. In an empty cell, enter the formula "=CONCATENATE(A2," ")". This will add a space after the text value in cell A2. 2. Copy the formula to the rest of the cells in the row or column by dragging the fill handle (the small square at the bottom-right corner of the cell) across the cells that you want to modify. 3. The formula will automatically update the cell references for each cell in the row or column.
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
try going to an empty part of the sheet (say row a4) & type =a2&" " or "[any
character]" then copy that across the row for your range. after calc you can copy the range & paste special (values) back into range a2 ...X2 & your titles will have a trailing space [any character]. "Peter" wrote: I want to add a space (or any character(s)) after each text value in all the cells in a row or in a column For example, cell A2 contains "ABC", cell B2 contains "DEF", and so on. I want to make all the cells in row 2 to have a space so cell A2 contains "ABC ", cell B2 contains "DEF ",... |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks. Is there a way to copy the formula (=a2&" ") into all the cells or
range of cells in a row instead of copying the formula into one cell at a time? "Access Noob" wrote: try going to an empty part of the sheet (say row a4) & type =a2&" " or "[any character]" then copy that across the row for your range. after calc you can copy the range & paste special (values) back into range a2 ...X2 & your titles will have a trailing space [any character]. "Peter" wrote: I want to add a space (or any character(s)) after each text value in all the cells in a row or in a column For example, cell A2 contains "ABC", cell B2 contains "DEF", and so on. I want to make all the cells in row 2 to have a space so cell A2 contains "ABC ", cell B2 contains "DEF ",... |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Select the range say A3:J3. A3 being the active cell; keeping the selection
press F2 and edit/enter formula in A3. Keeping the selection Hit Ctrl+ Enter instead of Enter..The formula will be applied to all cells in the selection. -- Jacob "Peter" wrote: Thanks. Is there a way to copy the formula (=a2&" ") into all the cells or range of cells in a row instead of copying the formula into one cell at a time? "Access Noob" wrote: try going to an empty part of the sheet (say row a4) & type =a2&" " or "[any character]" then copy that across the row for your range. after calc you can copy the range & paste special (values) back into range a2 ...X2 & your titles will have a trailing space [any character]. "Peter" wrote: I want to add a space (or any character(s)) after each text value in all the cells in a row or in a column For example, cell A2 contains "ABC", cell B2 contains "DEF", and so on. I want to make all the cells in row 2 to have a space so cell A2 contains "ABC ", cell B2 contains "DEF ",... |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Either:
Copy, select your range on the sheet, Paste, or Copy, type the reference of your range into the name box, Paste, or Click on the bottom right hand corner of the cell to get a square fill handle, then drag that across your range, or ... -- David Biddulph "Peter" wrote in message ... Thanks. Is there a way to copy the formula (=a2&" ") into all the cells or range of cells in a row instead of copying the formula into one cell at a time? "Access Noob" wrote: try going to an empty part of the sheet (say row a4) & type =a2&" " or "[any character]" then copy that across the row for your range. after calc you can copy the range & paste special (values) back into range a2 ...X2 & your titles will have a trailing space [any character]. "Peter" wrote: I want to add a space (or any character(s)) after each text value in all the cells in a row or in a column For example, cell A2 contains "ABC", cell B2 contains "DEF", and so on. I want to make all the cells in row 2 to have a space so cell A2 contains "ABC ", cell B2 contains "DEF ",... |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You have suggestions on how to accomplish this, but this kind of thing is
usually bad. If you have formulas like: =if(a2="abc","something","something else") Then they won't return what you expect. You'll either have to modify all(!) the formulas to look like: =if(trim(a2)="abc",...) Or fix the data again. (And looking at the value in the formula bar isn't enough to notice that extra space character.) If you're doing this to match another table (imported from a different application???), then you could change the formulas to include the space character: =vlookup(a2&" ",sheet99!a:b,2,false) Even then, this is a clumsy fix (I think). Instead I'd clean up that original data so that it didn't have those extra trailing spaces. If you needed something like that, you could ask and you'll get tons of responses. Peter wrote: I want to add a space (or any character(s)) after each text value in all the cells in a row or in a column For example, cell A2 contains "ABC", cell B2 contains "DEF", and so on. I want to make all the cells in row 2 to have a space so cell A2 contains "ABC ", cell B2 contains "DEF ",... -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove blank space in front of text in multiple cells at once | Excel Discussion (Misc queries) | |||
How to combine text from 3 cells into 1 cell with space and ", bet | New Users to Excel | |||
Separate Text from a cell by space into other cells | Excel Worksheet Functions | |||
Space in text | Excel Discussion (Misc queries) | |||
Seperating text if there's more than a one space between them | Excel Discussion (Misc queries) |