Solved

How do you concatenate numbers in the customised form

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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 in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

752 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