+ Reply to Thread
Results 1 to 5 of 5

Help with IFS function

Hybrid View

  1. #1
    Registered User
    Join Date
    05-31-2023
    Location
    England
    MS-Off Ver
    2017
    Posts
    3

    Help with IFS function

    Hi All,

    I am looking for some help. I am looking to use the IFS function to give a number (rating) depending on the number in question. For example to follow the table below.

    If number is less than 5
    Then score it 1

    If number is between 6-10
    Then score it 2

    If number is between 11-26
    The score it 3

    If number is greater than 27+
    Then score it 4

    I am using the below which seems to work on scoring something 1 or 4 but not 2 and 3. Any help would be appreciated.

    =IFS(C5<5,1,C5>5<=10,2,C5>10<=26,3,C5>27,4)

  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
    47,997

    Re: Help with IFS function

    Don't use IFS, it is very inefficient.

    Formula: copy to clipboard
    =IF(C5<5,1,IF(C5<10,2,IF(C5<26,3,4)))
    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
    Registered User
    Join Date
    05-31-2023
    Location
    England
    MS-Off Ver
    2017
    Posts
    3

    Re: Help with IFS function

    Thank you, this worked perfectly.

    Sorry to ask something else but do you know if it is possible to count number from two columns and add them together? Example below.

    In one cell I would like to be able to know the following:

    If number in C4 is less than 5 in C4 then score it 1
    If number in C4 is between 6-10 then score it 2
    If number in C4 is between 11-26 then score it 3
    If number in C4 is greater than 27+ then score it 4
    If number in C5 is less than 4 then score it 1
    If number in C5 is between 5-10 then score it 2
    If number in C5 is between 11-23 then score it 3
    If number in C5 is greater than 24+ then score it 4

    Then combine the two numbers for a total.

    I hope this makes sense : )

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,212

    Re: Help with IFS function

    Please start a new thread for this separate query with a suitable title.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,212

    Re: Help with IFS function

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

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Replies: 1
    Last Post: 02-10-2023, 10:18 AM
  2. [SOLVED] Left function, Right Function, or Mid Function to extract values to three decimal places
    By bjnockle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2023, 03:22 AM
  3. Right function, Left function, Mid function to extract values in column A
    By bjnockle in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2020, 03:14 PM
  4. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  5. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  6. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 AM

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