Results 1 to 7 of 7
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Divide by zero error (XP)

    I thought this was my fix - it wasn't - WHY? I don't get #Div0! anymore, now I get the "name" error

    =IF(AVERAGE(C21:C32=0,""),AVERAGE(C21:C32))



    Thanks again

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Divide by zero error (XP)

    One of the closing parentheses is in the wrong place. It should be

    =IF(AVERAGE(C21:C32)=0,"",AVERAGE(C21:C32))

    although I don't know if that does what you want.

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Divide by zero error (XP)

    Nope - should have attached the example in the first place - sorry
    Attached Files Attached Files

  4. #4
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Divide by zero error (XP)

    You can use:
    =IF(ISERROR(AVERAGE(C3:C14)),"",AVERAGE(C3:C14))
    HTH
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Divide by zero error (XP)

    Try

    =IF(ISERROR(AVERAGE(C3:C14)),"",AVERAGE(C3:C14))

  6. #6
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Divide by zero error (XP)

    Perfect - I just changed the "" to 0 which is what I wanted in the first place - great thanks.

  7. #7
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Divide by zero error (XP)

    Hi Hans - see my reply to Rory - same for you - great thanks and appreciation, as always.

Posting Permissions

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