cost of goods sold on FIFO inventory

mark692

Active Member
Joined
Feb 27, 2015
Messages
308
Office Version
  1. 2016
Platform
  1. Windows
<b>Excel 2013/2016</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th><th>L</th><th>M</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: center;border-left: 1px solid black;;">Item Out</td><td style="text-align: center;;"></td><td style="text-align: center;border-right: 1px solid black;;"></td><td style="text-align: center;border-left: 1px solid black;;">Item In</td><td style="text-align: center;;"></td><td style="text-align: center;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style="text-align: center;;">Date</td><td style="text-align: center;border-bottom: 1px solid black;;">Item</td><td style="text-align: center;;">Out</td><td style="text-align: center;;">Cost Of sales</td><td style="text-align: center;;">Selling Price</td><td style="text-align: center;;">In</td><td style="text-align: center;;">Unit cost</td><td style="text-align: center;;">amount</td><td style="text-align: center;;">No. of Sold</td><td style="text-align: center;;">COGS</td><td style="text-align: center;;">Remaining Inventory</td><td style="text-align: center;;">Stock On Hand</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style="text-align: right;;">23-Dec</td><td style="border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;;">Ariel Passion w/ Downy</td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;">10</td><td style="text-align: right;;"> 20.00 </td><td style="text-align: right;border-right: 1px solid black;;"> 200.00 </td><td style="text-align: right;border-left: 1px solid black;;">3</td><td style="text-align: right;;"> 60.00 </td><td style="text-align: right;;">140</td><td style="text-align: right;;">7</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style="text-align: right;;">23-Dec</td><td style="border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;;">Ariel Passion w/ Downy</td><td style="text-align: right;border-bottom: 1px solid black;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;">2</td><td style="text-align: right;;"> 25.00 </td><td style="text-align: right;border-right: 1px solid black;;"> 50.00 </td><td style="text-align: right;border-left: 1px solid black;;">0</td><td style="text-align: right;;"> - </td><td style="text-align: right;;">50</td><td style="text-align: right;;">2</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">5</td><td style="text-align: right;;">25-Dec</td><td style="border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;;">Ariel Passion w/ Downy</td><td style="text-align: right;border-top: 1px solid black;border-bottom: 1px solid black;border-left: 1px solid black;background-color: #DDEBF7;;">1</td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;background-color: #DDEBF7;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">6</td><td style="text-align: right;;">26-Dec</td><td style="border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;;">Ariel Passion w/ Downy</td><td style="text-align: right;border-top: 1px solid black;border-left: 1px solid black;;">2</td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">7</td><td style="text-align: right;;"></td><td style="text-align: right;border-top: 1px solid black;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">8</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">9</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">10</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">11</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">12</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">13</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">14</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">15</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">16</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">17</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">18</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">19</td><td style="text-align: right;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;background-color: #FFFF00;;"></td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="text-align: right;border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;border-right: 1px solid black;;"></td><td style="border-left: 1px solid black;;"></td><td style="text-align: right;;"> - </td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">20</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:7.2em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Inventory</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I3</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F3,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I2,$B$2:B2,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J3</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K3</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L3</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I4</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F4,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I3,$B$2:B3,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J4</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K4</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L4</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I5</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F5,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I4,$B$2:B4,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J5</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K5</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L5</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I6</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F6,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I5,$B$2:B5,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J6</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K6</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L6</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I7</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F7,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I6,$B$2:B6,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J7</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K7</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L7</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I8</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F8,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I7,$B$2:B7,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J8</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K8</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L8</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I9</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F9,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I8,$B$2:B8,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J9</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K9</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L9</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I10</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F10,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I9,$B$2:B9,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J10</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K10</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L10</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I11</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F11,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I10,$B$2:B10,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J11</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K11</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L11</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I12</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F12,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I11,$B$2:B11,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J12</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K12</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L12</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I13</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F13,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I12,$B$2:B12,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J13</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K13</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L13</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I14</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F14,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I13,$B$2:B13,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J14</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K14</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L14</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I15</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F15,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I14,$B$2:B14,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J15</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K15</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L15</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I16</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F16,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I15,$B$2:B15,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J16</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K16</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L16</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I17</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F17,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I16,$B$2:B16,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J17</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K17</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L17</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I18</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F18,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I17,$B$2:B17,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J18</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K18</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L18</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">I19</th><td style="text-align:left">=IF(<font color="Blue">[@In]="","",MIN(<font color="Red">F19,(<font color="Green">SUMIFS(<font color="Purple">[Out],[Item],[@Item]</font>)</font>)-SUMIFS(<font color="Green">$I$2:I18,$B$2:B18,[@Item]</font>)+SUMIFS(<font color="Green">Table5[Out],Table5[Item],[@Item]</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">J19</th><td style="text-align:left">=IFERROR(<font color="Blue">[@[Unit cost]]*[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">K19</th><td style="text-align:left">=[@[Stock On Hand]]*[@[Unit cost]]</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">L19</th><td style="text-align:left">=IFERROR(<font color="Blue">[@In]-[@[No. of Sold]],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G3</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G4</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G5</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G6</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G7</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G8</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G9</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G10</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G11</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G12</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G13</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G14</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G15</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G16</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G17</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G18</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G19</th><td style="text-align:left">=IFERROR(<font color="Blue">[@amount]/[@In],0</font>)</td></tr></tbody></table></td></tr></table><br />


hello guys can you help me to get the formula of column D? column D is where the cost of sold item will apear in FIFO method
 
Last edited:

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

dnorm

Board Regular
Joined
Dec 28, 2017
Messages
96
Office Version
  1. 365
Platform
  1. Windows
I think clarification on "Cost of Sales" is needed. Populate E with selling price, if your CoS is the commission (just guessing here) then D would equal =SUM(E-G)*C
 

Watch MrExcel Video

Forum statistics

Threads
1,130,217
Messages
5,640,939
Members
417,180
Latest member
nomans2325

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
Top