+ Reply to Thread
Results 1 to 7 of 7

Help with IFERROR

  1. #1
    Registered User
    Join Date
    08-22-2010
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    55

    Help with IFERROR

    How can I use IFERROR with the following formula?

    =((C2)+(D2*1)+(E2*2)+(F2*3)+(G2*4)+(H2*5)+(I2*6)+(J2*7)+(K2*8)+(L2*9))/N2
    Last edited by kenjcd; 04-21-2019 at 05:12 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,836

    Re: Help with IFERROR

    I think you mean this:

    =((C2)+(D2)+IFERROR((E2*2),0)+IFERROR((F2*3),0)+IFERROR((G2*4),0)+IFERROR((H2*5),0)+IFERROR((I2*6),0)+IFERROR((J2*7),0)+IFERROR((K2*8),0)+IFERROR((L2*9),0))/N2
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Help with IFERROR

    https://www.techonthenet.com/excel/formulas/iferror.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Help with IFERROR

    The only reason for an error in that formula is if N2 is zero.

    So you could just use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you do want IFERROR, then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Help with IFERROR

    me likes
    =iferror(sumproduct(c2:l2*(row(a1:a10)-1))/n2,0)

  6. #6
    Registered User
    Join Date
    08-22-2010
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Help with IFERROR

    Quote Originally Posted by TMS View Post
    The only reason for an error in that formula is if N2 is zero.

    So you could just use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you do want IFERROR, then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Solved the problem.
    Thank you all!
    Rep added!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Help with IFERROR

    You're welcome. Thanks for the rep.

    @Ali: your solution would fail if N2 = 0; the IFERROR woud need to be round the whole formula.

    @Pepe: your formula looks neat but it doesn't appear to work. Am I missing something?

    @kenjcd: you can lose all the "internal" brackets in both solutions. For example
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    although you might find it more readable if you retain the brackets ... though it is shorter

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] IFERROR & Max
    By Redlittle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2018, 08:35 AM
  2. [SOLVED] Multiple IFERROR or IFERROR w/ If Statements
    By SanchoPanza1 in forum Excel General
    Replies: 4
    Last Post: 03-31-2016, 08:09 PM
  3. IFERROR help please!
    By 4danny in forum Excel General
    Replies: 1
    Last Post: 01-25-2016, 06:20 AM
  4. [SOLVED] IFERROR(MATCH & IFERROR(SMALL Help Needed
    By chad328 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-17-2016, 06:34 AM
  5. IFERROR within IFERROR until no error. Help.
    By XNemo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-26-2014, 12:30 PM
  6. xlfn.IFERROR or IFERROR don't work in Excel 98-2003
    By dj_danu01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 02:53 AM
  7. [SOLVED] no IFERROR
    By DBenson1968 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 03:52 PM

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