+ Reply to Thread
Results 1 to 6 of 6

EXCEL function to check a cell is within a range...

  1. #1
    Registered User
    Join Date
    07-14-2020
    Location
    Kerala, India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    29

    EXCEL function to check a cell is within a range...

    Dear friends,

    Is there an EXCEL function to check a cell is a subset of a given range (something like Application.Intersect(MyCell, MyRange) Is nothing)? I know that I can as well define a user defined function:

    Please Login or Register  to view this content.
    Thanks and regards,

    Pravin Kumar.

  2. #2
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,450

    Re: EXCEL function to check a cell is within a range...

    If you are talking about a single cell.

    Then if that cell intersects your second range then the cell is in that range.

    So

    Please Login or Register  to view this content.
    You were right. These also works

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 10-15-2020 at 09:51 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    07-14-2020
    Location
    Kerala, India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    29

    Re: EXCEL function to check a cell is within a range...

    My query is whether there exist an EXCEL function doing the same job.

  4. #4
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,450

    Re: EXCEL function to check a cell is within a range...

    =IF(ISERROR(D10 D10:M10),"False","True")

    D10 is your cell.
    D10:M10 is you range

  5. #5
    Registered User
    Join Date
    07-14-2020
    Location
    Kerala, India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    29

    Re: EXCEL function to check a cell is within a range...

    Does ISERROR return TRUE or FALSE depending on the first argument in the second argument? However, the formula does not work.

    Thanks for your suggestion all the same.

    Pravin Kumar.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,697

    Re: EXCEL function to check a cell is within a range...

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

+ 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. Replies: 5
    Last Post: 03-14-2020, 03:58 AM
  2. user-defined function to check spelling in a range
    By NickyC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2018, 03:12 AM
  3. [SOLVED] Check if value is in range, and if so check cell on row empty
    By tool_fairy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-21-2017, 10:35 AM
  4. Replies: 2
    Last Post: 03-24-2016, 10:55 AM
  5. [SOLVED] If a cell is contained in a range, then WORD, if not go check in another range...
    By Marta Garcia in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2016, 07:24 AM
  6. [SOLVED] Using If function to check condition in a range
    By bmbalamurali in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-07-2014, 09:57 AM
  7. [SOLVED] Formula or function for Check Repate Word in Range
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2013, 06:33 AM

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