+ Reply to Thread
Results 1 to 9 of 9

combine IF and IFERROR

  1. #1
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    combine IF and IFERROR

    Can I condense the below formula?

    Please Login or Register  to view this content.
    In other words, it should say 'bad' either if the VLOOKUP returns 0, or if C3 is blank making VLOOKUP return N/A error.

  2. #2
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: combine IF and IFERROR

    Hi,

    May be this one will work.,

    Please Login or Register  to view this content.
    RoyalRajan

  3. #3
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: combine IF and IFERROR

    Not much different :-(

    Is there a way I say 'bad' only once?

  4. #4
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: combine IF and IFERROR

    Hi,

    I can't get actually what you want will you able to share some sample excel files for reference..

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: combine IF and IFERROR

    Sample attached.

    The formula is in Column B:

    Please Login or Register  to view this content.
    In other words, it should say 'bad' if either the VLOOKUP returns 0 or Column a is blank.

    I would like to learn how, but mentioning 'bad' only once. It's a skill I'll use to make a lot more things concise.
    Attached Files Attached Files
    Last edited by johnandrews; 12-15-2014 at 09:10 AM.

  6. #6
    Forum Contributor
    Join Date
    10-04-2014
    Location
    Europe
    MS-Off Ver
    2007
    Posts
    107

    Re: combine IF and IFERROR

    Hi
    Although this still has "Bad" twice, I am posting this so you can check the following formula to ensure it returns what you want;

    It returns "Bad" when the VLOOKUP returns 0, or when C3 is blank and returns "Good" when C3 has a value and the VLOOKUP returns a value which is greater than 0.

    =IFERROR(IF(VLOOKUP(C3,Sheet1!G1:H26,2,FALSE)>0,"Good","Bad"),"Bad")

    Hope this helps

  7. #7
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: combine IF and IFERROR

    Do a find and replace on column E, replace 0 with Bad and 1 with Good then just use

    =IFERROR(VLOOKUP(A1,D:E,2,0),"Bad")
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,423

    Re: combine IF and IFERROR

    Not much of a change from yours:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A change.....but.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 12-15-2014 at 02:21 PM.

  9. #9
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: combine IF and IFERROR

    Speshul that's a great idea. Thank you..

+ 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. IFERROR within IFERROR until no error. Help.
    By XNemo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-26-2014, 12:30 PM
  2. 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
  3. Replies: 10
    Last Post: 11-06-2012, 08:31 AM
  4. [SOLVED] Writing code for a function to combine iferror and vlookup
    By tommyko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2012, 05:39 PM
  5. combine IFAND with IFERROR?
    By simplify in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-08-2009, 02:31 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