View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
ICE ICE is offline
external usenet poster
 
Posts: 25
Default Inserting data that has different column headings

First of all, put the one blank columns between the name and surname. Add a
comma to the empty column. Then, insert one more column before or after the
three columns.
A B C D
NAME "," SURNAME "EMPTY"

Then go to column D, select the first cell and go to
"Insert"
"function"
"concatenate"
select:

in text 1: A
in text 2: B
in text 3: C

When you finish copy drag the first cell until the end.
Then select D column and go to
"Copy"
"paste special"
"Values Only"

Then select D column and press CTRL and F.
A window opens.
Go to "Replace" tab and replace the comma (","), with a space.
Press replace to all and you are done.

Maybe it's long but it's the only way I know.
Maybe someone else could help you with macros.

Hope it helps!

"Hayles98" wrote:

I am working on two spreadsheets. The first one is our main database, and I
want to insert data from the second spreadsheet. My problems is that the
first spreadsheet has both the first name and surname in one cell under
"contact name", whereas the second spreadsheet as the first names and
surnames split between separate columns.

Is there a way to combine the two columns to put the first names and
surnames on the second spread sheet in one column? There are around 590 rows
in the second spreadsheet (1,000s) in the first, so I don't really want to
enter the names manually!