Solved

Simple Merge Macro

Posted on 2014-01-11
2
239 Views
Last Modified: 2014-01-11
EE Pros,

I'm trying to simply merge a First Name Column of data with a Last Name Column to give me a resulting FULL NAME Column.  In other words, I have John in Column B and Smith in Column C, same row.  I need a result in Column D of John Smith.  I tried recording a macro (with and without relative on) and to no avail.

Sample attached.

Thank you in advance,

B.
Simple-Merge.xlsm
0
Comment
Question by:Bright01
2 Comments
 
LVL 1

Accepted Solution

by:
hcoragem earned 500 total points
ID: 39773363
Here is a simple macro

When building this macro you should select "Use Relative References".

Sub Macro1()
'
' Keyboard shurtcut: Ctrl+q
'
' B = First Name Column
' C = Last Name Column
' D = Full Name Column
'
' Put the cursor on column C and press Ctrl+q

    ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[-2],"" "",RC[-1])"
    ActiveCell.Offset(1, 0).Range("A1").Select
End Sub
0
 

Author Closing Comment

by:Bright01
ID: 39773389
Perfect!  Thank you!

b.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question