Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Format text within a formula

I am using Excel 2007 SP1.
I have a formula that I want to format the font color of specific text
sections.

Here is my formula:

="change. Payback period will net you " &
IF(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1)0,DOLLA R(ABS(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1)),0)
& " more
than",IF(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1)<0 ,DOLLAR(ABS(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1 )),0)
& " less than"," no difference from")) & " ROI, during the next"

What I want to do is format the DOLLAR parts as green for greater than zero,
and red for less than zero. How can I do this?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Format text within a formula

hi,
use conditional formating, within the home menu go to Styles (5th tab on
top), conditional formating, highlight cells rules and there apply your rules

If this helps please click yes, thanks

"Larry Horsley" wrote:

I am using Excel 2007 SP1.
I have a formula that I want to format the font color of specific text
sections.

Here is my formula:

="change. Payback period will net you " &
IF(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1)0,DOLLA R(ABS(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1)),0)
& " more
than",IF(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1)<0 ,DOLLAR(ABS(OFFSET(NextBuy!$AC$6,ForcastDays,0,1,1 )),0)
& " less than"," no difference from")) & " ROI, during the next"

What I want to do is format the DOLLAR parts as green for greater than zero,
and red for less than zero. How can I do this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Format text within a formula

On Wed, 3 Jun 2009 05:08:01 -0700, Eduardo
wrote:

hi,
use conditional formating, within the home menu go to Styles (5th tab on
top), conditional formating, highlight cells rules and there apply your rules


How does that format just the Dollar parts?
--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Format text within a formula

Thanks Ron, I missunderstood the question, you are right

"Ron Rosenfeld" wrote:

On Wed, 3 Jun 2009 05:08:01 -0700, Eduardo
wrote:

hi,
use conditional formating, within the home menu go to Styles (5th tab on
top), conditional formating, highlight cells rules and there apply your rules


How does that format just the Dollar parts?
--ron

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
Format text in formula line mge Excel Worksheet Functions 6 April 24th 09 03:58 AM
How do I format text so that when the formula delivers the mixeddata, it looks right Chrism Excel Discussion (Misc queries) 1 January 26th 08 03:39 PM
format text color within formula St@cy Excel Worksheet Functions 1 April 28th 07 07:46 AM
How do I format text that is part of a formula? TJ Excel Discussion (Misc queries) 5 December 29th 05 07:54 PM
Display Format with Text & Formula StephanieH Excel Worksheet Functions 3 April 22nd 05 04:01 PM


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