Jul 14 2021 11:47 AM - edited Jul 20 2021 09:07 AM
Edit: I added a demo of the inventory workbook I'm trying to make
I'm creating an inventory workbook to keep track of supplies at work. The idea is that the supplies will be listed on their own inventory sheets (currently I have 4 sheets, as everything is sorted into their own categories) with current quantities, then there will be a main sheet that will act as an activity log. Any time someone wants an item, they'll go to the activity log, select that item from a drop down, then enter how many they want to remove or add. That amount will then be added or subtracted to the quantity listed on the inventory sheets.
I want to keep the inventory records as hands-off as possible to avoid inaccuracies with the counts. Ideally, anyone accessing the file will only have to input info on the activity log and inventory will update automatically.
I've figured out how to create a drop-down menu so someone can pick the supply they want. But I can't figure out how to set up the 'Quantity' cell. I don't want it to display inventory amounts. It should blank. It's just a cell for adding or subtracting. But I want it to detect the item that was selected from the menu, then when someone enters an amount (like -1 or +1), it automatically adds or subtracts that amount from the quantity listed in the inventory for that item.
If possible, it'd be great if the +/- cell on the activity log would change color based on whether you're removing or adding. Or, if the numbers would display as -1 or +1. I'm not fond of the accounting setting that puts parenthesis around numbers.
I was originally thinking of having a 'Remove" and "Add" column that would only subtract or only add the numbers entered in the respective column. But I couldn't figure out how to make that work either.
Any ideas you guys have would be much appreciated. Using Excel 2013. Thank you.
Jul 14 2021 12:38 PM
You're on the right track. Let me offer
The observation: this isn't all that different--conceptually--from the workbook I've created that tracks income and expenses. There are transactions that add cash (coming from different sources, different categories); there are transactions that subtract cash (coming from different sources, different categories).
Suggestion #1: have just a single inventory with all items included. A single database. Use columns (rather than creating separate sheets) to recognize what category a specific items falls into. This will enable you to seamlessly add new items/new categories without redesigning the whole database.
Suggestion #2: continue with your idea of a single sheet in which users enter the item and their action. For clarity with users, I'd recommend the idea that you said you couldn't make work--have a cell with a choice given to "Add item(s)" or "Withdraw" and an adjoining cell for quantity. Making it work is easy with a conditional formula (IF this THEN that ELSE that2)
The request: if you could post a copy of the workbook as you have it now, it would be a lot easier to make more specific suggestions/recommendations. And I'm sure there will be other tweaks that can be suggested and made. Just make sure there's no confidential or private info that shouldn't be made public. If necessary, create a replica with false data that still replicates the functionality you envision.
Jul 20 2021 07:49 AM
Jul 20 2021 10:53 AM
You wrote: "I'm not familiar with IF this THEN that ELSE formulas,"
which I find hard (impossible, actually) to believe, given the level of sophistication of the functions and formulas that are in your spreadsheet. You may not have seen it written out that way, but that is the nature of the very basic IF function. Here's a clip from https://exceljet.net/excel-functions/excel-if-function
Jul 20 2021 02:01 PM
OK -- here's a healthy start on a working inventory. You now have
I also converted the tables in both cases to official Excel Tables, which makes it possible for new rows to be added and accounted for in all the different relationships.
There are a few comments meant to help you see how to take this to the next level. Feel free to come back with questions. You will need the most recent version of Excel for the new data validation to work (It uses UNIQUE, a new dynamic array function). If that doesn't work, you can create the data validation the same way as you had it before.