Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Saz Saz is offline
external usenet poster
 
Posts: 15
Default Cell Formating (concatenate two cells)

Hi All,

I am trying to concatenate two cells and it displays like this on
column C, when I use this formula: =A2&"(five spaces)"&B2

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

How can I align my Column C like this

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

I am trying to kind of justify column C if that is possible.

Thank you,
Saz
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Saz Saz is offline
external usenet poster
 
Posts: 15
Default Cell Formating (concatenate two cells)

On Jul 28, 4:02*pm, Saz wrote:
Hi All,

I am trying to concatenate two cells and it displays like this on
column C, when I use this formula: =A2&"(five spaces)"&B2

John Doe * * *60
Mike Smith * * *70
Sarah Anderson * * *80
George Washington * * 65

How can I align my Column C like this

John Doe 60
Mike Smith * * * * * * 70
Sarah Anderson * * * * *80
George Washington * * 65

I am trying to kind of justify column C if that is possible.

Thank you,
Saz


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 913
Default Cell Formating (concatenate two cells)

On Mon, 28 Jul 2008 14:02:50 -0700 (PDT), Saz
wrote:

Hi All,

I am trying to concatenate two cells and it displays like this on
column C, when I use this formula: =A2&"(five spaces)"&B2

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

How can I align my Column C like this

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

I am trying to kind of justify column C if that is possible.

Thank you,
Saz



Try this formula in cell C2:

=LEFT(A2&" (25 spaces here) ",25)&RIGHT(" "&B2,5)

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 964
Default Cell Formating (concatenate two cells)

The left part can be done without entering 25 spaces

=LEFT(A2&REPT(" ",25),25)



--


Regards,


Peo Sjoblom

"Lars-Åke Aspelin" wrote in message
...
On Mon, 28 Jul 2008 14:02:50 -0700 (PDT), Saz
wrote:

Hi All,

I am trying to concatenate two cells and it displays like this on
column C, when I use this formula: =A2&"(five spaces)"&B2

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

How can I align my Column C like this

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

I am trying to kind of justify column C if that is possible.

Thank you,
Saz



Try this formula in cell C2:

=LEFT(A2&" (25 spaces here) ",25)&RIGHT(" "&B2,5)

Hope this helps / Lars-Åke



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,358
Default Cell Formating (concatenate two cells)

If you want some flexibility, you could use the following array** formula.
This will mean there will always be at least 5 spaces between the 2 sets of
data, no matter how long the data in column A is, or how long the data in
column B is.

=A2&REPT(" ",MAX(LEN($A$2:$A$6))-LEN(A2)+5+MAX(LEN($B$2:$B$6))-LEN(B2))&B2

**When entering an array formula, press CTRL+SHIFT+ENTER to commit the
formula. After you do, brackets { } should appear around the formula. Copy
down and expand data range as needed (currently only rows 2 through 6 are
looked at).


--
John C


"Saz" wrote:

On Jul 28, 4:02 pm, Saz wrote:
Hi All,

I am trying to concatenate two cells and it displays like this on
column C, when I use this formula: =A2&"(five spaces)"&B2

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

How can I align my Column C like this

John Doe 60
Mike Smith 70
Sarah Anderson 80
George Washington 65

I am trying to kind of justify column C if that is possible.

Thank you,
Saz



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
Concatenate Multiple Cells into A Single Cell [email protected] Excel Discussion (Misc queries) 2 May 6th 08 09:14 PM
Number formating in CONCATENATE formula (Part 2) V Padale Excel Worksheet Functions 4 April 17th 08 12:24 PM
Concatenate 2 cells, and have one cell value display as bold? Pierre Excel Worksheet Functions 3 April 26th 07 02:04 PM
Help with formating % in concatenate formula Outapin Excel Discussion (Misc queries) 7 December 2nd 05 02:52 PM
concatenate cells from a column and paste to a cell washdcjohn Excel Discussion (Misc queries) 3 November 15th 05 09:11 PM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"