Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do you concatenate numbers in the customised form

Posted on 2011-02-28
5
Medium Priority
?
304 Views
Last Modified: 2012-05-11
Hi Experts

I don't know if it is me being senseless, probably is, but I would like to concatenate two columns.

In cell C2 I have a Number thus:

9800158671 0001

I want to remove the BLANK space and make it one number thus 98001586710001

First I split using "TEXT TO COLUMNS" and ended up with
9800158671 in CELL D2 and a single 1 in CELL E2
I then customised CELL E2 to make it a four digit number 0001
Then I concantenated CELL D2 & CELL E2 and ended up with 98001586711

I realise that CONCATENATION is "textual" but how can I end up with the desired result please.
Thanks in advance.
Regards
Tezza
0
Comment
Question by:tezza73
  • 3
  • 2
5 Comments
 
LVL 50
ID: 34995096
Hello,

Instead of the text to columns and concatenation and all that, you could use

=SUBSTITUTE(C2," ","")

Copy down, then copy the results and use Paste Special > Values into a different column or into the original formula cells.

cheers, teylyn
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 2000 total points
ID: 34995109
The result of this will still be text. Do you need this to be a number? With that size, you're about to hit the limits of what Excel can handle as numeric data.

I assume this is something like a serial number or product code, and it will not be used in calculations. If so, the text output should be fine. If, though, you really need this to be numeric, you could use

=SUBSTITUTE(C2," ","")+0

or

=SUBSTITUTE(C2," ","")*1

to create a real number.

cheers, teylyn
0
 

Author Comment

by:tezza73
ID: 34995190
Hi teylyn

Spot On, thanks for that it worked a treat. Top Marks.

Regards
Tezza
0
 

Author Closing Comment

by:tezza73
ID: 34995194
thank you very much, a quick and accurate answer.
0
 
LVL 50
ID: 34995202
Thanks for the grade, Tezza!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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 article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

877 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