Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Merge two column in one

I have one huge excel spreed sheet, on the column F is "First Name", on the
column H is "Last Name", example
F H I
Aram Smith Aram Smith

I would like on Column I showing first name last name like "Aram Smith"
How do you doing with macro?

Thanks.

Lillian

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Merge two column in one

Why not jsut use a Formula, something like this

=F2 & " " & H2

If you want at the end you can just copy and paste special Column I as
values to remove the formulas and leave the text.
--
HTH...

Jim Thomlinson


"Lillian" wrote:

I have one huge excel spreed sheet, on the column F is "First Name", on the
column H is "Last Name", example
F H I
Aram Smith Aram Smith

I would like on Column I showing first name last name like "Aram Smith"
How do you doing with macro?

Thanks.

Lillian

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Merge two column in one

Hi Lillian,

Assumes data starts in row 2:

Sub JoinNames()
Dim lastrow As Long, r As Long
lastrow = Cells(Rows.Count, "F").End(xlUp).Row
For r = 2 To lastrow
Cells(r, "I") = Cells(r, "F") & " " & Cells(r, "H")
Next r
End Sub

HTH

"Lillian" wrote:

I have one huge excel spreed sheet, on the column F is "First Name", on the
column H is "Last Name", example
F H I
Aram Smith Aram Smith

I would like on Column I showing first name last name like "Aram Smith"
How do you doing with macro?

Thanks.

Lillian

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Merge two column in one

=f2&" "&h2



Lillian wrote:

I have one huge excel spreed sheet, on the column F is "First Name", on the
column H is "Last Name", example
F H I
Aram Smith Aram Smith

I would like on Column I showing first name last name like "Aram Smith"
How do you doing with macro?

Thanks.

Lillian


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 3 column merge flaglernet New Users to Excel 1 November 30th 09 12:22 AM
column headings for merge blrmdncr2000 Excel Discussion (Misc queries) 0 March 27th 08 04:43 PM
How do I merge column contents Mike Excel Discussion (Misc queries) 8 February 17th 06 07:18 PM
How do I merge two cells in a column AliWitt Excel Discussion (Misc queries) 1 February 9th 06 10:37 PM
Excel, when column A and B have same name make column C add up in mail merge Dani B via OfficeKB.com Excel Discussion (Misc queries) 6 July 22nd 05 07:43 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"