alarryaaron
New Member
This one is challenging.
I want a cell to be formatted as % if value <=100 and as currency if >100. [The context changes that if data is 100 or less, it needs to be treated as a percent; any other value should be treated as a real number.]
I tried using the following custom format:
[>100] $#,###.00;[<=100] 0.00%.
It works OK as long as I'm at 100 or less.
The problem is when I try to display numbers that are >100 and <10000 it shows as % (because it still interprets the typed number as a percent. For example, the number 9999 shows up as 9999%. I'd hoped to see it as $9,999.00
If number is >10000, it properly displays the $ sign but the value shown is 100 fold too small. If I type in 1234567, I get $12,345.67.
If this can't be done with Custom Formats, is there a way to do with Conditional Formatting? I couldn't get Conditional Formatting to do any formatting other than color changes.
Last resort is VBA.
Thanks in advance for your help.
I want a cell to be formatted as % if value <=100 and as currency if >100. [The context changes that if data is 100 or less, it needs to be treated as a percent; any other value should be treated as a real number.]
I tried using the following custom format:
[>100] $#,###.00;[<=100] 0.00%.
It works OK as long as I'm at 100 or less.
The problem is when I try to display numbers that are >100 and <10000 it shows as % (because it still interprets the typed number as a percent. For example, the number 9999 shows up as 9999%. I'd hoped to see it as $9,999.00
If number is >10000, it properly displays the $ sign but the value shown is 100 fold too small. If I type in 1234567, I get $12,345.67.
If this can't be done with Custom Formats, is there a way to do with Conditional Formatting? I couldn't get Conditional Formatting to do any formatting other than color changes.
Last resort is VBA.
Thanks in advance for your help.