I am working with a food inventory spreadsheet, and I need help coming up a function involving vlookup. I have a column entitled "food category" where each food is listed as "fruit", "vegetable",etc. then I have a column for the vendor price and a column for the units of food consumed per month. I want to calculate the cost of each "food category" per month. So, for instance, to calculate the "fruit" cost, I want excel to look in the food category column and check which items are fruits. For those that are, I want excel to multiply each fruit item's price times the amount consumed and then sum each fruit's cost. Can someone please help with the correct function?
Thanks in advance!
Thanks in advance!