Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
elad
 
Posts: n/a
Default conditionally format cells

I have a cell that contains a formula that can yield either a dollar value or
a percentage value, depending on inputs. How can I format the cell to
correctly match the result?
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

If the percent is never greater than 100%, then you could custom format the
font color. For example:

[Red][<1]0%;[Blue]$#.00

HTH
Jason
Atlanta, GA





"elad" wrote:

I have a cell that contains a formula that can yield either a dollar value or
a percentage value, depending on inputs. How can I format the cell to
correctly match the result?

  #3   Report Post  
RagDyeR
 
Posts: n/a
Default

Since you didn't state examples, try this custom format, where you'll
*never* have a return of 100%:

[=1]$#,###.00;[<1]#.0%;General

If you anticipate a return of 100%, try this, where you'll lose the ability
to display $1:

[1]$#,###.00;[<=1]#.0%;General
--

HTH,

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


"elad" wrote in message
...
I have a cell that contains a formula that can yield either a dollar value
or
a percentage value, depending on inputs. How can I format the cell to
correctly match the result?


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
How do I conditionally format a chart? Michelle Excel Discussion (Misc queries) 1 April 12th 05 09:59 PM
How do I get brackets in format cells accounting? allan Excel Discussion (Misc queries) 2 February 12th 05 10:08 PM
Combining data (numeric format) in multiple cells into one cell (t GNAC SID Excel Discussion (Misc queries) 2 February 7th 05 04:09 PM
How do I format cells to a specific number of digits? Gabriele Excel Discussion (Misc queries) 3 February 5th 05 03:17 PM
Find cells without multiple spacebars and format... BeSmart Excel Discussion (Misc queries) 2 January 27th 05 11:52 PM


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