Formula to calculate difference between values.

temiomadeli

New Member
Joined
Sep 9, 2015
Messages
10
Hi all,

I need a formula that will allow me to help calculate the difference between a value and the next value upwards. so for example as per the table below Megans quarterly billings are 12,458, i need a formula that will calculate the difference between this value and the nearest value up which is 20,000. I need to be able to drag the formula down for other names that follow. Please help

Billing Threshold
010000
1000020000
2000035000
35000 50000
50000
Consultants Quarterly billings
Megan 12,458
Cheryl 28,451
Alicia 54,851

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

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
i've added the 75000 to make kit works


Excel 2012
ABCDE
10ConsultantsQuarterly billings
210000Megan12,45820000
320000Cheryl28,45135000
435000Alicia54,85175000
550000
675000
Sheet1



Excel 2012
E
220000
Sheet1
Cell Formulas
RangeFormula
E2=INDEX($A$2:$A$6,MATCH(D2,$A$1:$A$6))
 
Upvote 0
i've added the 75000 to make kit works

Excel 2012
ABCDE
10ConsultantsQuarterly billings
210000Megan12,45820000
320000Cheryl28,45135000
435000Alicia54,85175000
550000
675000

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



Excel 2012
E
220000

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

Worksheet Formulas
CellFormula
E2=INDEX($A$2:$A$6,MATCH(D2,$A$1:$A$6))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

same again. Sorry but i will need it to subtract from the next value upwards so for example Megan's will be 20,000 - 12,458 = 7542
 
Upvote 0
Then simply edit to be

=LOOKUP(B8,$A$2:$B$6)-B8

Code:
[/FONT][/COLOR][TABLE="width: 195"]
<colgroup><col span="3"></colgroup><tbody>[TR]
[TD="colspan: 2"]Billing Threshold[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]10000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]10000[/TD]
[TD="align: right"]20000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]20000[/TD]
[TD="align: right"]35000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]35000[/TD]
[TD="align: right"]50000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]50000[/TD]
[TD="align: right"]60000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Consultants[/TD]
[TD="colspan: 2"]Quarterly billings[/TD]
[/TR]
[TR]
[TD]Megan[/TD]
[TD="align: right"]12,458[/TD]
[TD="align: right"]7,542[/TD]
[/TR]
[TR]
[TD]Cheryl[/TD]
[TD="align: right"]28,451[/TD]
[TD="align: right"]6,549[/TD]
[/TR]
[TR]
[TD]Alicia[/TD]
[TD="align: right"]54,851[/TD]
[TD="align: right"]5,149[/TD]
[/TR]
</tbody>[/TABLE]
[COLOR=#333333][FONT=Lucida Grande]
 
Upvote 0
i've added the 75000 to make kit works


Excel 2012
ABCDE
10ConsultantsQuarterly billings
210000Megan12,45820000
320000Cheryl28,45135000
435000Alicia54,85175000
550000
675000
Sheet1



Excel 2012
E
220000
Sheet1
Cell Formulas
RangeFormula
E2=INDEX($A$2:$A$6,MATCH(D2,$A$1:$A$6))

hey Alan how do you do this with the tables?

I find it very easy to read and think it would be easier when answering formula questions

thanks,

rich
 
Upvote 0

Forum statistics

Threads
1,215,727
Messages
6,126,515
Members
449,316
Latest member
sravya

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