+ Reply to Thread
Results 1 to 5 of 5

finding out if a value exists in a list within low and high values

  1. #1
    Registered User
    Join Date
    02-04-2021
    Location
    Australlia
    MS-Off Ver
    365
    Posts
    48

    finding out if a value exists in a list within low and high values

    in Sheet 1 , I have a list of numeric values and a YES /NO flag
    In Sheet2 , I have 2 columns with a MIN & MAX values

    For example in Sheet1
    ZONE FLAG
    1200 n
    4552 n
    5433 y
    555 y
    2525 n

    In Sheet 2 (Zones)
    I have 2 values , lower limit and upper limit

    1100 1100
    2200 2230
    3400 3450
    54300 54400
    500 600

    If 1200 is >=1100 and <=1100 Flag = Y else N and so on for the entire list in sheet 2
    If the value in sheet 1 falls within any of those MIN and MAX value then the flag has to be set to Y Else N

    I know VB and I m trying to avoid writing that in VB .
    I am sure Excel can handle this , so please any help or suggestions is appreciated
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: finding out if a value exists in a list within low and high values

    If you sort the zones ascending and add a first row with 0, 0, you can use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by TMS; 08-05-2022 at 05:23 AM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,422

    Re: finding out if a value exists in a list within low and high values

    Try this formula in cell D2 and copy down

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


    (zones do not need to be sorted)
    Attached Files Attached Files
    Last edited by HansDouwe; 08-05-2022 at 05:41 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: finding out if a value exists in a list within low and high values

    Assuming 5433 in row 4 is meant to be 54330 or something?

    Try in C2:

    =IF(MAX(IF((B2>=ZONES!$A$1:$A$5)*(B2<=ZONES!$B$1:$B$5),1,0))=1,"y","n")

    Copy down

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: finding out if a value exists in a list within low and high values

    Thanks for the rep.

+ 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] [Google sheet] Check if values in list exists in another list and show them in range
    By jaryszek in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 09-21-2021, 04:50 AM
  2. Finding new high values in a list of daily values
    By confettiboom in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-21-2020, 03:11 PM
  3. [SOLVED] incrementing high mod values in a list
    By grizdog in forum Excel General
    Replies: 5
    Last Post: 11-28-2016, 04:45 PM
  4. Search a cell for a string that exists in a list of values
    By jefflach in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2013, 11:23 AM
  5. Replies: 12
    Last Post: 11-07-2012, 01:37 PM
  6. [SOLVED] Finding opening, high, low, close in long list of prices
    By oceanfront in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-25-2012, 07:12 AM
  7. Replies: 3
    Last Post: 05-31-2012, 01:44 PM

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