View Single Post
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

=if(A2-75,5,if(a2=100,10,if(a2=150,15)))
If you have many more, you can use a vlookup table, which will be nice if
your values ever change.
See:
http://www.officearticles.com/excel/...soft_excel.htm
************
Anne Troy
www.OfficeArticles.com

"Michael NYC" <Michael wrote in message
...
I want to return a value (a number) based on a number in anotehr cell that
is
within a range of numbers using the IF function. For example: A2=$75 if
B2=5,
A2=$100 if B2=10, A2=$150 if B2=15.

Can someone please give me the correct syntax, I am really lost!