DisFormula to calculate discount amount base on the value and percentages.

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
3.000 - 5.000 ............ %10
5.000 - 10.000 .......... %15
10.000 - 20.000 ........ %20
20.000 - 100.000 ......... %25
100.000 and more ....... %30

<colgroup><col></colgroup><tbody>
</tbody>

Good Day,
I have values all the way down in one column.
Is it possible to put formula on next column which will give the results if the values reaches in the limits of given table.
Sample:
Any value in the column if 4.000, next column value will be 400
Or any value in the column if 25.000, next column value will be 6.250

Many Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
asyamonique, Good morning.

Suppose:

A1 --> VALUE

B1 --> FORMULA -->

=A1 * LOOKUP(A1, {0,3,5,10,20,100}*1000, {0,0.1,0.15,0.2,0.25,0.3})

Please, tell us if it worked as you want.

I hope it helps.
 
Upvote 0
3.000 - 5.000 ............ %10this table is named mytable
5.000 - 10.000 .......... %1500
10.000 - 20.000 ........ %20300010
20.000 - 100.000 ......... %25500015
100.000 and more ....... %301000020
2000025
10000030
Good Day,999999930
I have values all the way down in one column.
Is it possible to put formula on next column which will give the results if the values reaches in the limits of given table.
Sample:
Any value in the column if 4.000, next column value will be 400
Or any value in the column if 25.000, next column value will be 6.250
col F
row 1620000#####
4000400
70001050
110002200
190003800
210005250
7700019250
9900024750
10500031500
777777233333.1
###
=F16*VLOOKUP(F16,mytable,2)/100

<colgroup><col><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0
Excel 2010
ABCDEFGH
1NumbersResultsBinPercentagePercentage Matched
2£2,468.00£0.0030000.10
3£2,769.00£0.0050000.150
4£3,334.00£333.40100000.20.1
5£4,997.00£499.70200000.250.1
6£5,077.00£761.551000000.30.15
7£9,976.00£1,496.400.15
8£10,338.00£2,067.600.2
9£19,835.00£3,967.000.2
10£20,055.00£5,013.750.25
11£99,886.00£24,971.500.25
12£100,113.00£30,033.900.3

<tbody>
</tbody>



Array Formulas
CellFormula
B2:B12{=IFERROR(LOOKUP($A$2:$A$12,$E$2:$E$6,$F$2:$F$6),0)*$A$2:$A12}
H2:H12{=IFERROR(LOOKUP(A2:$A$12,$E$2:$E$6,$F$2:$F$6),0)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


The [Percentage Matched] column is unnecessary - I just added it so you could see the Array Results being used and then multiplied by column A.

Note: Array Formula - requires the range to be selected, then CTRL+SHIFT+ENTER to enter.
 
Upvote 0
-6,000900
-3,000300
-4,000400
16,0000
-23,0005,750
12,0000

<tbody>
</tbody>


Many Thanks Marcilio and others,
Is there any way if only the value is negative the percentage will appear if positive it will remain zero?
Thanks again.
 
Last edited:
Upvote 0
-6,000900
-3,000300
-4,000400
16,0000
-23,0005,750
12,0000

<tbody>
</tbody>


Many Thanks Marcilio and others,
Is there any way if only the value is negative the percentage will appear if positive it will remain zero?
Thanks again.

Try this:

Formula01 - in G16 and copy down: =LOOKUP(F16,myTable)*F16

Formula02 - in G28 and copy down: =LOOKUP(ABS(F28),myTable)*(F28<0)*ABS(F28)

EFGHIJ
14
15DataFormula01myTable
162000000%
174000400300010%
1870001050500015%
191100022001000020%
201900038002000025%
2121000525010000030%
227700019250
239900024750
2410500031500
25777777233333,1
26
27DataFormula02
28-6000900
29-3000300
30-4000400
31160000
32-230005750
33120000
*************************************

<tbody>
</tbody>

Markmzz
 
Upvote 0
-6,000900
-3,000300
-4,000400
16,0000
-23,0005,750
12,0000

<tbody>
</tbody>


Many Thanks Marcilio and others,
Is there any way if only the value is negative the percentage will appear if positive it will remain zero?
Thanks again.


Excel 2010
ABCDEF
1NumbersResultsBinPercentage
2£2,468.00£0.0030000.1
3-£2,769.00£0.0050000.15
4£3,334.00£0.00100000.2
5-£4,997.00£499.70200000.25
6£5,077.00£0.001000000.3
7-£9,976.00£1,496.40
8£10,338.00£0.00
9-£19,835.00£3,967.00
10£20,055.00£0.00
11-£99,886.00£24,971.50
12£100,113.00£0.00

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
B2:B12{=IF(SIGN($A$2:$A$12)=-1,IFERROR(LOOKUP(ABS($A$2:$A$12),$E$2:$E$6,$F$2:$F$6),0)*ABS($A$2:$A12),0)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
asyamonique, Good morning.
Suppose:

A1 --> VALUE

B1 --> NEW FORMULA -->

=IF(A1="", "", LOOKUP(ABS(A1), {0,3,5,10,20,100}*1000, {0,0.1,0.15,0.2,0.25,0.3}) * (A1<0) * (ABS(A1)))

Please, tell us if it's working as you need.

I hope it helps.
 
Upvote 0

Forum statistics

Threads
1,215,743
Messages
6,126,609
Members
449,321
Latest member
syzer

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