[mso] Formula to not give "#DIV/0!" results

  • From: "John Perrin" <jperrin@xxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Tue, 05 May 2009 12:47:40 -0400

Good afternoon Genius Excel Group (GEG),

Sorry for this simple question but again I'm seem to be stuck on something that 
shouldn't be all that difficult.

Problem: 

Part 1: 
There are 4 columns of data that are entered manually for % residual recipient 
alleles for Bone Marrow Transplant patients.  That formula is simple enough 
"=(B14+C14)/(B14+C14+E14+F14)" this gives me a decimal fraction between 0 and 
1.  However, there are 16 alleles tested for from the patient's bone marrow to 
see what alleles from the recipient are still in the marrow and not all alleles 
are found.  How can a formula be written to NOT give the #DIV/0 results if 
there when none of those alleles are found?  It must have something to do with 
an IF statement but I have tried several permutations with no success.

Part 2:
 I need the above result to populate another cell on the work sheet that gives 
me an average of individual marker % residual recipient.  The average part is 
easy and the formula works fine if I type in the numbers.  I tried to write an 
IF formula to complete this:
=IF(H14>0,H14,"")
but I'm not sure if this is how to write it.  What I would like the cell to 
"do" is look at the result from the above problem and IF the result is >0, then 
put the result from that cell in and if the cell has anything else in it just 
leave it blank.  If I leave it blank I won't have to change the formula for the 
average already written.  If there is a 0 in there it will throw off the 
average.

Sorry if this is confusing.

Any help would be greatly appreciated.

John Perrin

**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: