+ Reply to Thread
Results 1 to 7 of 7

Help on formula:What can I add to it

  1. #1
    Registered User
    Join Date
    02-28-2006
    Posts
    24

    Help on formula:What can I add to it

    Hello Everyone,

    I need help... Below is my obnoxious formula.

    What can I add to it so when I get #DIV/0 It returns a 0 instead.
    =SUM(B3*F3,H3*L3,N3*R3,T3*X3,Z3*AD3,AF3*AJ3,AL3*AP3,AR3*AV3,AX3*BB3,BD3*BH3,BJ3*BN3,BP3*BT3,BV3*BZ3,CB3*CF3,CH3*CL3,CN3*CR3,CT3*CX3,CZ3*DD3,DF3*DJ3,DL3*DP3,DR3*DV3,DX3*EB3,ED3*EH3)/EN3

    Any help would be great.

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Presume the problem is EN3 being zero so....

    Try wrapping it in an IF statement so that if(EN3=0,0,Your formula)

    Ed

  3. #3
    Bondi
    Guest

    re: Help on formula:What can I add to it

    Hi

    You van use

    IF(ISERROR(YourFormula),0,YourFormula)

    Regards,
    Bondi


  4. #4
    Registered User
    Join Date
    02-28-2006
    Posts
    24
    It's partially working.

    If the EN5 has a number the formula is coming back with a #VALUE error.

    Am I doing it wrong?

    =IF(EN3=0,0
    (B3*F3,H3*L3,N3*R3,T3*X3,Z3*AD3,AF3*AJ3,AL3*AP3,AR3*AV3,AX3*BB3,BD3*BH3,BJ3*BN3,BP3*BT3,BV3*BZ3,CB3*CF3,CH3*CL3,CN3*CR3,CT3*CX3,CZ3*DD3,DF3*DJ3,DL3*DP3,DR3*DV3,DX3*EB3,ED3*EH3)/EN3)

  5. #5
    Registered User
    Join Date
    02-28-2006
    Posts
    24
    I tryed the ISERROR function also... However I'm haveing the same problem.

    =IF(ISERROR((B4*F4,H4*L4,N4*R4,T4*X4,Z4*AD4,AF4*AJ4,AL4*AP4,AR4*AV4,AX4*BB4,BD4*BH4,BJ4*BN4,BP4*BT4,BV4*BZ4,CB4*CF4,CH4*CL4,CN4*CR4,CT4*CX4,CZ4*DD4,DF4*DJ4,DL4*DP4,DR4*DV4,DX4*EB4,ED4*EH4)/EN4),0,((B4*F4,H4*L4,N4*R4,T4*X4,Z4*AD4,AF4*AJ4,AL4*AP4,AR4*AV4,AX4*BB4,BD4*BH4,BJ4*BN4,BP4*BT4,BV4*BZ4,CB4*CF4,CH4*CL4,CN4*CR4,CT4*CX4,CZ4*DD4,DF4*DJ4,DL4*DP4,DR4*DV4,DX4*EB4,ED4*EH4)/EN4))

  6. #6
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Kelljeff,

    Looking at your posting where you say that if EN5 has a number it does not work, I can't see a reference to EN5 so I guess this has to be a input for a later calculation. Check that this cell is not formatted as text as that could give the problem.

    Ed

  7. #7
    Pete_UK
    Guest

    re: Help on formula:What can I add to it

    You missed a comma and the SUM from this formula:

    =3DIF(EN3=3D0,0,sum(B3*F3,H3*L3,N3*R3,T3*X3,Z3*AD3,AF3*AJ3,AL3*AP3,AR3*AV3,=
    AX3*BB3,BD3*BH3,BJ3=AD*BN3,BP3*BT3,BV3*BZ3,CB3*CF3,CH3*CL3,CN3*CR3,CT3*CX3,=
    CZ3*DD3,DF3*DJ3,DL3*DP=AD3,DR3*DV3,DX3*EB3,ED3*EH3)/EN3)

    You were getting #DIV/0 errors because you were trying to divide by 0 !
    As you are only dividing by EN3, then the formula should correct this,
    unless one of the other values you are trying to sum also have errors
    in them.

    Hope this helps.

    Pete


+ 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