Solved

Simple Merge Macro

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

820 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