Positive and Negative Symbol Display and "Pass"/"Fail" display with colors

CSRUSS

New Member
Joined
Sep 2, 2018
Messages
5
I have two separate questions:

1. I am trying to have the following formula display a “positive” (+0.00151) or “negative.”(-0.00151) symbol in the cell: =(F9-H9)*0.00001

2. I am trying to display the words “PASS” or “FAIL” (in cell N9) based on the following formula: IF L9 is GREATER than K9, then display “PASS”. IF L9 is LESS than K9, then display “FAIL”. (NOTE: If the word FAIL displays, then the font should be RED)

Greatly appreciate any guidance on the problems!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
1. I am trying to have the following formula display a “positive” (+0.00151) or “negative.”(-0.00151) symbol in the cell: =(F9-H9)*0.00001
Use custom number formatting (Select the cell and press Ctrl+1) goto number tab > Custom Category> Type:
Code:
+ 0.00000;- 0.00000;0;@
if you don't need a fixed number of digits use # instead of 0

1712921320424.png

2. I am trying to display the words “PASS” or “FAIL” (in cell N9) based on the following formula: IF L9 is GREATER than K9, then display “PASS”. IF L9 is LESS than K9, then display “FAIL”. (NOTE: If the word FAIL displays, then the font should be RED)
The straight-forward way is to write a formula to display the texts, then use Conditional formatting to colorize it:
Excel Formula:
=IF(L9>K9,"PASS",IF(L9<K9,"FAIL","-"))
Create a new rule and press Format ... and choose whatever you like:
1712921699328.png
1712921736584.png

1712921832644.png
 

Attachments

  • 1712921264921.png
    1712921264921.png
    3.9 KB · Views: 5
Last edited:
Upvote 1
Solution
1. I am trying to have the following formula display a “positive” (+0.00151) or “negative.”(-0.00151) symbol in the cell: =(F9-H9)*0.00001
Use the following Custom format:
Excel Formula:
(+General);(-General)

2. I am trying to display the words “PASS” or “FAIL” (in cell N9) based on the following formula: IF L9 is GREATER than K9, then display “PASS”. IF L9 is LESS than K9, then display “FAIL”. (NOTE: If the word FAIL displays, then the font should be RED)
Use the following formula:
Excel Formula:
=IF(L9>K9,"PASS",IF(L9<K9,"FAIL","EQUAL"))
(note that you did not mention what you want returned if they were equal)

To make word "FAIL" red, simply apply Conditional Formatting on cell N9 with the formula:
Excel Formula:
=N9="FAIL"
and choose the red formatting color.
 
Upvote 0
Use the following Custom format:
Excel Formula:
(+General);(-General)


Use the following formula:
Excel Formula:
=IF(L9>K9,"PASS",IF(L9<K9,"FAIL","EQUAL"))
(note that you did not mention what you want returned if they were equal)

To make word "FAIL" red, simply apply Conditional Formatting on cell N9 with the formula:
Excel Formula:
=N9="FAIL"
and choose the red formatting color.
Thank you so much! This was the perfect solution!!! Thanks for being so responsive!
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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