IF Statement calculation

  • Thread starter Thread starter Michelle
  • Start date Start date
M

Michelle

I am trying to write an IF statement that assigns point
values to a calcualtions.

For example If a number is 0.7 or above then assign 100.
If the number is between 0.69 and 0.51, then assign 50. If
the number is .50 and below then 0.

How do I write an If statement that has all of these
variables.


Thanks for your help.
 
Hi Michelle,


Try a vlookup.

A1 = 0
A2 = .51
A3 = .7
B1 = 0
B2 = 50
B3 = 100

In E1 enter =VLOOKUP(D1,A1:B3,2,1)

In D1 enter the lookup value.

0 to .5 returns 0
..51 to .69 returns 50
..7 and over returns 100

HTH
Regards,
Howard
 
Hi Michelle
instead of the (more flexible/expandable) VLOOKUP solution for only 3
conditions you may want to use the following IF construct:
=IF(A1>=0.7,100,IF(A1>=0.51,50,0))

Frank
 

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

Similar Threads

IF Statement 2
If statement 5
IF Statement Yes/No 2
Help on a formula 4
Assigning values to a variable set 1
If statement with dates 0
Vlookup help please 2
If statement for equivalent value of a range 4

Back
Top