+ Reply to Thread
Results 1 to 10 of 10

Determine if all criteria fit between numerial ranges (for Excel and Google Sheets)

  1. #1
    Registered User
    Join Date
    06-12-2020
    Location
    Asia
    MS-Off Ver
    Office 365 and Google Sheets.
    Posts
    5

    Determine if all criteria fit between numerial ranges (for Excel and Google Sheets)

    Here is the sample I have created.

    Column N is the only column that has input values.
    Column K is the result I want.

    Column C, E, I is the least acceptable value, column D, G, J is the largest acceptable value.

    K2 does not match because item1 is only acceptable at 2, while in columns M/N you see item1 is at 1. The items can repeat!!
    K3 also does not match because item3 is only acceptable at values between 1 to 4, while in columns M/N you see item3 at 6.

    So on.. All 3 of these critera have to be met in order to return a match as in K5.

    Any help here, this seems impossible I've been at it all day... Thanks a lot!
    Attached Files Attached Files
    Last edited by AliGW; 06-12-2020 at 06:16 AM.

  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
    81,091

    Re: Determine if all criteria fit between numerial ranges

    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.

    Also, please clarify your version of Excel - is it Office 365?
    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
    06-12-2020
    Location
    Asia
    MS-Off Ver
    Office 365 and Google Sheets.
    Posts
    5

    Re: Determine if all criteria fit between numerial ranges

    I have no idea what locale I am using (it doesn't have to match physical location), but my user interface is English. I am also using online versions of excel (either google sheets or the excel in onedrive) so I have no clue what specific settings is being used.
    Last edited by someone2020; 06-12-2020 at 06:05 AM.

  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
    81,091

    Re: Determine if all criteria fit between numerial ranges

    What is your location? Is this query for Google Sheets or Excel? From what you have said, your Office version is 365 - please update your profile as requested. Thanks.

  5. #5
    Registered User
    Join Date
    06-12-2020
    Location
    Asia
    MS-Off Ver
    Office 365 and Google Sheets.
    Posts
    5

    Re: Determine if all criteria fit between numerial ranges

    Currently in Asia, but my files are to be opened, edited, and accessed worldwide. This particular file was created from Excel, but I generally import/export them to Google Sheets so if there are problematic differences between the two, they'll have to be edited and accessible by both.

  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
    81,091

    Re: Determine if all criteria fit between numerial ranges

    OK - so change your location field to Asia, please, and in the MS Version field, put Office 365 and Google Sheets.

  7. #7
    Registered User
    Join Date
    06-12-2020
    Location
    Asia
    MS-Off Ver
    Office 365 and Google Sheets.
    Posts
    5

    Re: Determine if all criteria fit between numerial ranges

    OK changed. So what if there are regional issues in the future stemming from accessing and editing outside of Asia lol.

  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
    81,091

    Re: Determine if all criteria fit between numerial ranges (for Excel and Google Sheets)

    There won't be. Locale issues can be at the root of problems some members will have, especially with date and currency formats, which is why it is useful for helpers to know roughly where you are in the world.

    I looked at your workbook and could not understand the expected results - you are going to need to explain in more detail, please.

  9. #9
    Registered User
    Join Date
    06-12-2020
    Location
    Asia
    MS-Off Ver
    Office 365 and Google Sheets.
    Posts
    5

    Re: Determine if all criteria fit between numerial ranges (for Excel and Google Sheets)

    Column M are items, you will see that there are items in columns B, E, and H.
    Column N are numerial values, you will see that there are numerial values in C, D, F, G, I, J.
    The two numerial values beside each item is the min and max acceptable.

    In row 2,
    item1 is between 2-2, and you can see columns M/N item1 is 1. NO MATCH.
    item1 is between 2-2, and you can see columns M/N item1 is 1. NO MATCH. (yes this is a repeat. normal.)
    item2 is between 1-4, and you can see columns M/N item 2 is 2. MATCH.

    Therefore K2 should return a NO MATCH because it has (a) criteria(s) that doesn't match.


    If you go down to row 5 however. Every single item DOES match.
    item5 is between 1-2, and you can see columns M/N item2 is 2. MATCH.
    item3 is between 5-8, and you can see columns M/N item3 is 6. MATCH.
    item2 is between 2-3, and you can see columns M/N item2 is 2. MATCH.

    Therefor K5 should return a MATCH.


    If I require more columns to easier put different steps of calculation, that is perfectly fine. The entire formula does not need to be in Column K.
    Last edited by someone2020; 06-12-2020 at 08:11 AM.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,588

    Re: Determine if all criteria fit between numerial ranges (for Excel and Google Sheets)

    This proposal employs three helper columns (M:O) which may be moved and/or hidden for aesthetic purposes.
    The helper columns are populated using formulas similar to: =AND(INDEX($V$1:$V$5,MATCH(B2,$U$1:$U$5,0))>=C2,INDEX($V$1:$V$5,MATCH(B2,$U$1:$U$5,0))<=D2)
    Note that in the file attached to post #1 some values (with green error markers) were text as opposed to numbers which has been changed in the file attached to this post.
    Column K is populated using: =IF(COUNTIF(M2:O2,TRUE)=3,"MATCH","NO MATCH")
    Note that regional settings may dictate that the commas should be changed to semicolons, although in the attached file that change should occur automatically.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Determine if value falls between multiple ranges
    By T15K in forum Excel General
    Replies: 4
    Last Post: 01-20-2021, 03:25 AM
  2. Replies: 11
    Last Post: 02-12-2015, 10:44 AM
  3. Populating hidden rows based on numerial ranges.
    By Common Wealth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2013, 11:37 AM
  4. Replies: 10
    Last Post: 11-27-2012, 12:23 PM
  5. Replies: 1
    Last Post: 11-15-2012, 04:53 PM
  6. Replies: 3
    Last Post: 02-23-2012, 08:06 AM
  7. Replies: 2
    Last Post: 04-22-2011, 09:34 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