how to maintain loss and profit in Excel