+ Reply to Thread
Results 1 to 9 of 9

Mixing an IFNA, a vlookup & an 'AND'?

  1. #1
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Mixing an IFNA, a vlookup & an 'AND'?

    Hi all,

    I've done a vlookup which has three outcomes - one is that there's nothing to find so it returns #N/A, the second is that it finds a value that's less than zero & the third finds a value greater than zero.

    I only want the positive figures to be returned from this formula, if its negative or not there i want it to say 0.00

    I can make individual formulas that will answer one of the two issues (i.e. IFNA(Vlookup......), or IF(VLOOKUP.....>0....), but how do i combine the both into one?

    I had a look at trying to add an 'AND' into the mix, but I've obviously not grasped the concept of this function.

    Any help greatly appreciated.

    Thanks,

    Weasel.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,495

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    Use MAX function to suppress negative values instead of an IF function

    =IFNA(MAX(0,VLOOKUP(.....)),0)

  3. #3
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    I've obviously entered this incorrectly, as it says i've entered too few arguments like this:

    =IFNA(MAX(0,VLOOKUP(A2,'[Book1]Vendors Debit Balances'!$A$2:$H$1159,8,0)))

    What've i done wrong?
    Last edited by Weaselwithagun; 11-25-2019 at 09:43 AM.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,633

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    Still using XL2010 ? Then IFNA will not work ( did not exist yet)
    Try IF(ISNA....
    or IFERROR(...
    ( the last might hide any error which may not be what you need)

  5. #5
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,495

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    it needs a value for the IFNA to use when the MAX/VLOOKUP combo results in the #N/A error

    you were very close

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

  6. #6
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    Ah of course - thanks again this is perfect

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,633

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    Then perhaps update your profile XL version?

  8. #8
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    apologies, id forgotten that was there - updated now

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,633

    Re: Mixing an IFNA, a vlookup & an 'AND'?

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. ISBLANK with VLOOKUP where lookup value has IFNA function
    By MarcieH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2019, 12:54 AM
  2. [SOLVED] Using IFNA in an IF Formula
    By Rocksteady in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2017, 12:04 PM
  3. Mixing an IF with a vlookup twice?
    By Weaselwithagun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2017, 05:49 AM
  4. How to mix an IFNA with a IFVLOOKUP
    By Weaselwithagun in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-14-2016, 07:38 AM
  5. [SOLVED] Trouble Mixing IF & Vlookup to help manage inventory
    By BearsBikes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-03-2013, 06:47 PM
  6. Excel 2007 : Mixing IF & VLOOKUP Statements?
    By steveyh in forum Excel General
    Replies: 3
    Last Post: 10-06-2011, 11:10 AM
  7. Mixing VLOOKUP and LEFT functions
    By Kianuz in forum Excel General
    Replies: 2
    Last Post: 08-04-2009, 12:06 PM

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