"or" formula
Hi all,
I have a formula I am using now to calculate efficiency(%) as follows: =IF(E4="","",(E4*F4)/C4) E4 picks up its value from another sheet in the workbook. I am (usually) given the amount of time we have to accomplish a task. So, if I have a value in E4, then H4, (where this formula resides,) will calculate and load an efficiency %. It works great as long as I have a value or a value 0. What I need to happen is, if there is a zero or null value in E4 producing a 0% in H4, then I need H4 to default to 100%. Any ideas on how I can do that. I've tried several things, but when my formula doesn't just point and laugh, it tells me that I have a data type mismatch!! TIA, Bryan |
"or" formula
=IF(E4="","",if((E4*F4)/C4=0,1,(E4*F4)/C4))
should get it. "Bryan" wrote: Hi all, I have a formula I am using now to calculate efficiency(%) as follows: =IF(E4="","",(E4*F4)/C4) E4 picks up its value from another sheet in the workbook. I am (usually) given the amount of time we have to accomplish a task. So, if I have a value in E4, then H4, (where this formula resides,) will calculate and load an efficiency %. It works great as long as I have a value or a value 0. What I need to happen is, if there is a zero or null value in E4 producing a 0% in H4, then I need H4 to default to 100%. Any ideas on how I can do that. I've tried several things, but when my formula doesn't just point and laugh, it tells me that I have a data type mismatch!! TIA, Bryan |
"or" formula
On Thu, 2 Oct 2008 11:31:02 -0700, Bryan
wrote: Hi all, I have a formula I am using now to calculate efficiency(%) as follows: =IF(E4="","",(E4*F4)/C4) E4 picks up its value from another sheet in the workbook. I am (usually) given the amount of time we have to accomplish a task. So, if I have a value in E4, then H4, (where this formula resides,) will calculate and load an efficiency %. It works great as long as I have a value or a value 0. What I need to happen is, if there is a zero or null value in E4 producing a 0% in H4, then I need H4 to default to 100%. Any ideas on how I can do that. I've tried several things, but when my formula doesn't just point and laugh, it tells me that I have a data type mismatch!! TIA, Bryan Try this formula: =IF(OR(E4="",E4=0),1,(E4*F4)/C4) Hope this helps / Lars-Åke |
All times are GMT +1. The time now is 06:59 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com