Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


networkn

Networkn
32349 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

#102782 22-May-2012 14:30
Send private message

Hi There!

If I have a column of numbers but they are all different, and I want to add a SPACE to the end of the number, how would I do that to everything in that column? Same with a column with text in it?

View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2

Bee

Bee
732 posts

Ultimate Geek


  #628989 22-May-2012 14:34
Send private message

You could do this as a formula inserted into another column?
but what is the purpose of this?
is there anything after the number?




Doing your best is much more important than being the best.




networkn

Networkn
32349 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #628991 22-May-2012 14:36
Send private message

No, but for the sake of importing the text into another application I need a space, as when I concatenate the columns it's not formatted nicely.

wellygary
8312 posts

Uber Geek


  #628992 22-May-2012 14:39
Send private message


Create a column containing the SPACEs and then use CONCATENATE to join to contents of the two columns together..



Bee

Bee
732 posts

Ultimate Geek


  #628994 22-May-2012 14:41
Send private message

or just : =CONCATENATE(A1," ")


EDIT : or creating a custom number format as 0 then a space and applying that will work too :) without having to create a new column

:)




Doing your best is much more important than being the best.


networkn

Networkn
32349 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #628996 22-May-2012 14:42
Send private message

That's what I am trying to do. I don't know how to apply a space to the end of the columns

networkn

Networkn
32349 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #628997 22-May-2012 14:42
Send private message

Bee: that should work :)

gzt

gzt
17104 posts

Uber Geek

Lifetime subscriber

  #628998 22-May-2012 14:43
Send private message

Presumably you want a consistent number of spaces and not enter each manually. Custom number format:

http://office.microsoft.com/en-us/excel-help/number-format-codes-HP005198679.aspx

 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
russelo
328 posts

Ultimate Geek


  #629007 22-May-2012 15:11
Send private message

Use ampersand to append values as text:
= A1 & " quick " & A2 & " fox"

In your case:
=A1 & " "


NonprayingMantis
6434 posts

Uber Geek


  #629021 22-May-2012 15:30
Send private message

depends whether you need the space there for some other operation, or whether you just want the appearanceof a space.
If you need the actual space for, say, consolidating the data on another sheet or something, then use the formulas above.
If you just want it for aesthetic purposes, then just custom format it. Much much easier and less error prone.

networkn

Networkn
32349 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #629046 22-May-2012 16:22
Send private message

Well when I import the column into our accounting system, I want the spaces there so it's readable under description.

gzt

gzt
17104 posts

Uber Geek

Lifetime subscriber

  #629120 22-May-2012 19:21
Send private message

I don't have excel on this machine. Someone who does might be able to knock this into proper shape:

If(LEN(A1)=1,B1=A1 & " "); If(LEN(A1)=2,B1=A1 & " "); If(LEN(A1)=3,B1=A1 & " "); [etc]


gzt

gzt
17104 posts

Uber Geek

Lifetime subscriber

  #629143 22-May-2012 20:02
Send private message

networkn: Well when I import the column into our accounting system, I want the spaces there so it's readable under description.

A custom format would appear that way in an export from excel to csv or whatever. Depends how your accounting program reads and processes the import I guess. Custom format might work.

wasabi2k
2096 posts

Uber Geek


  #629403 23-May-2012 11:33
Send private message

also saving out to csv may remove the padding spaces depending on the format of the column (number vs text)

networkn

Networkn
32349 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #629409 23-May-2012 11:42
Send private message

Hmm reformatting this spreadsheet is no small task! I also need to add the word user to every cell in a column now too, could someone show me how to do that please? It's a cell with numbers and I just need a space and then "user" I am thinking it will need to be something like =a1+ " User" or something? I wish it was possible to modify the existing cells rather then adding a new column of cells


NzBeagle
961 posts

Ultimate Geek

Trusted

  #629416 23-May-2012 11:50
Send private message

networkn: Hmm reformatting this spreadsheet is no small task! I also need to add the word user to every cell in a column now too, could someone show me how to do that please? It's a cell with numbers and I just need a space and then "user" I am thinking it will need to be something like =a1+ " User" or something? I wish it was possible to modify the existing cells rather then adding a new column of cells



Using a VB script you could set it up to run for the column and replace existing cells with the desired contents

 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.