+ Reply to Thread
Results 1 to 10 of 10

Less than or equal to and greater than or equal to formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Less than or equal to and greater than or equal to formula

    Hello ALL
    I am getting stuck with the formula for using Less than or equal to and greater than or equal to formula.
    If an age is in a certain range I would like to return that range

    Attached you will see the example of the start of the formula , but I am not sure how to write the formula

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,558

    Re: Less than or equal to and greater than or equal to formula

    Try Cell B2 formula , Drag down

    HTML Code: 
    OR

    HTML Code: 
    Last edited by wk9128; 08-31-2021 at 10:55 AM.

  3. #3
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: Less than or equal to and greater than or equal to formula

    Thank you wk9128

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,533

    Re: Less than or equal to and greater than or equal to formula

    Add extra column D with lower limit of each bracket

    in B2

    =INDEX($C$2:$C$9,MATCH($A2,$D$2:$D$9,1))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: Less than or equal to and greater than or equal to formula

    Thank you John , I never thought of using index and match

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Less than or equal to and greater than or equal to formula

    Same logic but more calculations ... in B2 and filled down.
    Formula: copy to clipboard
    =LOOKUP(A2,--LEFT($C$2:$C$9,FIND("-",SUBSTITUTE($C$2:$C$9," ","-"))-1),$C$2:$C$9)
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Less than or equal to and greater than or equal to formula

    Simpler than my previous and fewer calculations.
    Formula: copy to clipboard
    =LOOKUP(A2,--LEFT(SUBSTITUTE($C$2:$C$9,"-","  "),3),$C$2:$C$9)

  8. #8
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: Less than or equal to and greater than or equal to formula

    Thank you Flame Retired

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Less than or equal to and greater than or equal to formula

    You are welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,558

    Re: Less than or equal to and greater than or equal to formula

    @Ron Purpura You're Welcome. Glad to help . Thank You for the feedback

+ 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] Date Greater Than equal to and Less than equal to (Month and year)
    By senthile in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-17-2021, 01:31 PM
  2. [SOLVED] greater than, less than or equal formula
    By diogo87 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2020, 05:58 AM
  3. [SOLVED] IF date is greater than or equal to X but less than or equal to y
    By LloydGilmore in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-09-2019, 05:35 AM
  4. If cell value is less than or equal to, OR greater than or equal to
    By Pacific_Quest in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-07-2017, 11:20 AM
  5. Filter column B by equal or greater than 31 but less than or equal to 60
    By kop1ko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2015, 04:11 PM
  6. SumIfs containing a greater than or equal to And less than or equal to
    By teton88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 07:47 PM
  7. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 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