Function Problems

How to Increment Row Numbers Inside an Excel Formula String

Steve KSteve K Nov 11, 2026 869 views

Question details

The user needs a way to parse a text string containing cell references, preserve absolute reference markers, and automatically increment the row numbers.

How to Increment Row Numbers Inside an Excel Formula String
Product
Excel
Device & OS
not provided
Scenario
Modifying text strings that contain cell references so the row numbers within those text strings increase dynamically when filled down.
Observed behavior
The goal is to successfully extract row numbers from text strings, mathematically increment them, and reconstruct the string while preserving the original column and dollar-sign ($) structure.
Before you start

Ensure your spreadsheet application supports dynamic array functions such as TEXTSPLIT, TEXTAFTER, and TEXTJOIN, which are required for this advanced string manipulation.

Solution 1Recommended

Use TEXTJOIN and TEXTSPLIT to Increment Row Numbers

Combine dynamic array functions to split the reference string, isolate the row numbers, add to them mathematically, and rebuild the text string.

This method is ideal for spreadsheet versions that support modern text functions. It parses the string by common separators, finds the absolute reference marker ($), increments the numeric portion, and stitches it all back together.

1
Select the target cell

Click on the cell where you want the incremented string to appear (for example, cell A5).

2
Input the extraction and increment formula

Enter the following formula: =TEXTJOIN({":", ".", ","},,LEFT(TEXTSPLIT(A4,{":", ".", ","}),SEARCH("$",TEXTSPLIT(A4,{":", ".", ","})))&TEXTAFTER(TEXTSPLIT(A4,{":", ".", ","}),"$")+1)

3
Apply and fill down

Press Enter to execute the formula. Click the fill handle in the bottom right corner of the cell and drag it down to apply the incrementing logic to subsequent rows.

Use TEXTJOIN and TEXTSPLIT to Increment Row Numbers
Formula Requirements: This specific formula assumes your text string contains absolute references using the dollar sign ($) and separates ranges with colons, periods, or commas.

Handle Advanced Array Formulas Seamlessly with WPS Spreadsheet

WPS Spreadsheet offers robust support for complex data manipulation and array formulas. You can efficiently manage text strings, extract references, and perform advanced calculations using WPS Office's powerful built-in function library.

  1. 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open the .xlsx file containing the text strings you want to modify.
  2. 2. Enter your formula: Select the destination cell and input your string manipulation formula, leveraging WPS's built-in formula auto-complete.
  3. 3. Drag to increment: Use the drag-fill handle at the bottom-right of the cell to copy the formula down, automatically updating the row calculations.
Full compatibility with Microsoft Excel formulas and .xlsx file formats.Rich library of built-in text manipulation and array functions.Effortless string extraction and cell reference modifications.Free to use with comprehensive data analysis tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my formula return a #NAME? error?

A #NAME? error usually occurs if your spreadsheet software does not support modern array functions like TEXTSPLIT or TEXTAFTER. Check if you need to update your software version or use alternative legacy functions like MID, FIND, and LEFT.

How can I increment numbers in a string without absolute references?

If the string lacks dollar signs ($), you can modify the SEARCH function to look for letters or specific formatting separators instead, or use a combination of string manipulation functions to isolate the numeric part.

Can I increment columns instead of rows using this method?

Yes. You would need to adjust the formula to isolate the alphabetical column identifiers instead of the numeric row values, and use the CHAR and CODE functions to mathematically increment the letters.

Does this formula work for multiple ranges in the same string?

Yes, because TEXTSPLIT parses the string using multiple delimiters like colons (:) and commas (,), it can separate multiple cell references within the string, increment their row numbers individually, and rejoin them perfectly with TEXTJOIN.