Take value of first cell then subtract that from every cell for different materials

Kulo5856

New Member
Joined
May 11, 2020
Messages
36
Office Version
  1. 365
  2. 2013
  3. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
1589183730934.png

In this image i need to get the stock will reduce from the remaining stock value 28 then ( 28 - 5)= 23, (23-3)= 20, like this for various materials
Exact take value of first cell then subtract that from every cell and also i have to apply this formula for all materials.
Please help
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
So for each product the first remaining Stock is the starting point?
Maybe [L1]=IF(COUNTIF($C$2:$C2,C2)=1,I2,I2-SUMIF($C$2:$C2,C2,$G$2:$G2))
 
Upvote 0
Actually i need to maintain the stock ledger which be showing the reducing balance stock if i filter the part number.
1589185069277.png

like this is exactly working for a single part number but im unable to apply for all part.
 
Upvote 0
For this stock ledger (IN + OUTSTANDING BALANCE - OUT ) = STOCK, from that stock to reduce OUT quantity + if any material IN.
For that need to apply formula for all part numbers
 
Upvote 0
So for each product the first remaining Stock is the starting point?
Maybe [L1]=IF(COUNTIF($C$2:$C2,C2)=1,I2,I2-SUMIF($C$2:$C2,C2,$G$2:$G2))

Kindly give best answer for my stock ledger
(IN + OUTSTANDING BALANCE - OUT ) = STOCK, from that stock to reduce OUT quantity + if any material IN.
For that need to apply formula for all part numbers
1589186189687.png

1589186337927.png

Now i get stock of this part number
From that opening stock to reduce remaining out balance
 
Upvote 0
Hi, would you be able to provide some sample data using the XL2BB add-on please? Makes it more easier for us to help you (as we can't be expected to be typing in the data based on a screenshot to test our provided solution).
 
Upvote 0
Hi, would you be able to provide some sample data using the XL2BB add-on please? Makes it more easier for us to help you (as we can't be expected to be typing in the data based on a screenshot to test our provided solution).

Sample Stock Ledger Copy.xlsx
ABCDEFG
1###Posting DatePart NoDescriptionOB QtyUOMCount
2101/04/2020119-4151Screw Special (57-4910)10Nos28
3201/04/202093-4264Bedknife-Low Cut.50Nos56
4301/04/202092-9218V belt5Nos19
5 
OB
Cell Formulas
RangeFormula
G2:G4G2=SUM(INDEX(E:E+'GRN SRN'!I:I-OUTWARD!G:G,MATCH(OUTWARD!C:C,'GRN SRN'!C:C,0),))
D2:D5D2=IFERROR(VLOOKUP(C:C,Dump!B:C,2,0),"")
Cells with Data Validation
CellAllowCriteria
C2:C5List=Dump!$B$2:$B$600


Sample Stock Ledger Copy.xlsx
ABCDEGHIJK
1###Posting DatePart NoDescriptionCustomer / Vendor NameOut QtyUOMRemaining StockSerial NoRemarks
2102/05/2020119-4151Screw Special (57-4910)XXXXX2Nos28
3204/05/202093-4264Bedknife-Low Cut.XXXXX3Nos56
4304/05/202092-9218V beltXXXXX1Nos19
5402/05/2020119-4151Screw Special (57-4910)XXXXX5Nos28
6504/05/202093-4264Bedknife-Low Cut.XXXXX3Nos56
7602/05/2020119-4151Screw Special (57-4910)XXXXX3Nos28
8704/05/202093-4264Bedknife-Low Cut.XXXXX3Nos56
9802/05/2020119-4151Screw Special (57-4910)XXXXX1Nos28
10904/05/202093-4264Bedknife-Low Cut.XXXXX3Nos56
111004/05/202092-9218V beltXXXXX1Nos19
OUTWARD
Cell Formulas
RangeFormula
D2:D11D2=IFERROR(VLOOKUP(C:C,Dump!B:C,2,0),"")
I2:I11I2=INDEX(OB!G:G,MATCH(OUTWARD!C:C,OB!C:C,0),)
Cells with Data Validation
CellAllowCriteria
C2:C11List=Dump!$B$2:$B$600


Sample Stock Ledger Copy.xlsx
ABCDEFGHIJ
1###Posting DatePart NoDescriptionSender / Supplier NameDocument NoGRN NoSRN NoIn QtyUOM
2125/04/2020119-4151Screw Special (57-4910)XXXXXXXXXXXXXX20Nos
3225/04/202093-4264Bedknife-Low Cut.XXXXXXXXXXXXXX9Nos
4325/04/202092-9218V beltXXXXXXXXXXXXXX15Nos
5403/05/202093-4264Bedknife-Low Cut.XXXXXXXXXXXXXX1Nos
6525/04/202093-4264Bedknife-Low Cut.XXXXXXXXXXXXXX9Nos
7625/04/202092-9218V beltXXXXXXXXXXXXXX15Nos
8703/05/202093-4264Bedknife-Low Cut.XXXXXXXXXXXXXX1Nos
9825/04/202093-4264Bedknife-Low Cut.XXXXXXXXXXXXXX9Nos
10925/04/202093-4264Bedknife-Low Cut.XXXXXXXXXXXXXX9Nos
111025/04/202092-9218V beltXXXXXXXXXXXXXX15Nos
121103/05/202093-4264Bedknife-Low Cut.XXXXXXXXXXXXXX1Nos
GRN SRN
Cell Formulas
RangeFormula
D2:D12D2=IFERROR(VLOOKUP(C:C,Dump!B:C,2,0),"")
Cells with Data Validation
CellAllowCriteria
C2:C12List=Dump!$B$2:$B$600
 
Last edited by a moderator:
Upvote 0
Thanks for the data, that's more chance for you getting a useful answer. I'll have a look later when I have some time.
 
Upvote 0
Thanks for the data, that's more chance for you getting a useful answer. I'll have a look later when I have some time.

Thanks and awaiting for your answer, please take a time and complete the formula for my stock ledger
do the needfull..
 
Upvote 0
Hi, I did had a closer look at it, but I got lost in the data and the array formulae and gave up. I kind of expected others to jump in too.
I'll try again now, but can't promise anything.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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