A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Adding a ' to the front of a column of numbers



 
 
Thread Tools Display Modes
  #1  
Old August 20th, 2004, 02:38 PM
punter
external usenet poster
 
Posts: n/a
Default 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  
Old August 20th, 2004, 02:51 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default

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  
Old August 20th, 2004, 02:52 PM
ElsiePOA
external usenet poster
 
Posts: n/a
Default

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  
Old August 20th, 2004, 03:02 PM
icestationzbra
external usenet poster
 
Posts: n/a
Default

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  
Old August 20th, 2004, 08:43 PM
Gord Dibben
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 07:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.