+ Reply to Thread
Results 1 to 6 of 6

Help adding Iferror to existing formula

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Help adding Iferror to existing formula

    I have the following formula:

    =IF(X31<=7,"0-7 Days",IF(X31<=15,"08-15 Days",IF(X31<=30,"16-30 Days",IF(X31<=30,"30+ Days","30+ Days"))))

    I am receiving some #N/A results. If I want the #N/A results to read "Inactive Account" how do I add the iferror to the formula?

    Thank you.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help adding Iferror to existing formula

    Try

    =IFERROR(IF(X31<=7,"0-7 Days",IF(X31<=15,"08-15 Days",IF(X31<=30,"16-30 Days",IF(X31<=30,"30+ Days","30+ Days")))),"Inactive Account")

  3. #3
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Help adding Iferror to existing formula

    That worked man Thanks a bunch!!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help adding Iferror to existing formula

    You're welcome

  5. #5
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Help adding Iferror to existing formula

    Quote Originally Posted by rwmeis View Post
    I have the following formula:

    =IF(X31<=7,"0-7 Days",IF(X31<=15,"08-15 Days",IF(X31<=30,"16-30 Days",IF(X31<=30,"30+ Days","30+ Days"))))

    I am receiving some #N/A results. If I want the #N/A results to read "Inactive Account" how do I add the iferror to the formula?
    I cannot figure out why you receiving some #N/A result with that formula. If X31 is blank or contains text the result will be 30+ Days, otherwise the formula will give a correct result.

    Maybee you can post a sample of workbook so we can find out the reason of your #N/A's

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help adding Iferror to existing formula

    Quote Originally Posted by Rambo4711 View Post
    I cannot figure out why you receiving some #N/A result with that formula.
    I thought about that too, and concluded that the error must be coming from X31 itself.
    Maybe it contains a Vlookup.

    In which case, it would be more accurate to do
    =IF(ISNA(X31),"Inactive Account",restofformula)

    But I just found it simpler to use the IFERROR on the whole formula.

+ 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. Adding an IF condition into an existing formula.
    By dmejia174 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2013, 07:33 PM
  2. Adding to 2 existing formula
    By cmackay1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2012, 05:14 PM
  3. [SOLVED] adding formula to existing database
    By Barb Reinhardt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 08:05 PM
  4. adding formula to existing database
    By Barb Reinhardt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 11:05 AM

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