Have an MS Excel 2017 workbook with three worksheets; "Combined", "Widgets", and "Washers."
Each worksheet has four columns; AccountNo ItemNo Estimate_Iter1 Estimate_Iter2
Worksheet "Widgets" has data such as this;
AccountNo ItemNo Estimate
5002056 500010 $650,000
5002056 500060 $290,000
5002058 500010 $45,000
5002058 500060 $98,000
Worksheet "Washers" has data such as this;
AccountNo ItemNo Estimate
6002850 500010 $2,500,000
6002850 500060 $150,000
7001500 500010 $3,000,000
7001500 500060 $240,000
Worksheet "Combined" contains all of the account numbers and Item numbers from all of the worksheets.
Objective is to populate the column "Estimate" on the worksheet "Combined" - extracting the data from the appropriate worksheet.
Using the following formula, I am able to extract the data onto the "Combined" worksheet from the "Widgets" worksheet.
But, the latest formula does not work
Any insight as to a solution?
Each worksheet has four columns; AccountNo ItemNo Estimate_Iter1 Estimate_Iter2
Worksheet "Widgets" has data such as this;
AccountNo ItemNo Estimate
5002056 500010 $650,000
5002056 500060 $290,000
5002058 500010 $45,000
5002058 500060 $98,000
Worksheet "Washers" has data such as this;
AccountNo ItemNo Estimate
6002850 500010 $2,500,000
6002850 500060 $150,000
7001500 500010 $3,000,000
7001500 500060 $240,000
Worksheet "Combined" contains all of the account numbers and Item numbers from all of the worksheets.
Objective is to populate the column "Estimate" on the worksheet "Combined" - extracting the data from the appropriate worksheet.
Using the following formula, I am able to extract the data onto the "Combined" worksheet from the "Widgets" worksheet.
Code:
'=SUMPRODUCT((AccountNoWidgets=B3)*(ItemNoWidgets=C3)*(EstimateWidgets))
But, the latest formula does not work
Code:
=IFERROR(SUMPRODUCT((AccountNoWidgets=B7)*(ItemNoWidgets=C7)*(EstimateWidgets)),SUMPRODUCT((AccountNoWashers=B7)*(ItemNoWashers=C7)*(EstimateWashers)))
Any insight as to a solution?