+ Reply to Thread
Results 1 to 5 of 5

If between 3 different cirteria

  1. #1
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    If between 3 different cirteria

    Hello Excel peeps!

    I'm a little embarrased to admit I'm having a little trouble with a nested if between formula

    I am trying to assign a value to 1 of 4 distinct categories

    <30
    Between 30 and 60
    Between 60 and 90
    > 90

    So if cell A1 is 29, it should return the 1st category above. If A1 id 87, it should return the 3rd category etc

    I know to use IF(AND( for this but I am having a little trouble nesting is appropriately. It's likely the order I am attempting to arrange the formula in but would anyone be able to provide an example of how I could construct this if possible?

    Any help at all much appreciated!

    Kind regards,
    Kevin

  2. #2
    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,202

    Re: If between 3 different cirteria

    Try

    =LOOKUP(A1,{0,30,60,90},{1,2,3,4})

    1-4 are your "Categories"

    or

    =LOOKUP(A1,{0,30,60,90},{"1st","2nd","3rd","4th"})
    Last edited by JohnTopley; 11-03-2021 at 09:53 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: If between 3 different cirteria

    I started my data in Column A1 and had other values in a2:a6 to test this formula:
    Please Login or Register  to view this content.
    ;
    A correction to your scheme was made to allow the 4th tier to be >= 90. If I understand your Tiers, the 3rd tier is between 60 & 90 but can't equal 90.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: If between 3 different cirteria

    To return 1,2,3,or 4 =MAX(1,MIN(CEILING(B1,30)/30,4))

  5. #5
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: If between 3 different cirteria

    That has indeed done it, thank you so much guys!!

+ 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] SUM With Month cirteria
    By DEEARO in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2021, 10:50 AM
  2. two cirteria sumifs formula problems
    By chriswrcg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-28-2019, 10:34 AM
  3. [SOLVED] sumproduct month and other cirteria
    By moneypennie21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2019, 06:14 AM
  4. [SOLVED] display information based on two cirteria
    By kobiashi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-20-2018, 08:57 PM
  5. vlookup with 2 cirteria
    By anwitha in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-09-2015, 03:00 AM
  6. [SOLVED] COUNTIF in an array with two cirteria (one of which is a date)
    By costgeek in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-30-2015, 12:27 PM
  7. Countif Multiple Cirteria
    By Danielle 76 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-06-2005, 07:05 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