1 formula for 2 discount % and 3 countries

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
[TABLE="width: 500"]
<tbody>[TR]
[TD]Area
[/TD]
[TD]Price
[/TD]
[TD]Discount 1
[/TD]
[TD]Discount2
[/TD]
[TD]Net price
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]100
[/TD]
[TD]20.5
[/TD]
[TD]3.78
[/TD]
[TD]79.5
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]100
[/TD]
[TD]15.7
[/TD]
[TD]2.95
[/TD]
[TD]84.3
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]100
[/TD]
[TD]11.3
[/TD]
[TD]1.87
[/TD]
[TD]88.7
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD][/TD]
[TD]20.5%
[/TD]
[TD]4.75%
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD][/TD]
[TD]15.7%
[/TD]
[TD]3.5%
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD][/TD]
[TD]11.3%
[/TD]
[TD]2.105%
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Please help to make single formula in Net price column for example in E2.

IF A2 = A
Discount 1 = B2 X C6
Discount 2 = B2 - C2 X D6

IF A2 = B
Discount 1 = B2 X C7
Discount 2 = B2 - C2 X D7

IF A2 = C
Discount 1 = B2 X C8
Discount 2 = B2 - C2 X D8
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I don't understand what you are trying to do with Discount 2. Why is Discount 2 different in cell D2 to cell D6? Your Net price appears to be ignoring Discount 2 and just using Discount 1.
 
Upvote 0
OK so I have figured out that
Discount 2 = (B2-C2) X D6
Rather than
Discount 2 = B2 - C2 X D6

What do you want the Net price to be? Does it discount by Discount 1 and then by Discount 2? If so then surely it is just =B2-C2-D2
Or are you trying to remove the fields in C2 and D2 and just rely on the table for discounts. Either way it is pretty easy but just need to be clear what you are after.
 
Upvote 0
For the latter you could use this in cell E2 and copy down.
=($B2-$B2*VLOOKUP($A2,$A$6:$D$8,3,0))-(($B2-$B2*VLOOKUP($A2,$A$6:$D$8,3,0))*VLOOKUP($A2,$A$6:$D$8,4,0))
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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