#1   Report Post  
Posted to microsoft.public.excel.misc
John Moore
 
Posts: n/a
Default Insert Blanks

I need to insert 2 blanks into some data ,,, e.g. 0001234, I want it to be
able to see 000 1234. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Insert Blanks

John Moore wrote:
I need to insert 2 blanks into some data ,,, e.g. 0001234, I want it
to be able to see 000 1234. Can anyone help?


Lots of unanswered questions here!
If the data is always 7 characters then you can do:

=LEFT(data,3)&" "&RIGHT(data,4)

If you always want to insert after the first 3 characters do:

=LEFT(data,3)&" "&MID(data,4,LEN(data))

I could go on depending on what exactly the requirements are (e.g. put the
blanks before the last 4 characters).

Also this presupposes that you wish to do this using a formula and then
maybe use copy and Paste Special-Values to replace the data. You might want
a macro to do it.

Let us know if the above is not spot on.


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
Inserting blanks or changing dimensions Jones Excel Worksheet Functions 1 June 6th 06 01:50 PM
linking files with blanks muscogee Excel Discussion (Misc queries) 0 March 17th 05 07:13 PM
insert a JPEG into EXCEL 2002 mckee Excel Discussion (Misc queries) 3 March 11th 05 05:03 PM
insert picture BillGwyer Excel Discussion (Misc queries) 1 March 4th 05 06:37 PM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM


All times are GMT +1. The time now is 07:59 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"