 # Formula Help To calculate inventory

Hello!  I have an inventory sheet (sample attached) where I need to calculate the total cost of each category (ie. beer, wine, liquor).  The challenge is that for ease of taking inventory the sheet isn't set up where all beer is together, all wine is together, etc.  Instead, its by supplier.  So, I have a column where it take total count X price and gives me my inventory cost for each line item (ie. White Claw Berry, White Claw Mango, etc.)  Then I have a column that identifies the line item as beer, wine or liquor.

To get my total costs by category (beer, wine and liquor) I need to add up all beer line items, all wine line items etc.  I am doing this manually via inputting a formula each week... basically =sum(_)+sum()+Sum()... its very tedious.

I assume there is a way to put a formula in a cell and say add up all the wine, add up all the beer, etc. ??

Any help on how I can do this would be greatly appreciated. It will make the process so much easier for me.  When you look at the file you'll see what I'm wanting to do more easily.  Thanks!!!

4 Replies

# Re: Formula Help To calculate inventory

Hi @DZarc9820,

Try this ...

One of the problem is that in your description column (column I), things are not all spelled the same. For instance, "mix" and "mixes" or sometimes you have some trailing spaces after the word. Once you fix them all in accordance to what you see in cell J4 to N4 your math will work fine. (it has to be an exact match). I fixed a few but some are missing. Have fun!

# Re: Formula Help To calculate inventory

@Bennadeau  Thank you so much for your help!!! This will be so much easier than the way I have it currently set up!  You're awesome!

# Re: Formula Help To calculate inventory

You're welcome. And I found a spot where the word wine is not written, cell i251. That's why the sheet I sent doesn't balance by \$12.

# Re: Formula Help To calculate inventory

As variant you may use PivotTable on last two columns filtering the blank on category. That's only to refresh when source data is changed. 