Function Problems

Use SUMIFS in Excel Only After a Payment Date Is Entered

Camila MilosovichCamila Milosovich Nov 12, 2026 870 views

Question details

Calculate the total amount for an Order ID only when a payment date has been entered, while showing a blank cell or a Not Paid message beforehand.

Use SUMIFS in Excel Only After a Payment Date Is Entered
Product
Microsoft Excel
Device & OS
not provided
Scenario
The worksheet has Order IDs in column A, payment dates in column B, matching transaction IDs in column H, and amounts in column J. The formula is entered in C2 and filled down.
Observed behavior
The result should remain blank or display Not Paid when the payment date is empty; once a date is entered, it should return the SUMIFS total for the matching Order ID.
Before you start

Confirm that column B contains real Excel dates rather than text and that the Order ID values in columns A and H use the same format. Enter the formula in C2, then fill it down for the remaining orders.

Solution 1Recommended

Return a blank until the payment date is entered

Use this formula when column C should stay empty until the order has a payment date in column B.

The IF function checks whether B2 is empty before Excel runs SUMIFS. When a date exists, SUMIFS adds the amounts in J3:J11 whose IDs in H3:H11 match the Order ID in A2.

1
Select the first result cell

Click cell C2, the first row where you want to display the order total.

2
Enter the conditional SUMIFS formula

Type or paste =IF(B2="","",SUMIFS($J$3:$J$11,$H$3:$H$11,A2)) and press Enter.

3
Fill the formula down

Select C2 and drag the fill handle down, or double-click the fill handle, to apply the formula to each Order ID row.

Return a blank until the payment date is entered
Expected result: If B2 is blank, C2 stays blank. If B2 contains a payment date, C2 returns the total of matching amounts from column J.
Calculate conditional order totals

Use Conditional SUMIFS Formulas in WPS Spreadsheets

WPS Spreadsheets supports IF and SUMIFS formulas, so you can show a payment status until a date is entered and automatically calculate the matching Order ID total afterward. Open the workbook in WPS Office, enter the formula in the first result row, and fill it down across your order list.

  1. 1. Open the workbook in WPS Spreadsheets: In WPS Office, choose Open and select your Excel workbook containing the order and payment data.
  2. 2. Select the first total cell: Click C2, or the first cell in your results column.
  3. 3. Enter the conditional formula: Enter =IF(B2="","",SUMIFS($J$3:$J$11,$H$3:$H$11,A2)) to leave unpaid rows blank, then press Enter.
  4. 4. Fill the formula down: Drag the fill handle from C2 down the results column to calculate each Order ID.
  5. 5. Save the completed workbook: Choose Menu > Save As and save in .xlsx format if you need to continue using the file in Microsoft Excel.
Use IF with SUMIFS to calculate totals only after payment dates are entered.Display a clear Not Paid status for unpaid orders.Open and edit Microsoft Excel .xlsx and .xls workbooks with formula compatibility.Use a familiar spreadsheet interface for entering formulas and filling them down.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the SUMIFS result appear before a payment date is entered?

A standalone SUMIFS formula does not check the payment date. Wrap it in IF, such as =IF(B2="","",SUMIFS($J$3:$J$11,$H$3:$H$11,A2)), so Excel first tests whether B2 is blank.

How can I show Not Paid instead of a blank cell?

Replace the second empty string in the IF formula with the status text: =IF(B2="","Not Paid",SUMIFS($J$3:$J$11,$H$3:$H$11,A2)). Enter it in C2 and fill down.

Why does SUMIFS return 0 after I enter a payment date?

Check that the Order ID in A2 exactly matches an ID in H3:H11 and that the values in J3:J11 are numeric. Extra spaces, text-versus-number ID formats, or text amounts can prevent a match.

Can I use this formula for more transaction rows?

Yes. Expand the fixed ranges to include all records, for example $J$3:$J$1000 and $H$3:$H$1000. Keep the dollar signs so the source ranges do not move when you fill the formula down.