Solved

How do you concatenate numbers in the customised form

Posted on 2011-02-28
5
296 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
[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
  • 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 500 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

Industry Leaders: 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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
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.
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…
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…

617 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