Reconcile Materials by Item and Task Number in Excel
Question details
Compare planned and actual material quantities using both item and task numbers.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The same material item can appear under multiple tasks, and exported planned and actual data need to be reconciled.
- Observed behavior
- Matching only the item number can return a shipment quantity for the wrong task.
Check that the planned sheet has item numbers in column B, task numbers in column C, and planned quantities in column D. On a sheet named Actuals, place task numbers in column A, item numbers in column B, and numeric actual quantities in column F.
Match both fields and compare quantities with COUNTIFS and SUMIFS
Use this formula to find an item-task combination and total its actual quantities, including multiple shipment rows.
On the planned sheet, select an empty result cell in row 2 and enter: =IF(COUNTIFS(Actuals!$B$2:$B$100,B2,Actuals!$A$2:$A$100,C2)=0,"Not Shipped",IF(D2=SUMIFS(Actuals!$F$2:$F$100,Actuals!$B$2:$B$100,B2,Actuals!$A$2:$A$100,C2),"Equal",D2-SUMIFS(Actuals!$F$2:$F$100,Actuals!$B$2:$B$100,B2,Actuals!$A$2:$A$100,C2)))
If the Actuals data extends beyond row 100, edit every Actuals range in the formula to cover the same full set of rows.
Drag the result cell's fill handle down the planned rows. "Not Shipped" means no matching actual record was found; "Equal" means quantities match. A positive number is the quantity still needed, while a negative number indicates an excess.

Reconcile item and task quantities in WPS Spreadsheets
Open your exported workbook in WPS Spreadsheets and use COUNTIFS and SUMIFS to compare each planned item-task pair with actual quantities.
- 1. Open the workbook: In WPS Spreadsheets, choose Open and select your exported Excel workbook.
- 2. Arrange the data: Put planned items, tasks, and quantities in columns B, C, and D. On a sheet named Actuals, put tasks in column A, items in column B, and actual quantities in column F.
- 3. Enter the comparison: Select an empty cell in row 2 of the planned sheet and enter the COUNTIFS and SUMIFS formula from the solution above.
- 4. Fill down: Drag the formula cell's fill handle down to compare the remaining planned rows.

Frequently Asked Questions
Why should I match both item and task numbers?
An item may be used for several tasks. Matching both fields ensures the actual quantity belongs to the same item-task combination as the planned row.
What happens if an item has multiple actual shipment rows?
The SUMIFS formula adds all actual quantities for the matching item and task within the specified Actuals ranges.
How do I identify a partial supply?
If a matching actual record exists and the result is positive, that number is the planned quantity minus the total actual quantity. Check whether some quantity has arrived to distinguish a partial supply from a zero-quantity record.
Why does the formula show Not Shipped when an actual record exists?
Check that the Actuals sheet name and ranges are correct, and compare the item and task values for extra spaces or inconsistent formatting. Also extend all Actuals ranges if the record is below row 100.




