Calculation Issues

Excel 365 Formula to Find the Date a Cumulative Total Reaches 100

Elise WilliamsElise Williams Nov 12, 2026 868 views

Question details

The user needs to return the first date on which accumulated values from a selected start date reach or exceed 100.

Product
WPS Spreadsheets or Microsoft Excel 365
Device & OS
not provided
Scenario
The source data contains Date and Value columns, and the calculation should begin at a specified start date.
Observed behavior
The desired result is the first date whose running total is at least 100.
Before you start

Place the source records in a table with Date and Value columns, and make sure the dates are sorted from earliest to latest. Confirm that DateInput contains a date found in Table1[Date].

Solution 1Recommended

Use a dynamic-array formula to return the first date at or above 100

Use this solution when your spreadsheet supports LET, DROP, SCAN, XMATCH, and XLOOKUP and your source data is stored in Table1.

The formula removes records before DateInput, calculates a running total with SCAN, and uses XLOOKUP to return the first date where the cumulative value reaches or exceeds 100. The match mode 1 searches for an exact match or the next larger cumulative value.

1
Create the source table

Select the Date and Value columns, choose Insert > Table, and name the table Table1. Ensure the table headers are exactly Date and Value.

2
Enter the starting date

Enter the starting date in a cell such as C1 and define or reference it as DateInput. The date must match one of the entries in Table1[Date].

3
Enter the cumulative-date formula

Select the result cell and enter: =LET(discard,XMATCH(DateInput,Table1[Date])-1,Values,DROP(Table1[Value],discard),Dates,DROP(Table1[Date],discard),Accumulate,LAMBDA(a,v,a+v),AccArray,SCAN(0,Values,Accumulate),XLOOKUP(100,AccArray,Dates,"Not reached",1))

4
Format and verify the result

Open Home > Number Format, select Date, and verify that the returned date is the first row after DateInput where the running total is 100 or greater.

If the target is not reached: The formula returns "Not reached" when the cumulative total never reaches 100. Replace 100 in the formula with another target value when needed.

Calculate the First Date a Running Total Reaches a Target in WPS Spreadsheets

WPS Spreadsheets can organize the records in an Excel-compatible table, calculate cumulative values with dynamic-array formulas, and return the first date that reaches or exceeds a target such as 100.

  1. 1. Open or create the workbook: Launch WPS Office, open the workbook in WPS Spreadsheets, and select the worksheet containing the Date and Value data.
  2. 2. Convert the data to a table: Select the data range, choose Insert > Table, and name the table Table1 with Date and Value headers.
  3. 3. Set the starting date: Enter the required start date in a cell such as C1 and use that cell as DateInput in the cumulative-total formula.
  4. 4. Calculate the threshold date: Select an empty result cell and enter the LET, DROP, SCAN, and XLOOKUP formula to return the first date when the running total reaches 100.
Dynamic-array formulas can calculate cumulative totals without manually maintaining every intermediate result.Works with Excel-compatible .xlsx workbooks and preserves familiar spreadsheet formulas.The table expands automatically when new Date and Value records are added.The returned date can be formatted with built-in date controls for clear reporting.
microsoft office alternative - wps office

Frequently Asked Questions

What does the formula return if the cumulative total never reaches 100?

It returns "Not reached" because that text is supplied as the XLOOKUP not-found result. You can replace it with another message or an empty string.

How do I change the target from 100 to another number?

Replace both occurrences of 100 in the formula's XLOOKUP section with the required target, such as 250.

Can I start the calculation from a date that is not the first record?

Yes. Set DateInput to a date in Table1[Date]. XMATCH and DROP remove earlier rows before SCAN calculates the running total.

Why might the formula return the wrong date?

Check that the Date and Value columns are aligned, dates are sorted in ascending order, DateInput exactly matches a table date, and values are numeric rather than text.