Plus and minus into 2 columns.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,413
Office Version
  1. 2007
Platform
  1. Windows
Hi everyone,

I'm looking for 2 formulas one that will calculate the minus in column C and the plus in column D.

In column A3 and going down, I've got numbers, starting in A3: 1 in A4:10 then 27, 5 36 39 15 8 and so on, what I need in cell D4 is the difference between those 2 numbers in A3 and A4, here it will be 9 in cell D4 then 17 in cell D5 then 22 in cell C6 and 31 in cell D7, and so on.

Would someone have and idea about those 2 formulas ? Thank you.

Serge.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi there, if I understand correctly, you want positive differences in column D and negative differences in column C. If so, here are the 2 formulas you need:
In C4 put =IF(A4< A3,A3-A4,"")
in D4 put =IF(A4>A3,A4-A3,"")
and then drag down the 2 columns.
 
Last edited by a moderator:
Upvote 0
I'm assuming that you also need to allow for two equal cells to occur so I have included that result in column C.
Each formula copied down.

Excel Workbook
ABCD
31
4109 
52717
6522
73631
8393
91524
1087
1180
12157
Plus Minus


@jmacleary
If you use a < followed immediately by a letter, you need to add a space between them or else the forum interprets that as HTML code & your formula gets chopped off. :)
I've fixed it for you.
 
Last edited:
Upvote 0
Thanks to both of you that's exactly what I was looking for, thank you Peter for the extra thought.
Serge.
 
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,263
Members
449,219
Latest member
daynle

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