Return Blank if cell is blank IF statement

mrsushi

Board Regular
Joined
Nov 18, 2006
Messages
180
Office Version
  1. 2010
HI

Scratching my head on this.

If Q5 has no value, then i would want the resulting cell to produce a blank.

How would the below be changed pls?
=IF(Q5<U5,"GREEN",IF(Q5<V5,"AMBER", "RED"))


Ive tried the below but doesn't give the result i need

=IF(Q5<U5,"GREEN",IF(Q5<V5,"AMBER",IF(Q5<V5, "RED", " "))

Regards
M
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Like this?

Excel Formula:
=IF(Q5="","",IF(Q5<U5,"GREEN",IF(Q5<V5,"AMBER", "RED")))
 
Upvote 0
Like this?

Excel Formula:
=IF(Q5="","",IF(Q5<U5,"GREEN",IF(Q5<V5,"AMBER", "RED")))
Hi tried it, but still not producing the blank. For you information, the column Q are times. Its referencing another table so if there is no time pickedup, it will return the value 00:00 in Q5. from here maybe the above formula needs a variation of timevalue?
 
Upvote 0
How about?

Return blank cell.xlsx
NOPQRS
3312
4AmberGreenRed
5810
6Output
7Red
Sheet1
Cell Formulas
RangeFormula
N7N7=IF(ISNUMBER(Q5),IF(ISNUMBER(R5),IF(ISNUMBER(S5),IF(Q5<S5,"Green",IF(Q5<V5,"Amber","Red"))),""),"")
 
Upvote 0
You're welcome. Thanks for the confirmation. :)
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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