+ Reply to Thread
Results 1 to 8 of 8

VBA If not intersect with vlookup.

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    73

    VBA If not intersect with vlookup.

    Hi,

    I have a little problem here.

    This vlookup code works fine.
    Please Login or Register  to view this content.

    But whenever match can't be found then this line calls

    Please Login or Register  to view this content.
    But the problem is that wherever i'm clicking not inside range N2:N50 or M2:M50 then this IsError function works also.

    Is there a way to stop it doing IsError function if i click outside ranges?

    Tried to use else option but it doesn't work.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: VBA If not intersect with vlookup.

    Is this not the same as your previous thread?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    73

    Re: VBA If not intersect with vlookup.

    Previous thread was about different solution.
    That i figured out.

    Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: VBA If not intersect with vlookup.

    But you've asked another question in your previous thread, despite marking the thread as solved - so is that something different again? I want to avoid confusion and duplication of effort here.

  5. #5
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    73

    Re: VBA If not intersect with vlookup.

    Quote Originally Posted by AliGW View Post
    But you've asked another question in your previous thread, despite marking the thread as solved - so is that something different again? I want to avoid confusion and duplication of effort here.
    I've marked it as solved just didn't posted anything with result as was double posting already.
    In there i had different problem that i couldn't make a cell without info and "empty cell"

    In this thread i have a problem with

    Please Login or Register  to view this content.
    IsError working when match not found. But i would like to trigger this only when i select any cell in my range. It works even if i click outside of range so it makes me a headache.
    Thanks

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: VBA If not intersect with vlookup.

    Oh, dear! That doesn't answer the question.

    Are you still looking for help in your previous thread, or can the final post there be removed?

    as was double posting already
    What do you mean?

  7. #7
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    73

    Re: VBA If not intersect with vlookup.

    Oh dear never mind.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: VBA If not intersect with vlookup.

    OK - well, that's not cleared anything up, and as you aren't concerned, I've deleted the confusing final post from the previous thread.

+ 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] If Not Intersect(Target, Range("AD:AD")) Is Nothing Then,,,,VLOOKUP??
    By wideboy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-20-2016, 07:48 AM
  2. Need to add 0 where Value X and Value Y intersect
    By cmtgrame in forum Excel General
    Replies: 3
    Last Post: 05-14-2014, 12:57 PM
  3. Can I add another Else to this intersect?
    By lastat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2010, 04:41 PM
  4. If Intersect
    By astanix in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2010, 05:56 PM
  5. Difference between Intersect and Not Intersect is Nothing
    By batman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2009, 05:39 PM
  6. Intersect in VBA
    By mattydalton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2009, 08:15 AM
  7. Intersect
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2006, 05:45 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