Hello,
I’m trying to write a formula that accomplishes the following:
Sum any quantity in named range EstQuantity that matches items in named range Raceway based on named range EstDescription and meets the criteria I set forth in EstSortCode
Raceway is a defined set of data – around 350 rows. This will never change.
Estxxx will change with every estimate I create. Named ranges were created for every column on the Estimate tab. I want to compare items in the EstDescription that match the items in Raceway and sum the quantity (EstQuantity)
In the above table, I want to add the quantity of row 2 and row 7 because they meet the correct sort code and description. Row 3 meets all criteria except sort code, so I don't want that summed. Rows 4, 5, 6 and 8 description does not match anything in the named range Raceway, found on another sheet.
For total hours, I used this formula and it seems to be working great =SUM(SUMIFS(EstTotalHours,,EstSortCode,{1000,4000,5000,8000})). So now I am looking to pick out specific pieces of this formula based on EstDescription matching Raceway and summing corresponding quantity.
Thank you,
Rob
I’m trying to write a formula that accomplishes the following:
Sum any quantity in named range EstQuantity that matches items in named range Raceway based on named range EstDescription and meets the criteria I set forth in EstSortCode
Raceway is a defined set of data – around 350 rows. This will never change.
Estxxx will change with every estimate I create. Named ranges were created for every column on the Estimate tab. I want to compare items in the EstDescription that match the items in Raceway and sum the quantity (EstQuantity)
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Sort Code | Description | Quantity | Total Hours | ||
2 | 1000 | 3/4" CONDUIT - EMT | 1378 | 10 | ||
3 | 2000 | 3/4" CONDUIT - EMT | 1378 | 10 | ||
4 | 1000 | 1/2" CONN SS STL - EMT | 92 | 2 | ||
5 | 1000 | 3/4" CONN SS STL - EMT | 94 | 2 | ||
6 | 1000 | 1/2" COUPLING SS STL - EMT | 90 | 2 | ||
7 | 1000 | 1 1/2" CONDUIT - EMT | 20 | 0.5 | ||
8 | 1000 | 3/4" COUPLING SS STL - EMT | 126 | 2.25 | ||
Sheet1 |
In the above table, I want to add the quantity of row 2 and row 7 because they meet the correct sort code and description. Row 3 meets all criteria except sort code, so I don't want that summed. Rows 4, 5, 6 and 8 description does not match anything in the named range Raceway, found on another sheet.
For total hours, I used this formula and it seems to be working great =SUM(SUMIFS(EstTotalHours,,EstSortCode,{1000,4000,5000,8000})). So now I am looking to pick out specific pieces of this formula based on EstDescription matching Raceway and summing corresponding quantity.
Thank you,
Rob