+ Reply to Thread
Results 1 to 7 of 7

divide by zero errors

Hybrid View

  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    Unhappy divide by zero errors

    ok, I have the following formulas which are giving me a divide by zero error;

    (All 5 formulas are Arrays confirmed with { })

    =AVERAGE(IF((Properties!D3:D1002="CPHA")*((Properties!Q3:Q1002="Y")+(Properties!Q3:Q1002="A")),Properties!BY3:BY1002))
    =SUMPRODUCT(((Properties!$Q$3:$Q$1002="Y")+(Properties!$Q$3:$Q$1002="A"))*(Properties!$BW$3:$BW$1002<>"")*(MONTH(Properties!$DC$3:$DC$1002)=MONTH(Months!$A3))*(Properties!$DC$3:$DC$1002<>"")*(Properties!$D$3:$D$1002="CPHA"))*AVERAGE(IF((Properties!$D$3:$D$1002="CPHA")*((Properties!$Q$3:$Q$1002="Y")+(Properties!$Q$3:$Q$1002="A")),Properties!$BY$3:$BY$1002))
    =SUMPRODUCT(((Properties!$U$3:$U$1002="Y")+(Properties!$U$3:$U$1002="A"))*(Properties!$BW$3:$BW$1002<>"")*(MONTH(Properties!$DC$3:$DC$1002)=MONTH(Months!$A3))*(Properties!$DC$3:$DC$1002<>""))*AVERAGE(IF((Properties!$U$3:$U$1002="Y")+(Properties!$U$3:$U$1002="A"),IF(Properties!$BY$3:$BY$1002<>"", Properties!$BY$3:$BY$1002)))
    =SUMPRODUCT(((Properties!$W$3:$W$1002="Y")+(Properties!$W$3:$W$1002="A"))*(Properties!$BW$3:$BW$1002<>"")*(MONTH(Properties!$DC$3:$DC$1002)=MONTH(Months!$A3))*(Properties!$DC$3:$DC$1002<>""))*AVERAGE(IF((Properties!$W$3:$W$1002="Y")+(Properties!$W$3:$W$1002="A"),IF(Properties!$BY$3:$BY$1002<>"", Properties!$BY$3:$BY$1002)))
    =SUMPRODUCT(((Properties!$Q$3:$Q$1002="Y")+(Properties!$Q$3:$Q$1002="A"))*(Properties!$BW$3:$BW$1002<>"")*(MONTH(Properties!$DC$3:$DC$1002)=MONTH(Months!$A3))*(Properties!$DC$3:$DC$1002<>""))*AVERAGE(IF((Properties!$Q$3:$Q$1002="Y")+(Properties!$Q$3:$Q$1002="A"),IF(Properties!$BY$3:$BY$1002<>"", Properties!$BY$3:$BY$1002)))
    Any help would be much appreciated.
    Last edited by AllenMead; 09-23-2010 at 06:03 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: divide by zero errors

    Can you upload example workbook?

    avoid important data, but leave the form.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: divide by zero errors

    Ok, uploaded the sheet.

    The divided by zero errors are in the sheets that have a green tab at the bottom.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: I have a few more divide by zero errors

    I edited this title earlier for you to remove unnecessary wording. Re-edit before i close it
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: divide by zero errors

    Apologies, my bad.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: divide by zero errors

    Thanks for taking the time to read and comply with the rule .

  7. #7
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: divide by zero errors

    Solved, removed the averageif statement as I had this answered in another way

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1