Nested Formula ??

jblair626

New Member
Joined
Oct 17, 2011
Messages
18
I have three Columns

Type Discount Rate

In the type column It is either "Family" or "Single"
In the discount column it is either "n/a"= no discount or "edu",or "mil" = 10% discount
In the rate column I need a formula that will give me
Family= "100" or 10% off = "90" if mil or edu is in the discount column
Single= "50" or 10% off = "45" if mil or edu is in the discount column
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Couple of options, perhaps...

Nested ...IF(AND... solution:
Code:
=IF(AND(A2="Family",B2="n/a"),100,IF(AND(A2="Family",B2<>"n/a"),90,IF(AND(A2="Single",B2="n/a"),50,45)))
Another way if the Type can only be Family or Single:

Code:
=INDEX({100,50},IF(A2="Family",1,2))*IF(B2="n/a",1,0.9)
Matty
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,689
Members
449,117
Latest member
Aaagu

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