Solved

How do you concatenate numbers in the customised form

Posted on 2011-02-28
5
266 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:Ingeborg Hawighorst
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 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:Ingeborg Hawighorst
ID: 34995202
Thanks for the grade, Tezza!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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,…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

895 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

12 Experts available now in Live!

Get 1:1 Help Now