multiple conditions in XL

D

djinn

hi all,here is the problem:
i need to check numbers and apply a pourcentage depending of the value.
there are 5 category of numbers and pourcentages.sample:
2 then pourcentage 1.8
6 " "" " 1.6
11 " " "" 1.4
16 " " " 1.3
21 " " " 1.1
Thanks for your help
 
J

Jacob Skaria

If the values you mentioned is a range then try the below
=LOOKUP(A1,{0,2,6,11,21},{0,1.8,1.6,1.4,1.3,1.1})

or else use IF conditions
=IF(A1=2,1.8,IF(A1=6,1.6,(IF(A1=11,1.4 ....and so on


If this post helps click Yes
 
D

djinn

this don't seems to work.
thecondition is like:
if A1 is < 5 then multiply A1 by 1,8, if A1 is >5and <10 then multiply A1 by
1,6 and so on
 
G

Gord Dibben

How about if the number is exactly 5 or exactly 10?

You haven't made any provision for that.

Define your parameters before saying it "don't work"

Is this closer?

=LOOKUP(A1,{0,6,11,16,21},{1.8,1.6,1.4,1.3,1.1})



Gord Dibben MS Excel MVP
 
D

djinn

i apologise, you are absolutely right the condition is something like:
then should the formula be like this:
=LOOKUP(A1,{<=5,>5<=10,>10,<=15,etc...},{1.8,1.6,1.4,etc...}) ???
 
J

Jacob Skaria

Try the below

=A1*LOOKUP(A1,{0,2,6,11,21},{0,1.8,1.6,1.4,1.3,1.1})

If this post helps click Yes
 

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