FIFO stock info using search functions and averaging data

JonnyHazell

New Member
Joined
Aug 29, 2013
Messages
11
Hi Guys,

I am currently using pivot tables to get our current cost of good prices for thousands of products via thousands of lines of data, so as you could imagine its very time consuming. I've been trying to come up with a way to automate it, but I'm coming up with blanks.

I'd like to be able to enter a customer name and product, and to use some excel magic to return me the average COG of the latest 1000 units purchased.

Here is a very basic example

CustomerProductInvoicedQtyAmount
SteveEggs02/08/2015525
SteveSausage02/08/2015848
SteveSausage02/07/2015630
SteveSausage02/06/2015555
PaulEggs02/08/2015525
PaulEggs02/07/2015523
Wanted
CustomerProduct
SteveSausage10585.8

<tbody>
</tbody>

So I'd like to enter Steve and Sausage, and for excel to return me the most recent average of the cost of 10 units.

Is this possible or just a dream I need to wake up from and get on the daily slog?

Thanks for any input!
Jonny
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,215,327
Messages
6,124,290
Members
449,149
Latest member
mwdbActuary

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