PC Review


Reply
Thread Tools Rate Thread

combine two cells into new cell with different font format

 
 
Kux
Guest
Posts: n/a
 
      15th Jul 2006
Hello Everyone,
I guess it is an easy one, but I cannot solve it my own.
I have two cells for a reference list.
Cell A1 contains a name of an author, Cell B1 contains an article
title.

I want to combine both sells in C1 like A1&B1. The problem is that in
Cell C1 the authors name (from A1) should appear normal, while the
titel (from B1) should be in italics or bold (both in the same cell)

anybody idea how to do that.

thanks Kai

 
Reply With Quote
 
 
 
 
DS-NTE
Guest
Posts: n/a
 
      15th Jul 2006
AFAIK it can't be done.

knut
"Kux" <(E-Mail Removed)> skrev i melding
news:(E-Mail Removed)...
> Hello Everyone,
> I guess it is an easy one, but I cannot solve it my own.
> I have two cells for a reference list.
> Cell A1 contains a name of an author, Cell B1 contains an article
> title.
>
> I want to combine both sells in C1 like A1&B1. The problem is that in
> Cell C1 the authors name (from A1) should appear normal, while the
> titel (from B1) should be in italics or bold (both in the same cell)
>
> anybody idea how to do that.
>
> thanks Kai
>



 
Reply With Quote
 
RagDyeR
Guest
Posts: n/a
 
      15th Jul 2006
Can't be done.

BUT ... try this to add quotes to the title:

=A1&" "&""""&B1&""""

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

"Kux" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hello Everyone,
I guess it is an easy one, but I cannot solve it my own.
I have two cells for a reference list.
Cell A1 contains a name of an author, Cell B1 contains an article
title.

I want to combine both sells in C1 like A1&B1. The problem is that in
Cell C1 the authors name (from A1) should appear normal, while the
titel (from B1) should be in italics or bold (both in the same cell)

anybody idea how to do that.

thanks Kai


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      15th Jul 2006
You can't do it with a formula, but you could do it with a macro.

Option Explicit
Sub testme()

Dim myRng As Range
Dim myCell As Range
Dim wks As Worksheet

Set wks = Worksheets("Sheet1")
With wks
Set myRng = .Range("a2", .Cells(.Rows.Count, "A").End(xlUp))
End With

For Each myCell In myRng.Cells
With myCell
.Offset(0, 2).Value = .Value & " " & .Offset(0, 1).Value
With .Offset(0, 2).Characters(Len(.Value) + 2, _
Len(.Offset(0, 2).Value))
.Font.Bold = True
.Font.Italic = True
End With
End With
Next myCell
End Sub

This assumes your data is in sheet1, A2:Axxx, B2:Bxxx and the results go in
C2:Cxxx.

But if you do this (to make things look pretty), don't destroy the original
columns.

You'll find that having the data separated into fields will make
sorting/filter/summarizing much easier.

If you want, just hide those original columns.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Kux wrote:
>
> Hello Everyone,
> I guess it is an easy one, but I cannot solve it my own.
> I have two cells for a reference list.
> Cell A1 contains a name of an author, Cell B1 contains an article
> title.
>
> I want to combine both sells in C1 like A1&B1. The problem is that in
> Cell C1 the authors name (from A1) should appear normal, while the
> titel (from B1) should be in italics or bold (both in the same cell)
>
> anybody idea how to do that.
>
> thanks Kai


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine multiple cells into one cell. jfcby Microsoft Excel Programming 3 13th Nov 2008 07:19 PM
How do i combine 2 cells contain date in one cell, Bintaro645 Microsoft Excel Worksheet Functions 2 11th Aug 2008 02:16 PM
How to Combine Cells using Other Cell pll Microsoft Excel Worksheet Functions 3 30th Jul 2008 09:18 PM
want format cells alignment not format cells font style =?Utf-8?B?SmVhbm5pZSBCZWFu?= Microsoft Excel Misc 2 10th Feb 2006 09:31 AM
How to combine 2 cells' data into 1 cell? athatisme4@gmail.com Microsoft Excel Discussion 3 12th Oct 2005 02:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:31 PM.