Share register maintained on FIFO basis

kssoin

New Member
Joined
Nov 28, 2012
Messages
1
I have made a worksheet based on another excel file which was prepared by a Thai gentleman.The file by this gentleman is FIFOComplete.xls. The other is my file. In my file FIFO does'nt work after the second entry for out is made.
The Data Table in this file FIFOComplete is in Range R5:Q15 which in my file in range Q5:R57.
This table is created by selecting the respective range and the select what-if analysis>Data table and the selecting only the column input as the total sales ie J3 or K3. In my file this does not work.
I have not been able to find the gremlin so to say.
Perhaps someone in this forum can help me.

I realize cannot post attachments. How can attachments be enabled?
FIFOComplete

FIFO Cost of Inventory Outward for a002
Inventory Inward and OutwardTotal Unit Sold :1,40,000From Date :01-10-2012Id :a002
Data Table
NumDateIdUnits
Inward
Unit
Cost
Units
Outward
Units
Balance
Unit SoldCost of
Goods Sold
NumDateUnits
Outward
Total
Unit Sold
11,80,000Cost of
Goods Sold
Unit
Cost
101-10-2012a00150,0001050,0000042-10-201240,00040,0004,80,0004,80,00012
201-10-2012a00240,0001240,00040,0004,80,000105-10-20121,00,0001,40,00011,80,0007,00,0007
301-10-2012a00120,00030,00000#NUM!01,40,00011,80,00000
402-10-2012a00240,000000#NUM!01,40,00011,80,00000
503-10-2012a00110,0001520,00020,00000#NUM!01,40,00011,80,00000
604-10-2012a0041,00,00051,00,00000#NUM!01,40,00011,80,00000
705-10-2012a0021,00,00071,00,0001,00,0007,00,000#NUM!01,40,00011,80,00000
805-10-2012a00470,00030,00000#NUM!01,40,00011,80,00000
905-10-2012a00350,0001050,00000#NUM!01,40,00011,80,00000
1005-10-2012a0021,00,000000#NUM!01,40,00011,80,00000
1107-10-2012a00170,0001090,00000Total1,40,000hide these 2 columns11,80,000
1207-10-2012a00180,00010,00000
1309-10-2012a00310,00040,00000
1410-10-2012a00320,00020,00000
1511-10-2012a00110,000000
1612-10-2012a0011,00,00051,00,00000
1713-10-2012a0011,00,000000
1814-10-2012a00120,00020,0000
19000
1,40,00011,80,000

<tbody>
</tbody>

kssoinSharesFIFO_Testing.xls

FIFO Cost of Shares Sold for HDFBAN
Total units Sold :90From Date :20-11-2009Share Key :HDFBAN
Data Table
NumDateShare IdShares BoughtPrice per shareShares OutwardShares balanceShares SoldCost of
Shares Sold
NumDateShares OutwardTotal
Shares Sold
132250.00Cost of
Shares Sold
Price per Share
123-12-2009ICSA250010.00250000.001601-06-20187575751322501322501763.333
210-01-2010ICSA550015.005000300000.001707-07-2018159016513225000
312-01-2016ICSA1000015.001300000.00#NUM!09025513225000
425-02-2017ICSA1000010.002300000.00#NUM!09034513225000
528-02-2017NTPC1450132.00145000.00#NUM!09043513225000
601-04-2017TATPOW179.00100.00#NUM!09052513225000
708-06-2017ICSA100001300000.00#NUM!09061513225000
809-06-2017BAJFI402050.004000.00#NUM!09070513225000
910-12-2017SYMLIM301250.003000.00#NUM!09079513225000
1015-12-2017NATPHA201855.002000.00#NUM!09088513225000
1119-01-2018BHAFOR100111.0510000.00#NUM!09097513225000
1225-02-2018HDFC1001750.0010000.00#NUM!090106513225000
1303-03-2018HDFBAN501500.00505075000.00#NUM!090115513225000
1431-03-2018HDFBAN251450.00752536250.00#NUM!090124513225000
1501-04-2018HDFBAN251400.001001521000.00#NUM!090133513225000
1601-06-2018HDFBAN752500.00#NUM!090142513225000
1707-07-2018HDFBAN151000.00#NUM!090151513225000
000.00#NUM!090160513225000
000.00#NUM!090169513225000
000.00#NUM!090178513225000
000.00#NUM!090187513225000
000.00#NUM!090196513225000
000.00#NUM!090205513225000
000.00#NUM!090214513225000
000.00#NUM!090223513225000
000.00#NUM!090232513225000
000.00#NUM!090241513225000
000.00#NUM!090250513225000
000.00#NUM!090259513225000
000.00#NUM!090268513225000
000.00#NUM!090277513225000
000.00#NUM!090286513225000
000.00#NUM!090295513225000
000.00#NUM!090304513225000
000.00#NUM!090313513225000
000.00#NUM!090322513225000
000.00#NUM!090331513225000
000.00#NUM!090340513225000
000.00#NUM!090349513225000
000.00#NUM!090358513225000
000.00#NUM!090367513225000
000.00#NUM!090376513225000
000.00#NUM!090385513225000
000.00#NUM!090394513225000
000.00#NUM!090403513225000
000.00#NUM!090412513225000
000.00#NUM!090421513225000
000.00#NUM!090430513225000
000.00#NUM!090439513225000
000.00#NUM!090448513225000
000.00#NUM!090457513225000
000.00#NUM!090466513225000
90132250.0090To be hidden

<tbody>
</tbody>


I have pasted the cells of both the worksheets.
Regards.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,869
Messages
6,122,012
Members
449,060
Latest member
LinusJE

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