Hi:
I am trying to build a model that allows for sum of multiplication across two arrays with a column match in both locations. I have the basic formula working well as follows:
=SUMPRODUCT('Unit Sales by Location'!B3:K3,'Current Cost by Location'!B3:K3)
However, I need the item information in column A to be matched in BOTH worksheets such that if the order gets changed in either of the source worksheets, the formula will sum the arrays correctly. When I manipulate the formula as such:
=SUMPRODUCT(--('Unit Sales by Location'!$A$3:$A$18=A3),'Unit Sales by Location'!$B$3:$B$18,'Current Cost by Location'!$B$3:$B$18)
I am only matching column information.
I have edited this formula to:
=SUMPRODUCT(--('Unit Sales by Location'!$A$3:$A$18=A3),'Unit Sales by Location'!$B$3:$K$18,'Current Cost by Location'!$B$3:$K$18)
and get the dreaded #Value! Any ideas how I can get the desired result?
I am attaching the work in process. The main take-away is I need to be able to compare columns B and C on the "Current to Bid 1" Worksheet. I prefer a formula solution to vba, if possible.
Many thanks,
Kevin
Bookmarks