Running total on expense sheet: Subtract and Transpose values?

mborschm

New Member
Joined
Feb 22, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I run craft workshops and have to purchase the supplies myself and am then reimbursed by the company. I want to set up a spreadsheet to keep track of my expenses and what I have already been reimbursed for. I often buy in bulk to save on costs.
What I'd like to be able to do is for Excel to recognise when I'm using stock I've already paid for.
So for example:

Workshop A:
ItemPrice (Total)UnitsPrice per unit$ reimbursed for$ owing
Yarn$2010$2$12$8

So after workshop A, I still have 4 balls of yarn left for the next workshop, totalling $8.

If I then do a second workshop using up the yarn I already have, how can I tell excel to reduce the money I'm owed? So the next row would show totals like this:
Workshop B:
ItemPrice (Total)UnitsPrice per unit$ reimbursed for$ owing
Yarn$0? (since I have already paid for it)4 (remaining from the original purchase)$2$20 (now reimbursed the full amount)$0

Is this very complicated? I imagine it would be something like =IF the name of the product is exactly the same to run a series of calculations but I can't figure out how to tell it to do what I want.

Thanks!!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi,

I think for your spreadsheet to be more "effective", you'll need to include other factors, and as you progress, there may be more items you'll want included, but this is a start:

Book3.xlsx
ABCDEFGHI
1Workshop A:
2ItemPrice (Total)Units PurchasedUnits on HandUnits TotalPrice per unitUnits Used$ reimbursed for$ owing
3Yarn$2010010$26$12$8
4
5Workshop B:
6ItemPrice (Total)UnitsPrice per unit$ reimbursed for$ owing
7Yarn$0044$24$8$0
Sheet1075
Cell Formulas
RangeFormula
B3,B7B3=C3*F3
E3,E7E3=C3+D3
H3,H7H3=F3*G3
I3I3=B3-H3
D7D7=E3-G3
I7I7=SUM(B3:B7)-SUM(H3:H7)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top