My current formula for "RODS AVAILABLE" is =IFERROR(G2-SUMIF(E$2:E2,E2,D$2:D2),"").
I have the table sorted exactly how I want to print it with the "Line" sorted first, followed by the "Run Date" in order. However, my formula for "RODS AVAILABLE" isn't correct by the Run Date needed. The "RODS AVAILABLE" function calculates by the line order instead of by the Run Date. How do I calculate "RODS AVAILABLE" by the Run Date, while still keeping the "Line" in the below order?
I am aware I can sort my table by Run Date and get the RODS AVAILABLE formula to calculate correctly, but I need my lines grouped together like the example below. Thank you for any help you can offer
A B C D E F G
[TABLE="width: 906"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]Line[/TD]
[TD="align: center"]Run Date[/TD]
[TD="align: center"]SEQ[/TD]
[TD="align: center"]ORDER AMT[/TD]
[TD="align: center"]ROD[/TD]
[TD="align: center"]RODS AVAILABLE[/TD]
[TD="align: center"]ROD INVENTORY[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/21[/TD]
[TD="align: center"] 30[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]2700[/TD]
[TD="align: center"]3200[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/22[/TD]
[TD="align: center"] 50[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]1300[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/23[/TD]
[TD="align: center"] 55[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]700[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/24[/TD]
[TD="align: center"] 60[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/21[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]-300[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/22[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]2200[/TD]
[TD="align: center"]3200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/23[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]1700[/TD]
[TD="align: center"]3200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/24[/TD]
[TD="align: center"]75[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]800[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/21[/TD]
[TD="align: center"]40[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/22[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]-800[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/23[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]-200[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/24[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]1200[/TD]
[TD="align: center"]3200[/TD]
[/TR]
</tbody>[/TABLE]
I have the table sorted exactly how I want to print it with the "Line" sorted first, followed by the "Run Date" in order. However, my formula for "RODS AVAILABLE" isn't correct by the Run Date needed. The "RODS AVAILABLE" function calculates by the line order instead of by the Run Date. How do I calculate "RODS AVAILABLE" by the Run Date, while still keeping the "Line" in the below order?
I am aware I can sort my table by Run Date and get the RODS AVAILABLE formula to calculate correctly, but I need my lines grouped together like the example below. Thank you for any help you can offer
A B C D E F G
[TABLE="width: 906"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]Line[/TD]
[TD="align: center"]Run Date[/TD]
[TD="align: center"]SEQ[/TD]
[TD="align: center"]ORDER AMT[/TD]
[TD="align: center"]ROD[/TD]
[TD="align: center"]RODS AVAILABLE[/TD]
[TD="align: center"]ROD INVENTORY[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/21[/TD]
[TD="align: center"] 30[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]2700[/TD]
[TD="align: center"]3200[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/22[/TD]
[TD="align: center"] 50[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]1300[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/23[/TD]
[TD="align: center"] 55[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]700[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1/24[/TD]
[TD="align: center"] 60[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/21[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]-300[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/22[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]2200[/TD]
[TD="align: center"]3200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/23[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]1700[/TD]
[TD="align: center"]3200[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]1/24[/TD]
[TD="align: center"]75[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]800[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/21[/TD]
[TD="align: center"]40[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/22[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A10000[/TD]
[TD="align: center"]-800[/TD]
[TD="align: center"]1200[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/23[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A08000[/TD]
[TD="align: center"]-200[/TD]
[TD="align: center"]1800[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]1/24[/TD]
[TD="align: center"]45[/TD]
[TD="align: center"]500[/TD]
[TD="align: center"]1166H62A07250[/TD]
[TD="align: center"]1200[/TD]
[TD="align: center"]3200[/TD]
[/TR]
</tbody>[/TABLE]