+ Reply to Thread
Results 1 to 3 of 3

nested if

  1. #1
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    nested if

    Hi guys can anybody assist me with a formula please?

    The following logical test is giving me successful results, but I also want to add an "ISNA", i.e. so that I not only exclude values which equal 0, but also the #N/As.
    =IF(VLOOKUP(B2,Global,7,FALSE)=0,"",(VLOOKUP(B2,Global,7,FALSE)))
    Last edited by _Lewis; 06-28-2011 at 07:08 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: nested if

    It would be like this:

    =IF(ISNA(VLOOKUP(B2,Global,7,FALSE)),"",IF(VLOOKUP(B2,Global,7,FALSE)=0,"",(VLOOKUP(B2,Global,7,FALSE))))

    Although performing the vlookup 3 times to get your result is quite inefficient. I'd be tempted to do the Vlookup in a spare column and then do the tests on the result to return what you require.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: nested if

    fantastic thank you - will look into a helper column but this will do for now

+ 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