+ Reply to Thread
Results 1 to 2 of 2

Trying to wrap a nested if(vlookup) statement in an IFerror

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Trying to wrap a nested if(vlookup) statement in an IFerror

    Hi everyone,

    Here's my formula:

    =IF(VLOOKUP(A8,'CORE Data 3 Month #1'!A:K,6,FALSE)<(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)-(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)*0.03)),'CORE Data 3 Month #2'!$A$1,IF(VLOOKUP(A8,'CORE Data 3 Month #1'!A:K,6,FALSE)>(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)+(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)*0.03)),'CORE Data 3 Month #2'!$C$1,'CORE Data 3 Month #2'!$B$1))

    What I'm trying to do is wrap this entire formula into an IFERROR or something similar so that if the total result is an error like #N/A, then the cell should result in "Not Available". I've tried:

    =IF(iferror(VLOOKUP(A8,'CORE Data 3 Month #1'!A:K,6,FALSE)<(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)-(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)*0.03)),'CORE Data 3 Month #2'!$A$1,IF(VLOOKUP(A8,'CORE Data 3 Month #1'!A:K,6,FALSE)>(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)+(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)*0.03)),'CORE Data 3 Month #2'!$C$1,'CORE Data 3 Month #2'!$B$1)),"Not Available")

    But there's some error in it that's prevent the formula from being accepted.

    Any ideas?

    Thanks!
    Last edited by Groovicles; 02-20-2014 at 11:34 AM. Reason: Figured it out. Thanks

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Trying to wrap a nested if(vlookup) statement in an IFerror

    you need to put around the IF statement
    so

    =IFERROR(IF(VLOOKUP(A8,'CORE Data 3 Month #1'!A:K,6,FALSE)<(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)-(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)*0.03)),'CORE Data 3 Month #2'!$A$1,IF(VLOOKUP(A8,'CORE Data 3 Month #1'!A:K,6,FALSE)>(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)+(VLOOKUP(A8,'CORE Data 3 Month #2'!A:K,6,FALSE)*0.03)),'CORE Data 3 Month #2'!$C$1,'CORE Data 3 Month #2'!$B$1)),"Not Available")
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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] Nested vlookup in an IF statement
    By adray13 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-26-2013, 09:41 AM
  2. IF statement with vlookup nested
    By libertine86 in forum Excel General
    Replies: 5
    Last Post: 08-16-2012, 02:49 PM
  3. Replies: 2
    Last Post: 06-12-2012, 04:50 PM
  4. If statement with nested Vlookup and Sum
    By luiscorrea in forum Excel General
    Replies: 3
    Last Post: 08-10-2007, 02:00 PM
  5. Nested IF statement with VLOOKUP
    By James Hamilton in forum Excel General
    Replies: 1
    Last Post: 08-16-2006, 02:50 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