Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Combine multiple cells (3) adding a Colon (:)

Hi,

I have 3 columns with 500 rows. I would like to combine 3 cells
horrizontally into 1 cell adding a colon (:) between each combined cell.

At the same time is it possible to indicate the first colon to be bold and
the rest normal?

I appreciate your response.
Thank you
--
smile
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Combine multiple cells (3) adding a Colon (:)

=A1&":"&B1&":"&C1

Copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"israel" wrote in message
...
Hi,

I have 3 columns with 500 rows. I would like to combine 3 cells
horrizontally into 1 cell adding a colon (:) between each combined cell.

At the same time is it possible to indicate the first colon to be bold and
the rest normal?

I appreciate your response.
Thank you
--
smile



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Combine multiple cells (3) adding a Colon (:)

Say be begin with data in columns A & B & C.

In D1 enter:

=A1 & ":" & B1 & ":" & C1

then copy column D and PasteSpecial Values onto itself.

FOrmatting a sinlge character can either be done manually or with a macro.
--
Gary''s Student - gsnu200856


"israel" wrote:

Hi,

I have 3 columns with 500 rows. I would like to combine 3 cells
horrizontally into 1 cell adding a colon (:) between each combined cell.

At the same time is it possible to indicate the first colon to be bold and
the rest normal?

I appreciate your response.
Thank you
--
smile

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Combine multiple cells (3) adding a Colon (:)

Hi,

You really can't format part of a formula, so if you follow GS's suggestion
of converting to values you will be able to format the first colon, however,
with 500 of these I would do it with code, not manually.

Here's some sample code, to run it you select the range where you converted
the formulas to value and run it...

Sub FormatColon()
Dim X As Integer
Dim cell As Range
For Each cell In Selection
X = InStr(1, cell, ":")
cell.Characters(X, 1).Font.Bold = True
Next cell
End Sub

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"israel" wrote:

Hi,

I have 3 columns with 500 rows. I would like to combine 3 cells
horrizontally into 1 cell adding a colon (:) between each combined cell.

At the same time is it possible to indicate the first colon to be bold and
the rest normal?

I appreciate your response.
Thank you
--
smile

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Combine multiple cells (3) adding a Colon (:)

I did follow GS's instruction and it worked well combining the cells with a
colon, what you are suggesting is a bit more than I manage. If it won't be
much of a bother I would ask you to indicate from step 1 where and how to
insert the code.

In matter of fact once I combined the cells, cell A1 & B1 which is designed
to be bold, turned normal in the combined cell. If you can help me with this
it would be greatly appreciated.

Thank you, Thank you
--
smile


"Shane Devenshire" wrote:

Hi,

You really can't format part of a formula, so if you follow GS's suggestion
of converting to values you will be able to format the first colon, however,
with 500 of these I would do it with code, not manually.

Here's some sample code, to run it you select the range where you converted
the formulas to value and run it...

Sub FormatColon()
Dim X As Integer
Dim cell As Range
For Each cell In Selection
X = InStr(1, cell, ":")
cell.Characters(X, 1).Font.Bold = True
Next cell
End Sub

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"israel" wrote:

Hi,

I have 3 columns with 500 rows. I would like to combine 3 cells
horrizontally into 1 cell adding a colon (:) between each combined cell.

At the same time is it possible to indicate the first colon to be bold and
the rest normal?

I appreciate your response.
Thank you
--
smile

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
adding a colon to military time Suzanne Excel Worksheet Functions 7 February 7th 13 10:51 AM
how to change colon to semi-colon in CP/List Seprator Khoshravan Excel Discussion (Misc queries) 3 February 4th 09 07:41 PM
Need to combine multiple cells into on cell papercut Excel Worksheet Functions 8 January 15th 09 10:54 PM
combine text of multiple cells Uncle O Excel Worksheet Functions 3 August 25th 05 05:09 PM
How can I combine multiple cells in Excel? jallbright24 Excel Discussion (Misc queries) 1 November 29th 04 04:54 PM


All times are GMT +1. The time now is 05:45 PM.

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"