Multiple If and Else if

G

Guest

Hi All,

I need some help with mulitple condtion using if and else if(If possible)
otherwise I am open for better ideas.
I have 2 columns A & B (These number are just estimated points it will be
changed)
Column A Column B
< 70 5 Points
70-80 15 Points
80-85 14 Points
85-90 13 Points
90-95 12 Points
95-100 12 Points
100 10 Points
100-110 8 Points
110-120 7 Points
120 5 Points
Based on Column A, I want the formula in Column B to generate the points.
I hope I am not asking that cannot be done :)
Please if someone can help.

Thanks in Advance
AM
 
S

Stevie_mac

You can do it with If functions, though I recommend a VLookup...

Enter the following table...

Col G , Col H
0, 5
80, 15
85, 14
90, 13
95, 12
100, 10
101, 8
110, 7
121, 5

then in cell B1, enter the following formula ...
=VLOOKUP(A1,G1:H9,2)

Now in cell A1, type in a value & see the score in B1 update.

Hope this helps - Steve.
 
B

Bob Phillips

=LOOKUP(A1,{0,5;70,15;80,14;85,14;90,13;95,12;100,10;101,8;110,7;120,5})

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
S

Stevie_mac

That's a good tip Bob, I didn't even realise you could list in-place (so to speak).
I'll have to remember that one!

NOTE to Andy, If you change your points scoring system, then you have to change every instance of this, If you use a
table (as in the answer I submitted) then you only change the points in the table once.
 
G

Guest

Thanks Bob

AM

Bob Phillips said:
=LOOKUP(A1,{0,5;70,15;80,14;85,14;90,13;95,12;100,10;101,8;110,7;120,5})

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
B

Bob Phillips

An in-line array, gets useful for multi-condition tests.

You would only change one, then copy down for the rest. Not arguing against
a table, just pointing out that it is not that onerous. More importantly, if
there are many instances of that type formula (the non-table type), it is
less efficient and consumes more workbook.

--

HTH

RP
(remove nothere from the email address if mailing direct)


Stevie_mac said:
That's a good tip Bob, I didn't even realise you could list in-place (so to speak).
I'll have to remember that one!

NOTE to Andy, If you change your points scoring system, then you have to
change every instance of this, If you use a
 

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