If, Then formula help

cgendron

Board Regular
Joined
Apr 13, 2011
Messages
111
Hello all,
i need some help with a formula. In column B i'll enter a value, depending on that value, column D will give me a rate, either "Free, B, C, D or E"

So what i want the formula to say is:

If B11 is less than or equal to B9 then "Free". If B11 is between D9 and E9 then "B Rate". If B11 is between G11 and H11 then "C Rate. If B11 is between J9 and K9 then "D rate". If B11 is between M9 and N9 then "E Rate".

i'd also like something to populate like "No Discount" if none of these statements is true.

Thanks.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Are the lower "lettered" cells always going to contain a lower value, meaning will D9 always be less than E9 and G11 always less than H11?
 
Upvote 0
Perhaps this:

edit: well I forgot about the forum shenanigans with < >'s.

Let's try this again:

=IF(B11<=B9,"Free",IF(AND(B11>D9,B11<E9),"B Rate",IF(AND(B11>G11,B11<H11),"C Rate",IF(AND(B11>J9,B11<K9),"D Rate",IF(AND(B11>M9,B11<N9),"E Rate","No Discount")))))
 
Last edited:
Upvote 0
Are the lower "lettered" cells always going to contain a lower value, meaning will D9 always be less than E9 and G11 always less than H11?

Sorry, meant to reply with your quote. Your assumption is correct, thanks
 
Upvote 0
Not really too much different than DREIDs, but here is my version. Mine assumes it can be equal too D9 or E9 not just between them, so not sure which version works for you.

Code:
=IF(B11<b9,"free",if(and(b11>=D9,B11<=E9),"B Rate",IF(AND(B11>=G11,B11<=H11),"C Rate",IF(AND(B11>=J9,B11<=K9),"D Rate",IF(AND(B11>=M9,B11<=N9),"E Rate","No Discount")))))
</b9,"free",if(and(b11>
 
Last edited:
Upvote 0
Perhaps this:

edit: well I forgot about the forum shenanigans with < >'s.

Let's try this again:

=IF(B11<=B9,"Free",IF(AND(B11>D9,B11<E9),"B Rate",IF(AND(B11>G11,B11<H11),"C Rate",IF(AND(B11>J9,B11<K9),"D Rate",IF(AND(B11>M9,B11<N9),"E Rate","No Discount")))))

That worked perfectly! Thanks for your help!
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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