Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2010, 05:46 AM
Raner Raner is offline Excel 2007 cell format help!!! Windows XP Excel 2007 cell format help!!! Office 2007
Novice
Excel 2007 cell format help!!!
 
Join Date: Dec 2009
Posts: 6
Raner is on a distinguished road
Default Excel 2007 cell format help!!!

Hi I'm Stuck
Need to format a Cell with spacing.


If I type this:1H2KL125UIM879HG5
How do I format a cell to come out like this:
1 H 2 K L 1 2 5 U I M 8 7 9 H G 5
It's got to be simple to do but I'm just missing it. Thanks Raner
Reply With Quote
  #2  
Old 02-25-2010, 04:58 PM
BjornS BjornS is offline Excel 2007 cell format help!!! Windows Vista Excel 2007 cell format help!!! Office 2003
Competent Performer
 
Join Date: Jan 2010
Location: Sweden
Posts: 116
BjornS is on a distinguished road
Default

Hello Raner,
I'm stuck too! I have searched and searched ("googled around"), and it is really annoying to find out that there probably isn't any such possibility by using custom (text) format.

I suggest you use a macro function. I attach a proposal. Please note that I am a "formula guy". This is the first macro-function I am writing, but at least it seems to work fine anyhow :-)

Best regards
Bjorn
Attached Files
File Type: xls Spacing.xls (42.5 KB, 13 views)
Reply With Quote
  #3  
Old 02-28-2010, 06:08 PM
Raner Raner is offline Excel 2007 cell format help!!! Windows XP Excel 2007 cell format help!!! Office 2007
Novice
Excel 2007 cell format help!!!
 
Join Date: Dec 2009
Posts: 6
Raner is on a distinguished road
Default

Hey BjornS
I'm sorry it took me so long to thank you for the came back I have several Email address's and it's its been a while since I visited the one I got your reply on.But I figured it out I made it work using another predsheet and than typed in information and than used the = & enter keys. Using a cell for every letter and number and then I spaced the cells to the right distance between the letters and numbers.The only thing I am fighting now is the cells with the number 0 will not work I custom designed the cells with 0 and it still won't work but I'm using the letter O instead of the number 0 and I am getting by for now till I can firgure what is going on.Thanks again Raner
Reply With Quote
  #4  
Old 03-08-2010, 12:41 PM
BjornS BjornS is offline Excel 2007 cell format help!!! Windows Vista Excel 2007 cell format help!!! Office 2003
Competent Performer
 
Join Date: Jan 2010
Location: Sweden
Posts: 116
BjornS is on a distinguished road
Default

Hi Raner,
if you post an example spreadsheet, I (or someone else) can have a look at your issue with the zeros.

Best regards
Bjorn
Reply With Quote
  #5  
Old 06-17-2013, 11:13 PM
fzuazua fzuazua is offline Excel 2007 cell format help!!! Windows XP Excel 2007 cell format help!!! Office 2003
Novice
 
Join Date: Jun 2013
Posts: 2
fzuazua is on a distinguished road
Default

Activate or click on the cell that has the string and run this macro it will put the spaced string in the next cell down. Assume its on Sheet1

Sub SpaceText ()
With Selection
Zrow = .Row + 1
Zcol = .Column
End With
With Worksheets("Sheet1")
.Cells(Zrow, Zcol) = ""
For I = 1 To Len(Selection.Text)
.Cells(Zrow, Zcol) = .Cells(Zrow, Zcol) & Mid(Selection.Text, I, 1) & " "
Next
End With
End sub
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 cell format help!!! Format Excel to look like Word Kilconey Excel 1 04-30-2010 09:42 AM
Splitting Excel cell into multiple ruben23 Excel 1 07-23-2009 03:49 AM
Auto-populate an MS Word table cell with text from a diff cell? dreamrthts Word Tables 0 03-20-2009 01:49 PM
Excel error: "Too many different cell formats" enviroko Excel 0 01-09-2008 07:27 AM
Excel 2007 cell format help!!! paste formated text from Word to only one Excel cell heron Word 1 12-06-2005 02:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft