+ Reply to Thread
Results 1 to 10 of 10

Nested IF and IFERROR

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    31

    Nested IF and IFERROR

    I am trying to write a formula that will check to see if there is an error in a specific cell and them return a value based on that. This is what I have so far.

    =IF(IFERROR(C3, TRUE),IF(IFERROR(E3,TRUE),A3,""),"")

    But all I am getting is A3 on the first 20 items on my list. Only about 6 of those should display data from A3.

    Need some help figuring out what went wrong.

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

    Re: Nested IF and IFERROR

    If I understand right..
    If C3 is NOT an error, then return the value of C3
    If C3 IS An error, then move to A3
    If A3 is NOT an error, then return the value of A3
    If A3 IS an error, then return ""

    Try

    =IFERROR(C3,IFERROR(A3,""))

  3. #3
    Registered User
    Join Date
    01-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Nested IF and IFERROR

    close.

    IF C3 is an error, check if E3 is an error. If E3 is also an error then enter A3 into the cell.
    IF C3 is an error, check if E3 is an error. IF E3 is not an error then enter blank into the cell.
    IF C3 is not an error, enter blank into the cell.

    Thats the way it should work.

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

    Re: Nested IF and IFERROR

    So only if BOTH C3 and E3 are errors, then return A3
    otherwise return ""

    Is it REALLY only these 2 cells?
    Or are you planning expanding to G3 I3 K3 etc. ?

  5. #5
    Registered User
    Join Date
    01-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Nested IF and IFERROR

    Nope. Just those two. It will go down several rows but no more columns.

  6. #6
    Registered User
    Join Date
    01-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Nested IF and IFERROR

    And yes only if both are errors.

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

    Re: Nested IF and IFERROR

    And what type of data is in the cells when they are NOT errors? Number or Text ?

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

    Re: Nested IF and IFERROR

    Try

    =IF(ISERROR(C3),IF(ISERROR(E3),A3,""),"")

  9. #9
    Registered User
    Join Date
    01-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Nested IF and IFERROR

    A eight digit number.

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Nested IF and IFERROR

    Or
    =if(iserror(c3)*iserror(e3), a3, "")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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