Hi there,
I have a spreadsheet to track inventory locations.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Bags[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]Balance[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]20[/TD]
[TD]Quincy[/TD]
[TD]OL[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]5[/TD]
[TD]OL[/TD]
[TD][/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]Quincy[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If there is no entry in Bags (C6), leave Balance (F6) blank. Row 2 is just to show the beginning inventory for clarification.
If there is an entry in both the From (D3) and To (E3) columns, I want the Balance (F2) to stay the same --> (F3=F2)
If there is an entry in From (D4) only, I want it to subtract Bags (C4) from Balance (F3) --> (F3-C4)
If there is an entry in To (E5) only, I want it to add Bags (C5) to Balance (F4) --> (F4+C5) [* PROBLEM CHILD *]
Here's what I used before I realized I needed the last step of adding when the "To" column was filled in:
=IF(ISBLANK(C4),"",(IF(OR(D4="",E4=""),F3-C4,F3)))
I'm at a loss how to add this last step. What should I add, or is there a better formula to use here?
I have a spreadsheet to track inventory locations.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Bags[/TD]
[TD]From[/TD]
[TD]To[/TD]
[TD]Balance[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]20[/TD]
[TD]Quincy[/TD]
[TD]OL[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]5[/TD]
[TD]OL[/TD]
[TD][/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]Quincy[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If there is no entry in Bags (C6), leave Balance (F6) blank. Row 2 is just to show the beginning inventory for clarification.
If there is an entry in both the From (D3) and To (E3) columns, I want the Balance (F2) to stay the same --> (F3=F2)
If there is an entry in From (D4) only, I want it to subtract Bags (C4) from Balance (F3) --> (F3-C4)
If there is an entry in To (E5) only, I want it to add Bags (C5) to Balance (F4) --> (F4+C5) [* PROBLEM CHILD *]
Here's what I used before I realized I needed the last step of adding when the "To" column was filled in:
=IF(ISBLANK(C4),"",(IF(OR(D4="",E4=""),F3-C4,F3)))
I'm at a loss how to add this last step. What should I add, or is there a better formula to use here?