Forum Discussion
marysha
Mar 12, 2019Copper Contributor
Inventory formula
I sell items at craft fairs every year and I'm trying to create a formula in Excel to assist with tracking this that goes slightly beyond the basic subtraction. For example, if cell E2 is my inventory before the event, F2 is my inventory after the event, G2 is the number of inventory sold at the event. BUT if F2 is blank I want G2 to reflect 0. How do I set that formula up?
4 Replies
- SergeiBaklanDiamond Contributor
In G2 it could be
=NOT(ISBLANK(F2))*(E2-F2)
- maryshaCopper Contributor
- SergeiBaklanDiamond Contributor
That's a bit different logic behind. In your first screenshort Sold was in G2, now it is in H2 and not clear what G2 means