Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nmodafferi
 
Posts: n/a
Default Add Text To Multiple cells

I am working on this project & I cant figure out how to add a letter in front
of each number in a cell without clicking in to each individual cell and
typing it in. (very time consuming and tedious) The problem is - it's not all
the cells but a majority, all of the numbers are in the same column. To
explain, these are documents in storage. Each item is assigned a number (not
in any particular numerical order but they have to stay in the order they are.

Example:

X39655
X39656
X39711
39662
39664
39665

The last three numbers need the X in front of them.


Any ideas? Thanks so much!!

  #3   Report Post  
RagDyer
 
Posts: n/a
Default

Add a "helper" column containing a text formula which will add your "X".
Then, you can delete the underlying formula in this helper column, leaving
the revised text behind.
You could then delete the original, if desired.

With data starting in A1, enter this in B1:

=IF(LEFT(A1)="X",A1,"X"&A1)

Then, drag down to copy, using the "fill handle",
OR
*Double click* the fill handle, to copy the formula in B1 down Column B, as
far as there is data in Column A.

Now, while the cells in Column B are *still* selected from the "copy", to
delete the formula, and leave the data behind:
Right click in the selection and choose "Copy".
Right click again, and choose "Paste Special".
Click in "Values", then <OK, then <Esc.

You could now delete the original data if you wish.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"nmodafferi" wrote in message
...
I am working on this project & I cant figure out how to add a letter in

front
of each number in a cell without clicking in to each individual cell and
typing it in. (very time consuming and tedious) The problem is - it's not

all
the cells but a majority, all of the numbers are in the same column. To
explain, these are documents in storage. Each item is assigned a number

(not
in any particular numerical order but they have to stay in the order they

are.

Example:

X39655
X39656
X39711
39662
39664
39665

The last three numbers need the X in front of them.


Any ideas? Thanks so much!!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help importing text files into individual cells saybut Excel Discussion (Misc queries) 4 May 31st 05 03:24 PM
Combining & formatting cells with text - Excel 2002 Bob Excel Discussion (Misc queries) 4 March 4th 05 10:35 PM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
Adding two text cells together Audrey Excel Discussion (Misc queries) 4 February 24th 05 09:57 PM
Format text across cells peterlsutton New Users to Excel 3 February 21st 05 07:54 PM


All times are GMT +1. The time now is 11:17 AM.

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

About Us

"It's about Microsoft Excel"