Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple formats in a cell in Excel 1

Status
Not open for further replies.

mmogul

IS-IT--Management
Dec 1, 2003
218
US
I want to concatenate the data found in two cells and retain the formats in the combined cell in Excel.

Example:

Cell A1: unbold
Cell A2: BOLD

Cell A3: =A1 & A2

The desired result is unboldBOLD where the text "BOLD" is formatted as <bold> but the text "unbold" remains unbolded.

Anyone know how to do this?
 
An excel formula cannot determine cell formatting - it just returns data.

I've never done it before, but this could probably be done with a macro. If you'd like to pursue that option, please repost in forum707.

[tt][blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
Hi,

I agree with John.

Oddly enough, I've been asked to do something very similar to what you want. The logic is very tricky. If you pursue a VBA solution in Forum707, you'll have to do some of the "heavy lifting."

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
See here:

thread707-1248145


Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Glenn,

Thanks for the link to your previous post. I used your code as the basis for something I'm working on. It saved me alot of time! You might check in the corresponding thread to this one in Forum707.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hi Skip,

my pleasure. I remembered doing it a long time ago, so finding the thread was quite easy.

I'll check the corresponding thread in the VBA forum too.

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top