+ Reply to Thread
Results 1 to 4 of 4

Ignoring errors

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Ignoring errors

    Evening guys,

    Any help on the issue would be appreciated.

    I am using the formula:
    =IF((AL6>AK6),"Y",IF(((VLOOKUP(AD6,LOOKUP!$A$3:$B$25,2,0))>(VLOOKUP(AB6,LOOKUP!$A$3:$B$25,2,0))),"Y","N"))

    ...and the formula:
    =IF((AL6>AK6),"Y","N")

    The formula works unless any of the cells are blank and then they give an error message. If anyone can suggest how I can alter each of the formulas so when the other cells are blank it just gives a blank cell rather than a formula it would be appreciated.

    Many thanks for any help you can give.

    Regards
    Last edited by Cmorgan; 05-16-2013 at 02:19 AM.

  2. #2
    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,425

    Re: Ignoring errors

    Look at IFERROR.

    =IFERROR(IF((AL6>AK6),"Y",IF(((VLOOKUP(AD6,LOOKUP!$A$3:$B$25,2,0))>(VLOOKUP(AB6,LOOKUP!$A$3:$B$25,2,0))),"Y","N")),"")

    =IFERROR(IF((AL6>AK6),"Y","N"),"")


    Regards, TMS
    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


  3. #3
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Ignoring errors

    Many thanks for this.

  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,425

    Re: Ignoring errors

    You're welcome. Thanks for the rep.

+ 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