Solved

how to combine cells in excell

Posted on 2014-10-10
3
45 Views
Last Modified: 2014-10-13
in a spreadsheet how do I combine B2 with ":" and C2 to get

contents of B2: contents of C2
0
Comment
Question by:Matt Pinkston
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 167 total points
ID: 40374056
Use the Concatenate function

= Concatenate(B2, ":", C2)

Note you can use a space ": " if you need the space between.
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 167 total points
ID: 40374060
Alternatively, you can use the ampersand to concatenate:
=B2&":"&C2

-Glenn
0
 
LVL 26

Assisted Solution

by:ProfessorJimJam
ProfessorJimJam earned 166 total points
ID: 40374153
and ALTERNATIVELY  :-)
if you didn't bother with formula then here you use the below macro code to do it all at once

Sub joincells()
    Dim myrange, mycell As Range
    Set myrange = Sheets("sheet1").Range("B2", Range("B1047586").End(xlUp))
    For Each mycell In myrange
        mycell.Offset(0, 2) = mycell.Value & ":" & mycell.Offset(0, 1).Value
    Next mycell
End Sub

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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,…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

735 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