Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Name Surname combination

I have a worksheet, names and surnames are on different columns. Any
possibility to display both of them on the 3rd column together. Thanks for
all the help
--
Peace in the world
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Name Surname combination

Hi,

Assume forename and surname in A1 and B1 then in C1 put:

=A1 & " " & B1 ' Separated by blank

or in VBA:

Range("C1").value=Range("A1").value & " " & range("B1").value

HTH

"Seaman" wrote:

I have a worksheet, names and surnames are on different columns. Any
possibility to display both of them on the 3rd column together. Thanks for
all the help
--
Peace in the world

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Name Surname combination

Suggest you add a trim function to remove any spurious spaces at end,
beginning and double spaces in text strings.

=trim(A1 & " " & B1)

Range("C1").value= trim(Range("A1").value & " " & range("B1").value)
--
Cheers
Nigel



"Toppers" wrote in message
...
Hi,

Assume forename and surname in A1 and B1 then in C1 put:

=A1 & " " & B1 ' Separated by blank

or in VBA:

Range("C1").value=Range("A1").value & " " & range("B1").value

HTH

"Seaman" wrote:

I have a worksheet, names and surnames are on different columns. Any
possibility to display both of them on the 3rd column together. Thanks

for
all the help
--
Peace in the world



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
Sorting by surname when first name and surname are in the same cel Louise New Users to Excel 3 April 5th 23 02:50 PM
Split surname from end of name data Serena Excel Worksheet Functions 4 October 10th 07 11:18 PM
Change around surname and name kassie Excel Discussion (Misc queries) 8 June 10th 07 07:01 AM
Splitting firstName from Surname Althea Excel Worksheet Functions 5 April 23rd 06 09:05 PM
Display only surname Pat Excel Worksheet Functions 2 June 23rd 05 10:30 PM


All times are GMT +1. The time now is 05:16 AM.

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

About Us

"It's about Microsoft Excel"