A text response to a value

obliter8

New Member
Joined
Nov 4, 2005
Messages
9
Hi

i need a formula that will give me a text response to a value....

if the value is zero i would like it to return the text "BALANCED",
if the value is greater than zero i would like it to return the text "OVER",
if the value is less than zero i would like it to return the text "SHORT".

Can this be done?

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Do you mean something like this?

=IF(A1=0, "BALANCED", IF(A1>0, "OVER", "SHORT"))
 
Upvote 0
umm... i'm not sure if this is the right place to reply.



anyway if it is ...the formula worked perfect...Thank You.

Uhh... if its not too much of a hasle id like to ask another question...

is it possible to choose the color of the font for the the response text?
eg. red for "short", green for "balanced" and blue for "over"

Thank You
 
Upvote 0
Not using the formula.

What you need is Conditional Formatting.

Select the cell with the formula in and Goto Format>Conditional Formatting...

Select Cell value is and enter "Short" and format as required.

Repeat for the other 2 values.
 
Upvote 0
obliter8 said:
Hi

i need a formula that will give me a text response to a value....

if the value is zero i would like it to return the text "BALANCED",
if the value is greater than zero i would like it to return the text "OVER",
if the value is less than zero i would like it to return the text "SHORT".

Can this be done?

Thanks

=IF(ISNUMBER(A1),LOOKUP(A1,{-9.99999999999999E+307,"SHORT";0,"BALANCED";2.229E-308,"OVER"}),"")
 
Upvote 0

Forum statistics

Threads
1,207,013
Messages
6,076,149
Members
446,187
Latest member
LMill

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top