Numbers formula with multiple options

I'm trying to create a formula using numbers that will create several options from one number. If cell can be anywhere between 1 to 100 and if they score 1 to 25, they receive score 2, if they score 26 to 50, they score 3 and if they score 51 to 100 they receive 4. Just need simple formula. Thanks.

Posted on May 17, 2023 10:03 AM

Reply
Question marked as Top-ranking reply

Posted on May 17, 2023 11:36 AM

21 replies

May 17, 2023 5:36 PM in response to ecoachpro

Stfflspl mistyped the percentage to number equivalence in an earlier post. 70% =0.7 not 0.07. But if you use the % values in your formula (rather than converting them), you shouldn't have any problem.


I am guessing that you did not use the ROUND function in the formula in column AA. If you did not, while the percentage values in column AA are displayed rounded to the nearest percent, the actual values in the cells are not rounded. You may see "20%" in column AA but the true value may actually be anywhere from 19.50% to 20.4999...%. In the IFS formula, the first will will give the answer of 1, the second will give 2, even though the input looked like 20% for both. You will have to fix that for your IFS formula to work correctly. Using your description of the cells as "Cell one" and "Cell two" the formula in column AA will be

=ROUND(Cell two/Cell one,2)


With that fixed, your IFS formula is

=IFS(AA14<20%,1,AA14<40%,2,AA14<60%,3,AA14<80%,4,AA14>=80%,5)


You did not specify what to do if AA14<1 so I assumed anything less than 20% will give the result of 1

You did not specify what to do if AA14>100 so I assumed the result will be 5


May 17, 2023 1:06 PM in response to stfflspl

Cell one is a number and cell number is a number. These cells are divided to create a % in another cell. For example. Cell One is the number 12 and Cell Two is the number 20. Cell Three is a % score (60%) created by dividing the two number cells. I then extract from the % cell what I need for the final result. If they score 1 to 25% they score a 1, if they score 26 to 50% they score a 2, etc.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Numbers formula with multiple options

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.