#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default "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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default "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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default "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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
any formula to convert numbers in word form, e.g. "2" as "Two"? Neeraj Excel Worksheet Functions 1 May 26th 08 01:03 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 09:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"