Solved

How do I merge two columns of data

Posted on 2011-03-08
5
244 Views
Last Modified: 2012-05-11
I have a spreadsheet with 3700 rows. Column B contains a city code and Column E contains the actual location number. I am trying to get all output to look as follows 050-0000

I have included an excel sampl spreadsheet as well. My source is in yellow I am trying to concatinate or merge as the green cells.

Thank you

concatinationexample01.xlsx
0
Comment
Question by:manelson05
5 Comments
 
LVL 19

Accepted Solution

by:
MINDSUPERB earned 500 total points
ID: 35069187
In B14 of the sample spreasheet, enter this formula:

=CONCATENATE(B2,"-",E2)

You can copy it to other cells.

Sincerely,
Ed
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 35069208
See the attached file


Ed
concatinationexample01-1-.xlsx
0
 
LVL 12

Expert Comment

by:sstampf
ID: 35069270
You can also use:
=B2 & "-" & E2
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35069435
You can even use this macro

Sub concaddr()
For Each cel In Intersect(ActiveSheet.UsedRange, Range("B:B"))
If cel.Value <> "" And cel.Row > 1 Then cel.Value = cel & "-" & cel.Offset(0, 3)
Next cel
End Sub
0
 

Author Closing Comment

by:manelson05
ID: 35069725
Verym very, very helpful Sir.

Thank you
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

706 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