+ Reply to Thread
Results 1 to 8 of 8

Basic Excel If Logic Question

Hybrid View

ffmariners Basic Excel If Logic Question 04-24-2010, 04:27 PM
helpplease! Re: Basic Excel If Logic... 04-24-2010, 06:47 PM
ffmariners Re: Basic Excel If Logic... 04-24-2010, 07:09 PM
daddylonglegs Re: Basic Excel If Logic... 04-24-2010, 07:31 PM
ffmariners Re: Basic Excel If Logic... 04-24-2010, 08:27 PM
helpplease! Re: Basic Excel If Logic... 04-24-2010, 07:27 PM
ffmariners Re: Basic Excel If Logic... 04-24-2010, 07:48 PM
helpplease! Re: Basic Excel If Logic... 04-24-2010, 08:07 PM
  1. #1
    Registered User
    Join Date
    11-05-2007
    Posts
    30

    Re: Basic Excel If Logic Question

    it is the vlookup that is returning #N/A

    1. find out which vlookup is causing the #N/A
    2. then manually check if the lookup_value is in the range, if not it will return #N/A
    3. use wild cards if needed in the lookup_value i.e vlookup("*" & [cel] & "*",....,....,....)

  2. #2
    Registered User
    Join Date
    09-06-2008
    Location
    Philly
    Posts
    40

    Re: Basic Excel If Logic Question

    Yeah, I know it is the VLOOKUP.

    The formula returns the expected values as long as the very last VLOOKUP is not there. However, once it is added, it causes an issue.

    If I do that VLOOKUP on it's own, it works. It has something to do with how I am viewing the IF logic I believe.

    I tried to create another IF and just make it IF(ISBLANK(B11),VLOOKUP.... and IF(B11="",VLOOKUP...

    Neither of those worked either... not sure why.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721

    Re: Basic Excel If Logic Question

    Yes, I think you need to check B11 first, does this work?

    =IF($B$11="",VLOOKUP(B9,Standards,2,FALSE),VLOOKUP($B$11,INDIRECT("_"&B9&"Standards"),2,FALSE))

  4. #4
    Registered User
    Join Date
    09-06-2008
    Location
    Philly
    Posts
    40

    Re: Basic Excel If Logic Question

    Quote Originally Posted by daddylonglegs View Post
    Yes, I think you need to check B11 first, does this work?

    =IF($B$11="",VLOOKUP(B9,Standards,2,FALSE),VLOOKUP($B$11,INDIRECT("_"&B9&"Standards"),2,FALSE))
    Wow, that is much easier than 6 nested if statements... thanks so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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