How to calculate movements between columns?

mylesco

New Member
Joined
Sep 16, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have a dataset where an amount can move forward any number of columns, backwards any number of columns, can be removed or added.

I want to find the balance only, of those that have moved forwards and backwards, disregarding those who have been added or removed. For example in row f below that although a 100 balance was added to column 4, I only want the balance of the 300 that moved from column 3 to column 2.

Current Week:

ID1234
a100000
b050000
c30010000
d12002001000
e000100
f2003000100

Last Week:

ID1234
a000100
b500000
c30001000
d12000100200
e100000
f20003000

For some reason the second table just doesn't want to work so here is a picture:

enter image description here

List of Movements are below:​

a: Pulled forward from 4 -> 1: 100
b: Pushed from 1 -> 2: 500
c: Pulled: 100
d: Pulled: 200
e: Pushed: 100
f: Pulled: 300



Output​

This is what I would expect the output to look like in the end:
Pulled: 700
Pushed: 600




Thank you in advance and anymore question let me know!
 

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.

Forum statistics

Threads
1,215,239
Messages
6,123,818
Members
449,127
Latest member
Cyko

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