Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Need help concatenating and formulas

I'm trying to concatenate 2 columns "project name" and "project number".
This is what I would like to do with the following given:
concatenate column width: 32
Project name: Microsoft
Project number: 121212
formula: = '=concatenate(A1," ",A2)
current output = Microsoft 121212 (17 characters)
attempting output = Microsoft 121212 (32 characters)
basically i want to add spaces between the two based on the width of the
column minus the number of characters of the current output (note that each
row will have a different number of characters.
In other terms, i want to push "microsoft" to the far left of the cell and
"121212" to the far right

Can this be done?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Need help concatenating and formulas

How about

=A1&REPT(" ",32-LEN(A1&B1))&B1

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Arkitek" wrote in message
...
I'm trying to concatenate 2 columns "project name" and "project number".
This is what I would like to do with the following given:
concatenate column width: 32
Project name: Microsoft
Project number: 121212
formula: = '=concatenate(A1," ",A2)
current output = Microsoft 121212 (17 characters)
attempting output = Microsoft 121212 (32 characters)
basically i want to add spaces between the two based on the width of the
column minus the number of characters of the current output (note that
each
row will have a different number of characters.
In other terms, i want to push "microsoft" to the far left of the cell and
"121212" to the far right

Can this be done?

Thanks.


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
How to identify text from a autofiltered list using formulas Harryac Excel Worksheet Functions 1 July 13th 06 11:45 PM
converting concatenated text strings into formulas z.entropic Excel Worksheet Functions 0 June 5th 06 06:15 PM
Concatenating two formulas Mukesh Garg Excel Discussion (Misc queries) 4 October 5th 05 12:27 PM
Concatenating IF(AND formulas wellfm Excel Discussion (Misc queries) 3 October 4th 05 07:50 PM
Excel formulas to create large blocks of text Greg Boettcher Excel Discussion (Misc queries) 5 June 12th 05 06:41 PM


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