+ Reply to Thread
Results 1 to 5 of 5

IFS formula that allows whole and decimals

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    Redding, CA
    MS-Off Ver
    365
    Posts
    1

    IFS formula that allows whole and decimals

    Writing a points system for work and wanting to use a formula to calculate the amount of incentive points handed out to students daily. If they score a daily average (column O) 1.0 - 1.9 they receive a 0, 2.0-2.9 a 1, 3.0-3.9 a 4, 4.0 they get 10 points. Every formula I have tried/found won't hold true for all the numbers. On the attached sheet column P is the one that needs the formula. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: IFS formula that allows whole and decimals

    Are you required to use an IFS() function? This seems to me like it would be better handled with one of Excel's lookup functions (such as VLOOKUP()) with an approximate match option. For example:

    1) Create the lookup table. In AA7 put 1, AA8 put 2, AA9 put 3, AA10 put 4. In AB7 put 0, in AB8 put 1, and so on.
    2) In P7 (I assume this is where you want the result) enter =VLOOKUP(O7,$AA$7:$AB$10,2,TRUE) and copy/paste/fill down.

    If I understand what you are trying to do, that should work.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: IFS formula that allows whole and decimals

    Build a table as follows

    Excel 2016 (Windows) 32 bit
    U
    V
    7
    1
    0
    8
    2
    1
    9
    3
    4
    10
    4
    10
    Sheet: Sunday

    then in P7 type =VLOOKUP(AVERAGE(H7,N7,O7),U7:V10,2) and copy down.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: IFS formula that allows whole and decimals

    I agree with the other posts here, but if you wanted to use IFS, you could try this (Note, you don't say what it is if they score less than 1.0, but this answer assumes they'd still get a 0).

    =IFS(O7<2,0,O7<3,1,O7<4,4,TRUE,10)

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: IFS formula that allows whole and decimals

    =lookup(o7,{1,2,3,4},{0,1,4,10})
    Quang PT

+ 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] Help with Formula to remove decimals
    By kgtrader in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2020, 02:52 PM
  2. Fix formula to calculate decimals
    By Deedrick in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2016, 03:25 AM
  3. Rounding 2 decimals to specific 2 decimals
    By danyel191 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2016, 01:41 PM
  4. Rounding to two decimals within a formula
    By jimbolgs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2016, 10:35 AM
  5. Replies: 2
    Last Post: 02-13-2015, 07:36 AM
  6. Ignore Decimals in a Formula?
    By jamesjunkers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-02-2014, 03:14 PM
  7. [SOLVED] Decimals in Formula
    By Mestrella31 in forum Excel General
    Replies: 2
    Last Post: 01-05-2005, 02:06 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