Case

B

Boris

Hello,

I have this problem to solve:
in A1 is int number from 0 to 6
in B1 is a value 1000
there is a separate table with "limits" such as
limit
0 100
1 200
2 300 etc to 6
in D should be formula which subtracts from 1000 a limit depending on what
is in A1.
Is there a sort of "case" function which will prevent of using dozen IFs on
this?


10x in advance

Boris
 
P

Peo Sjoblom

You can use a lookup formula

=IF(A1="",B1,B1-LOOKUP(A1,{0;1;2;3;4;5;6},{100;200;300;400;500;600;700}))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top