Multiple If Statements

BJSax

New Member
Joined
Sep 21, 2010
Messages
6
I want to create a formula that returns three possible results.
Such as:
Cell C4 can have a result of anywhere from 0 to 30.
I want the adjacent cell, say D4, to return a value of 10 if cell C4 has a value between 20 and 30; return a value of 5 if cell C4 has a value between 10 and 19; and return a value of 0 if cell C4 has a value between 0 and 9.
 
TRY
Code:
=IF(AND(C4>20,C4 < 30),10,IF(AND(C4>10,C4 < 19),5,0))

If the numbers you quote are inclusive use
Code:
=IF(AND(C4>=20,C4 < =30),10,IF(AND(C4>=10,C4 < =19),5,0))
 
Upvote 0
Maybe something like

=LOOKUP(C4,{0,10,20},{0,5,10})
 
Upvote 0
Hi Gail
I like that !!
One for the function library
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top