inventory values to update

mc136355

New Member
Joined
Mar 20, 2018
Messages
36
Hi I am trying to update values in an inventory sheet but if value has no change then i cannot create a formula to show the previous value. Any help would be appreciated. Hope this makes sense. thanks MC

cust1 has starting value of 100
cust2 has starting value of 200

Thanks
date
detailstype
customer
in
out
cust1
cust2
21/08/19
order
AAA
cust1
500
100
500
200
21/08/19
order
AAA
cust1
100
50
550
200
21/08/19
order
AAA
cust2
50
100
550
150
21/08/19
order
AAA
cust1
100
200
450
150

<tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Maybe...


A
B
C
D
E
F
G
H
I
J
K
1
date​
details​
type​
customer​
in​
out​
cust1​
cust2​
Customer​
Starting Value​
2
21/08/2019​
order​
AAA​
cust1​
500​
100​
500​
200​
cust1​
100​
3
21/08/2019​
order​
AAA​
cust1​
100​
50​
550​
200​
cust2​
200​
4
21/08/2019​
order​
AAA​
cust2​
50​
100​
550​
150​
5
21/08/2019​
order​
AAA​
cust1​
100​
200​
450​
150​
6

Formula in G2 copied to H2 and down
=VLOOKUP(G$1,$J:$K,2,0)+SUMIF($D$2:$D2,G$1,$E$2:$E2)-SUMIF($D$2:$D2,G$1,$F$2:$F2)

M.
 
Upvote 0
Hi MB thanks for the quick reply. Looks like this has done the trick and is working on both columns. Thanks for your time. MC
 
Upvote 0

Forum statistics

Threads
1,213,554
Messages
6,114,280
Members
448,562
Latest member
Flashbond

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