Subtracting Previous Cells?

ExcelChrisAcc

New Member
Joined
Sep 30, 2013
Messages
3
Let's say that my chart looks like this
___A____B
1|120___X
2|430___X
3|500___X
4|324___X
5|290___X

So how would I make it so that a column B computes this
B1 = (A4-A5)
B2 = (A3-A4)
B3 = (A2-A3)
B4 = (A1-A2)
I know this could be done manually, but I have a larger array of numbers which would make it impractical. Thank you very much for the help!
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try this - all you have to vary is the last cell of the COUNT function.

=INDIRECT("A"&COUNT($A1:$A$5)-1)-INDIRECT("A"&COUNT($A1:$A$5))

Rgds David
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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