I am trying to create a column that calculates my WEEKLY profit and loss by matching individual items (pieces from many different purchased lots) sold that week with the total spent purchasing inventory in the same week. To clarify, I am NOT wanting to find the per lot profit.
I can’t figure out how to do an equation with a date range without manually entering in the dates for each week perpetually, so I created an automatically generated code for each week, which attaches the year with the week number (ex: "20181). I also made matching WEEK #s for the purchases. The idea was that I could use the lookup function to match the WEEK # of the item sold with the WEEK # of purchases for the same week, referencing the purchase price.
The problem is that I can’t figure out any way to connect these two without having to manually do it each week. I want it to be automatic. Help!