View Single Post
  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Correction
That should have read
Or without IF statements
=75*(B2=5)+25*(B2=10)+150*(B2=15)

Regards

Roger Govier


Roger Govier wrote:
Hi Michael

Try entering in A2
=IF(B2=15,150,IF(B2=10,100,IF(B2=5,75,"")))
This assumes that you want nothing in cell A2 if B2 is not equal to any
of those values.

Or without IF statements
=75*(B2=5)+25*(B2=10)+75*(B2=15)
The formula will return 0 if B2 does not equal 5,10 or 15

Regards

Roger Govier


Michael NYC wrote:

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!