Solved

Simple Merge Macro

Posted on 2014-01-11
2
221 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now