#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default &TEXT formula

I have and & TEXT formula that makes a statement like:

Month: 5.1 Chg YTD -2.5

In the &TEXT formula, how do I format the numbers so that all negative
value's will show in red. Below is my formula:
=B5&TEXT(" ",0)&TEXT(C5,"0.0")&TEXT(" ",0)&E5&TEXT("
",0)&TEXT(F5,"0.0%")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default &TEXT formula

No need for those extra TEXT parts

=B5&" "&TEXT(C5,"0.0")&" "&E5&" "&TEXT(F5,"0.0%")

However you cannot change part of the formula to red, you can change the
whole formula result to red based on any of the values by using
formatconditional formatting



--
Regards,

Peo Sjoblom



"lrcburgers" wrote in message
...
I have and & TEXT formula that makes a statement like:

Month: 5.1 Chg YTD -2.5

In the &TEXT formula, how do I format the numbers so that all negative
value's will show in red. Below is my formula:
=B5&TEXT(" ",0)&TEXT(C5,"0.0")&TEXT(" ",0)&E5&TEXT("
",0)&TEXT(F5,"0.0%")



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default &TEXT formula

"Peo Sjoblom" wrote...
No need for those extra TEXT parts

=B5&" "&TEXT(C5,"0.0")&" "&E5&" "&TEXT(F5,"0.0%")

....

No need for most of those text constants.

=B5&TEXT(C5," 0.0")&" "&E5&TEXT(F5," 0.0%")


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default &TEXT formula

or even:
=B5&TEXT(C5," 0.0 ")&E5&TEXT(F5," 0.0%")


Harlan Grove wrote:

"Peo Sjoblom" wrote...
No need for those extra TEXT parts

=B5&" "&TEXT(C5,"0.0")&" "&E5&" "&TEXT(F5,"0.0%")

...

No need for most of those text constants.

=B5&TEXT(C5," 0.0")&" "&E5&TEXT(F5," 0.0%")


--

Dave Peterson
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
Formula Text String: Formatting Text and Numbers? dj479794 Excel Discussion (Misc queries) 5 June 30th 07 12:19 AM
Link to text and return text into a formula? Mary Excel Worksheet Functions 5 June 22nd 07 01:49 PM
Excel:Get concatenated text to be recognised as formula not text? yvette Excel Discussion (Misc queries) 5 January 15th 07 07:32 PM
Formula to count text and alert me if a text appears more than twi Mike Excel Discussion (Misc queries) 1 August 29th 05 09:53 PM
match cell text with text in formula Todd L. Excel Worksheet Functions 3 December 9th 04 08:11 PM


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