scalable if function

Hello


I'm using numbers for mac and I need some help.


I need to apply a percentage depending on an ascending and scalable value. The more value I have, the more percentage I get. This should be the function:


- If I have a value less than 1920$ then the percentage is 50%

- If I have a value more than 1920$ but less than 3840$ then the percentage should be 55%

- If I have a value more than 3840$ but less than 5760$ then the percentage is 60%

- If I have a value more than 5760$ but less than 7680$ then the percentage is 65%

- If I have a value more than 7680 then the percentage is 70%


70% is the maximum percentage.


I've been trying with the IF function but I can only get one step of the function.


Many thanks

MacBook Pro with Retina display, macOS Sierra (10.12.6)

Posted on May 8, 2018 12:23 AM

Reply
Question marked as Top-ranking reply

Posted on May 10, 2018 1:31 AM

=IF(A<1920, 50%, IF(A<3840,55%,IF(A<5760,60%,IF(A<7680, 65%,70%))))


I did not test it in Numbers, just typed it in here. Hopefully has enough closing parentheses.

6 replies

May 10, 2018 1:32 AM in response to felixbuenobcn

Hello felixbuenobcn:

Here is the formula I believe you are looking for. Copy it then paste it into the proper cell of your table.

=IF(AND(A>0,A<=1920),50%,IF(AND(A>1920,A<=3840),55%,IF(AND(A>3840,A<=5760),60%,I F(AND(A>5760,A<=7680),65%,IF(A>7680,70%,"")))))

If your $ value is not in column A then you will need to change the A to the correct column letter.

When I copied then pasted this formula it came out with a space between the i and f of one of the if's. This space will need to be removed too.

MSwint

May 8, 2018 7:38 AM in response to felixbuenobcn

you can add a second table to make this very extendable:

User uploaded file


Instead of nested if() statements, use a vlookup():

C2=VLOOKUP(B2, 'Table 1-2'::A:B, 2,TRUE)


This is shorthand for… select cell C2, then type (or copy and paste from here) the formula:

=VLOOKUP(B2, 'Table 1-2'::A:B, 2,TRUE)


fill down by selecting cell C2, copy

select cells C2 thru the end of column C, paste



Add entries in the table on the right (named table "Table 1-2") as needed

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.

scalable if function

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