Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
"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 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
"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 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
"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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
any formula to convert numbers in word form, e.g. "2" as "Two"? | Excel Worksheet Functions | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |