If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Adding a ' to the front of a column of numbers
Hello everyone,
I have two columns of numbers in excess of 35,000 lines. I need to do a look up from to the other. The problem I'm running into is that the first set of numbers has a ' in front it but the other one doesn't. Example: First column '123456 Second column 123456 I want to add the ' in front one column and I'm having some problems. Concatenating isn't seeming to work. Any ideas? Thank you, Eddie --- Message posted from http://www.ExcelForum.com/ |
#2
|
|||
|
|||
Hi
why not remove the ' from the other column. e.g. with a macro such as: sub remove_it() dim rng as range set rng=selection rng.value=rng.value end sub -- Regards Frank Kabel Frankfurt, Germany "punter " schrieb im Newsbeitrag news Hello everyone, I have two columns of numbers in excess of 35,000 lines. I need to do a look up from to the other. The problem I'm running into is that the first set of numbers has a ' in front it but the other one doesn't. Example: First column '123456 Second column 123456 I want to add the ' in front one column and I'm having some problems. Concatenating isn't seeming to work. Any ideas? Thank you, Eddie --- Message posted from http://www.ExcelForum.com/ |
#3
|
|||
|
|||
A couple of suggestions:
Rather than adding a ' to column 2, remove the ' from column 1 instead, using the Find/Replace function. But, if you want to add a ' to column 2, insert a helper column and enter: ="'"&B2. (The ''''' is actually a double quote, a single quote and a double quote) Then use copy and paste special/values to the helper column and remove the original column 2 --- Message posted from http://www.ExcelForum.com/ |
#4
|
|||
|
|||
a solution with a different flavour...
if A1 has '123456, put the formula given below in B1. =RIGHT(A1,LEN(A1)-1) this will return 123456. as the other poster has suggested, its better to do away with the ' altogether than to put it in front of the numbers that dont have them. that will protect the chastity of numbers :-)... if you have your numbers in column A contiguously without any breaks in between, then paste the formula in B1 and then use the autofill feature to avoid having to drag the formula down over 35000 rows. --- Message posted from http://www.ExcelForum.com/ |
#5
|
|||
|
|||
Alternate
Copy an empty cell formatted to General. Select your column with the '123456 numbers and Paste SpecialAddOKEsc. Gord Dibben Excel MVP On Fri, 20 Aug 2004 09:02:00 -0500, icestationzbra wrote: a solution with a different flavour... if A1 has '123456, put the formula given below in B1. =RIGHT(A1,LEN(A1)-1) this will return 123456. as the other poster has suggested, its better to do away with the ' altogether than to put it in front of the numbers that dont have them. that will protect the chastity of numbers :-)... if you have your numbers in column A contiguously without any breaks in between, then paste the formula in B1 and then use the autofill feature to avoid having to drag the formula down over 35000 rows. --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Column E cell contents added into Column D contents (not overwriting data but mixing) | creativetechguy | General Discussion | 2 | August 5th, 2004 07:32 PM |
Adding Debits & Credits within One Column | S Philpot | Worksheet Functions | 2 | August 3rd, 2004 09:50 PM |
Adding numbers in columns with letters | Arrow | General Discussion | 2 | August 2nd, 2004 05:45 AM |
Design questions | Bruce | Database Design | 15 | June 19th, 2004 12:12 AM |
rounding down only odd numbers in a column | learninginmn | Worksheet Functions | 6 | October 25th, 2003 05:31 PM |