Hi All,
I have a spreadsheet where I'm using vlookup to calculate the cost of a product for a fundraiser at my sons school.
Right now I'm using chained vlookups like this:
=SUM((C6)*(VLOOKUP(C$5,pricelist,2,FALSE)),(D6)*(VLOOKUP(D$5,pricelist,2,FALSE)),(E6)*(VLOOKUP(E$5,pricelist,2,FALSE)),(F6)*(VLOOKUP(F$5,pricelist,2,FALSE)),(G6)*(VLOOKUP(G$5,pricelist,2,FALSE)) etc.
I did this because I needed it to look up the price of the product in the price list and multiply it by the number of that product sold. Then I need it to do that for each cell on the row so that I have one cell on the row with the total for each row. Each column equals a different product and then each the quantity of each product is entered into the cell. Then it sums all the products on that line to give me a total.
Here's a pic of what I mean.
As you can see its not a great way of doing it and I can do it with all the products because Excel says the formula is too long.
How can I do this in a better way? Help?
Thanks!
Mike
I have a spreadsheet where I'm using vlookup to calculate the cost of a product for a fundraiser at my sons school.
Right now I'm using chained vlookups like this:
=SUM((C6)*(VLOOKUP(C$5,pricelist,2,FALSE)),(D6)*(VLOOKUP(D$5,pricelist,2,FALSE)),(E6)*(VLOOKUP(E$5,pricelist,2,FALSE)),(F6)*(VLOOKUP(F$5,pricelist,2,FALSE)),(G6)*(VLOOKUP(G$5,pricelist,2,FALSE)) etc.
I did this because I needed it to look up the price of the product in the price list and multiply it by the number of that product sold. Then I need it to do that for each cell on the row so that I have one cell on the row with the total for each row. Each column equals a different product and then each the quantity of each product is entered into the cell. Then it sums all the products on that line to give me a total.
Here's a pic of what I mean.
As you can see its not a great way of doing it and I can do it with all the products because Excel says the formula is too long.
How can I do this in a better way? Help?
Thanks!
Mike
Last edited: