If, AND, OR Help

fernipascual

Board Regular
Joined
Sep 3, 2009
Messages
76
Hello all:

This is a program that pays based on product sold. There are two products, A & B and two eligible periods, Month 1 and Month 2. They only get paid one time for each product. Either $5 per product (if sold in Month 1) or $3 (if sold in Month 2). Here are the scenarios:

Month 1 - Sold product A & B = $10. Month 2 – sold product but no payment
Month 1 – Sold product A = $5, no B. Month 2 - Sold product B = $3, (doesn’t matter if sold A)
Month 1 – Sold product B = $5, no A. Month 2 - Sold product A = $3, (doesn’t matter if sold B)
Month 1 – no product sold. Month 2 sold A & B = $6
Month 1 – no product sold. Month 2 sold A = $3, no B = $0
Month 1 – no product sold. Month 2 sold B = $3, no A = $0
Month 1 and Month 2 - Did not sell product at all

rowefghi
1Month 1Month 1Month 2Month 2Payment Formula
2Product AProduct BProduct AProduct B
34258$10
45052$8
50522$8
60035$6
70030$3
80002$3
90000$0

<tbody>
</tbody>



















Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Put this in I3 and copy down.

=IF(E3>0,5,IF(G3>0,3,0))+IF(F3>0,5,IF(H3>0,3,0))

Thank you so much. It worked.

Let me see if I understand the logic. The true condition for month one Product A returns a 5. The false condition looks at month 2 and if it's true then returns a $3. If both are false, then returns a $0. It's so easy... once somebody else does it! Ha, Ha
 
Upvote 0

Forum statistics

Threads
1,213,501
Messages
6,114,010
Members
448,543
Latest member
MartinLarkin

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