+ Reply to Thread
Results 1 to 5 of 5

Using ISNA with OR

  1. #1
    Forum Contributor
    Join Date
    05-01-2006
    Location
    Erie, Pa USA
    MS-Off Ver
    Vista - Excel 2003
    Posts
    132

    Using ISNA with OR

    I need to make a formula that looks like the following:

    =IF(ISNA(VLOOKUP...)
    OR(VLOOKUP...=0)"",
    VLOOKUP...


    In human terms, if the Vlookup returns N/A or 0, show nothing (""), otherwise show me the vlookup.

    Any way to combine the ISNA with an OR statement?

  2. #2
    Peo Sjoblom
    Guest

    Re: Using ISNA with OR

    =IF(ISNA(VLOOKUP()),"",IF(VLOOKUP()=0,"",VLOOKUP()))


    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com



    "HBF" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I need to make a formula that looks like the following:
    >
    > =IF(ISNA(VLOOKUP...)
    > OR(VLOOKUP...=0)"",
    > VLOOKUP...
    >
    >
    > In human terms, if the Vlookup returns N/A or 0, show nothing (""),
    > otherwise show me the vlookup.
    >
    > Any way to combine the ISNA with an OR statement?
    >
    >
    > --
    > HBF
    > ------------------------------------------------------------------------
    > HBF's Profile:
    > http://www.excelforum.com/member.php...o&userid=34019
    > View this thread: http://www.excelforum.com/showthread...hreadid=537813
    >




  3. #3
    Elkar
    Guest

    RE: Using ISNA with OR

    =IF(OR(ISNA(VLOOKUP(...)),VLOOKUP(...)=0),"",VLOOKUP(...))

    HTH,
    Elkar


    "HBF" wrote:

    >
    > I need to make a formula that looks like the following:
    >
    > =IF(ISNA(VLOOKUP...)
    > OR(VLOOKUP...=0)"",
    > VLOOKUP...
    >
    >
    > In human terms, if the Vlookup returns N/A or 0, show nothing (""),
    > otherwise show me the vlookup.
    >
    > Any way to combine the ISNA with an OR statement?
    >
    >
    > --
    > HBF
    > ------------------------------------------------------------------------
    > HBF's Profile: http://www.excelforum.com/member.php...o&userid=34019
    > View this thread: http://www.excelforum.com/showthread...hreadid=537813
    >
    >


  4. #4
    Peo Sjoblom
    Guest

    Re: Using ISNA with OR

    I don't think that will work since it is an error, using the OR function
    will return an error if no value is found


    Peo


    "Elkar" <[email protected]> wrote in message
    news:[email protected]...
    > =IF(OR(ISNA(VLOOKUP(...)),VLOOKUP(...)=0),"",VLOOKUP(...))
    >
    > HTH,
    > Elkar
    >
    >
    > "HBF" wrote:
    >
    >>
    >> I need to make a formula that looks like the following:
    >>
    >> =IF(ISNA(VLOOKUP...)
    >> OR(VLOOKUP...=0)"",
    >> VLOOKUP...
    >>
    >>
    >> In human terms, if the Vlookup returns N/A or 0, show nothing (""),
    >> otherwise show me the vlookup.
    >>
    >> Any way to combine the ISNA with an OR statement?
    >>
    >>
    >> --
    >> HBF
    >> ------------------------------------------------------------------------
    >> HBF's Profile:
    >> http://www.excelforum.com/member.php...o&userid=34019
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=537813
    >>
    >>




  5. #5
    Elkar
    Guest

    Re: Using ISNA with OR

    Ah yes, you're right. I see how to fix it, but your solution would be far
    more efficient. Thanks for the catch.

    "Peo Sjoblom" wrote:

    > I don't think that will work since it is an error, using the OR function
    > will return an error if no value is found
    >
    >
    > Peo
    >
    >
    > "Elkar" <[email protected]> wrote in message
    > news:[email protected]...
    > > =IF(OR(ISNA(VLOOKUP(...)),VLOOKUP(...)=0),"",VLOOKUP(...))
    > >
    > > HTH,
    > > Elkar
    > >
    > >
    > > "HBF" wrote:
    > >
    > >>
    > >> I need to make a formula that looks like the following:
    > >>
    > >> =IF(ISNA(VLOOKUP...)
    > >> OR(VLOOKUP...=0)"",
    > >> VLOOKUP...
    > >>
    > >>
    > >> In human terms, if the Vlookup returns N/A or 0, show nothing (""),
    > >> otherwise show me the vlookup.
    > >>
    > >> Any way to combine the ISNA with an OR statement?
    > >>
    > >>
    > >> --
    > >> HBF
    > >> ------------------------------------------------------------------------
    > >> HBF's Profile:
    > >> http://www.excelforum.com/member.php...o&userid=34019
    > >> View this thread:
    > >> http://www.excelforum.com/showthread...hreadid=537813
    > >>
    > >>

    >
    >
    >


+ 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