Welcome to the Board!
You can do what you want with a change event.
Assuming that the number is entered in C2 on sheet1 and removed from C2 on sheet 2, see how this is for a start:
<font face=Tahoma><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_Change(<SPAN style="color:#00007F">ByVal</SPAN> Target <SPAN style="color:#00007F">As</SPAN> Range)<br> <SPAN style="color:#007F00">' Code goes in the Worksheet specific module</SPAN><br> <SPAN style="color:#00007F">Dim</SPAN> rng <SPAN style="color:#00007F">As</SPAN> Range, BananaInventory<br> <SPAN style="color:#007F00">' Set Target Range, i.e. Range("A1, B2, C3"), or Range("A1:B3")</SPAN><br> <SPAN style="color:#007F00">' This is where the bananas are removed</SPAN><br> <SPAN style="color:#00007F">Set</SPAN> rng = Target.Parent.Range("C2")<br> <SPAN style="color:#007F00">' This is where you have the total # of Bananas</SPAN><br> <SPAN style="color:#00007F">Set</SPAN> BananaInventory = Sheets("Sheet2").Range("C2")<br> <SPAN style="color:#007F00">' Only look at single cell changes</SPAN><br> <SPAN style="color:#00007F">If</SPAN> Target.Count > 1 <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">Exit</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br> <SPAN style="color:#007F00">' Only look at that range</SPAN><br> <SPAN style="color:#00007F">If</SPAN> Intersect(Target, rng) <SPAN style="color:#00007F">Is</SPAN> <SPAN style="color:#00007F">Nothing</SPAN> <SPAN style="color:#00007F">Then</SPAN> <SPAN style="color:#00007F">Exit</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br> <SPAN style="color:#007F00">' Action if Condition(s) are met (Do your thing here...)</SPAN><br> <SPAN style="color:#007F00">' Remove the bananas entered on sheet 1 from the total</SPAN><br> BananaInventory.Value = BananaInventory.Value - Target.Value<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
Note that this is a very basic example and doesn't account for other items or negative values entered (but you can build models as complex as you want).
To give this a shot (on a test workbook), right-click the sheet tab, select View Code, and paste the above into the new window that opens on the right. You can then hit ALT+Q to exit back to Excel and give it a shot.
Hope that helps,