I have a purchasing spreadsheet I am working on that compares pricing for multiple items from different vendors. Column B has a the item purchase quantity, Column D has the item unit pricing from a specific vendor, and Column O determines the lowest price value from all the vendor columns and multiplies by the purchase quantity in Column B. At the bottom of column D, I need a formula that will add up the items in Column O where the vendor in Column D had the lowest price.
I have got it to work using the sumproduct formula, but it only works if the quantity is 1. Here is what I have so far:
=SUMPRODUCT(--(D3:D27=$O3:$O27),O3:O27)
That adds up all the items in column O that are the same value as column D, but again they are only the same if the quantity is 1. Somehow I need to divide the total in column O by the quantity before seeing if it is equal to the vendor unit price in column D. ie. I need the formula to add up the items in Column O, where (Column O/Column B)=Column D
Any help on this is greatly appreciated
I have got it to work using the sumproduct formula, but it only works if the quantity is 1. Here is what I have so far:
=SUMPRODUCT(--(D3:D27=$O3:$O27),O3:O27)
That adds up all the items in column O that are the same value as column D, but again they are only the same if the quantity is 1. Somehow I need to divide the total in column O by the quantity before seeing if it is equal to the vendor unit price in column D. ie. I need the formula to add up the items in Column O, where (Column O/Column B)=Column D
Any help on this is greatly appreciated