Solved

How do you concatenate numbers in the customised form

Posted on 2011-02-28
5
254 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

Expert Comment

by:teylyn
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:
teylyn 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

Expert Comment

by:teylyn
ID: 34995202
Thanks for the grade, Tezza!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

747 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

11 Experts available now in Live!

Get 1:1 Help Now