+ Reply to Thread
Results 1 to 7 of 7

Help! IFS Formula with a ranged criteria?

  1. #1
    Registered User
    Join Date
    06-27-2017
    Location
    United States
    MS-Off Ver
    Windows 10
    Posts
    2

    Help! IFS Formula with a ranged criteria?

    Hi,
    I'm having some trouble with the IFS formula. I have tried both IFS and IF, without any success.

    Basically, I'm pulling data with a random range of 1-100.


    If the data is less than (or equal to) "49", then I need to return the value "Too short!"

    If the data is equal to the range of "50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60", then I need to return the value "Perfect!"

    If the data is greater than (or equal to) "61", then I need to return the value "Too long!"



    I have managed to get the less than and greater than to work, and independently I have managed to get the equal to a range to work, BUT I can't seem to get these to work together. I need this function in one cell, and it's giving me a bit of a headache.
    Can someone give me a hand here?
    Last edited by DestynnieHall; 06-27-2017 at 08:42 PM. Reason: wording

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,814

    Re: Help! IFS Formula with a ranged criteria?

    Post the formula(s)
    Ben Van Johnson

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

    Re: Help! IFS Formula with a ranged criteria?

    DH welcome to the forum.

    With data 1-100 in column A try this formula in B1 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

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

    Re: Help! IFS Formula with a ranged criteria?

    If it has to be the IFS function I don't have Excel 2016, but from reading the documentation I believe this would work.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,037

    Re: Help! IFS Formula with a ranged criteria?

    DestynnieHall welcome to the forum

    (Windows 10 is your operating system, not your MS office version please update with your Office version - 2016, 365, Mac etc)

    I have 2016 desktop and IFS() (along with a few other new functions are not included (for FT)

    Based on your example...
    =if(A1<=49,"too short",if(A1>=61,"too long","perfect"))
    If the data is less than (or equal to) "49", then I need to return the value "Too short!"
    If the data is equal to the range of "50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60", then I need to return the value "Perfect!"
    If the data is greater than (or equal to) "61", then I need to return the value "Too long!"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Help! IFS Formula with a ranged criteria?

    Quote Originally Posted by FDibbins View Post
    I have 2016 desktop and IFS() (along with a few other new functions are not included (for FT)
    Thanks Ford for filling me in. Didn't know about that one. Online docs I have been using are kind of 'sketchy'.

  7. #7
    Registered User
    Join Date
    06-27-2017
    Location
    United States
    MS-Off Ver
    Windows 10
    Posts
    2

    Re: Help! IFS Formula with a ranged criteria?

    Quote Originally Posted by FDibbins View Post
    DestynnieHall welcome to the forum

    (Windows 10 is your operating system, not your MS office version please update with your Office version - 2016, 365, Mac etc)

    I have 2016 desktop and IFS() (along with a few other new functions are not included (for FT)

    Based on your example...
    =if(A1<=49,"too short",if(A1>=61,"too long","perfect"))
    Oh, thank you so much!
    This helps a lot...it does exactly what I need.
    (And thank you for the welcome!)

+ 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. Loading Image into Name Ranged
    By Johnny0811 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2017, 09:37 AM
  2. How to unblock a Ranged Name using a VBA.
    By Hellion in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-25-2016, 02:15 PM
  3. COUNTIFS to ignore FORMULA ranged cells
    By dluhut in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-22-2014, 05:00 PM
  4. [SOLVED] Resizing a used ranged name
    By zara_toustra in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-10-2014, 04:52 PM
  5. [SOLVED] AVERAGEIFS & Named Ranged Inputted Criteria
    By tskabo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2014, 08:19 PM
  6. [SOLVED] Copy adjacent cell data based on ranged criteria.
    By Nneakz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-05-2013, 03:30 PM
  7. Sum if date ranged.
    By jesseka in forum Excel General
    Replies: 2
    Last Post: 12-13-2010, 04:48 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