Macro to decrease inventory as sales come in

boundtobe

New Member
Joined
Aug 4, 2011
Messages
1
Hi everyone,

I'm not very knowledgeable about how macros work so I was wondering if any of you knew how to do this.

The firm I am employed by has an e-commerce store which I run. Unfortunately the e-commerce software we use is a bit lacking in the reports function, so I set up a customized spreadsheet to track sales and shipping margins. The spreadsheet is set up to track orders for every invoice. It looks like

Item 30000001 30000002

Widget 1 1 2

Widget 2 0 3

I also have an inventory spreadsheet set up with the items in rows and their quantities, costs, etc. in the columns.

What I would like is a macro that subtracts the quantity sold from the remaining stock as described in the inventory spreadsheet. The issue is that some of our items are bundles that include items that are sold separately, some of which being shirts of different sizes. I need a way to account for the bundle sales in the inventory spreadsheet as well.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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