ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Help with If statement (https://www.excelbanter.com/new-users-excel/264027-help-if-statement.html)

gls858

Help with If statement
 
I have this If statement in H12 and it works except when E12 is blank I
want H12 to be blank.

=IF(E12=0%,"Closed",IF(E12=100%,"closed","open"))

I'm not sure how to make that happen. Could someone please help me.

TIA
gls858

Don Guillett[_2_]

Help with If statement
 
=IF(LEN(TRIM(E12))=0,"",IF(OR(E12=0%,E12=100%),"cl osed","open"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"gls858" wrote in message
...
I have this If statement in H12 and it works except when E12 is blank I
want H12 to be blank.

=IF(E12=0%,"Closed",IF(E12=100%,"closed","open"))

I'm not sure how to make that happen. Could someone please help me.

TIA
gls858



gls858

Help with If statement
 
On 5/18/2010 11:09, Don Guillett wrote:
=IF(LEN(TRIM(E12))=0,"",IF(OR(E12=0%,E12=100%),"cl osed","open"))


THanks Don. Worked perfectly.

Wilbur Chua

Ifs!
 
Hello, For multiple conditioned IF function, it would be best to use the IFS Function in excel.

IFS function work the same as the IF function, but:

=ifs(Logical test 1, value if true1, logical test 2, value if true 2...)

this can hold more conditions that your usual if function. it also makes things easier to type and look at. Hope this helps!


All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com