How to Convert a Text Cell Address into a Usable Range in Excel
Question details
The user needs to convert a dynamically generated cell address (in text format, such as 'BB2') into a functional mathematical cell range (like 'BB2:BB800') for evaluation inside functions like COUNTIFS.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Building dynamic formulas where functions like ADDRESS or CONCATENATE are used to construct reference points, resulting in a text string rather than an actual cell reference.
- Observed behavior
- Excel treats the generated output as a simple text string. Formulas like COUNTIFS fail or return errors because they require a valid range reference rather than plain text.
Identify the exact function or cell that is generating your text address (such as ADDRESS or CONCATENATE) so it can be nested inside the conversion formula.
Use the INDIRECT Function to Convert Text to a Reference
The INDIRECT function evaluates a text string and translates it into a valid, usable Excel cell reference.
When using functions like ADDRESS, Excel returns a text string (e.g., "BB2"). Wrapping this text in the INDIRECT function forces Excel to interpret it as a mathematical range, allowing it to be seamlessly fed into array formulas or statistical functions like COUNTIFS.
Identify the function generating your text string. For example, your current formula might look like: =ADDRESS(2,MATCH(A16,2:2,0),4,1) which outputs the text 'BB2'.
Use the ampersand (&) operator to attach the end of your range to the dynamic starting point. For example: =ADDRESS(2,MATCH(A16,2:2,0),4,1) & ":BB800" produces the text string 'BB2:BB800'.
Enclose the constructed text string inside the INDIRECT function to convert it into a live range. The syntax becomes: =INDIRECT(ADDRESS(2,MATCH(A16,2:2,0),4,1) & ":BB800").
Place the newly created INDIRECT reference into your main function, such as COUNTIFS. The final formula will look like: =COUNTIFS(INDIRECT(ADDRESS(2,MATCH(A16,2:2,0),4,1) & ":BB800"), "YourCriteria").

Easily Handle Dynamic Formula Ranges in WPS Spreadsheet
WPS Spreadsheet fully supports advanced reference functions like INDIRECT, ADDRESS, and MATCH, allowing you to convert text addresses into functional ranges seamlessly. It handles complex worksheets efficiently without slowing down.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the document containing your dynamic text references.
- 2. Input the INDIRECT function: Select the target cell, type `=INDIRECT(`, and select the cell containing your text address, or nest your ADDRESS function directly inside.
- 3. Complete your formula: Wrap the INDIRECT function inside your main formula (like COUNTIFS or SUMIFS) to utilize the newly converted range.
- 4. Execute and calculate: Press Enter. WPS Spreadsheet instantly calculates the complex reference and returns the accurate output.

Frequently Asked Questions
Why does my COUNTIFS formula return an error when using ADDRESS?
The ADDRESS function returns a literal text string (e.g., 'BB2'), not an actual cell reference. COUNTIFS requires a valid mathematical range. You must wrap the ADDRESS function inside the INDIRECT function to convert that text string into a usable reference.
Can I convert a text address into a full column range like BB:BB?
Yes, you can construct a full column reference by concatenating the column letters and wrapping them in INDIRECT, such as =INDIRECT("BB:BB"). However, using bounded ranges like BB2:BB800 is highly recommended to prevent performance drops.
Will using the INDIRECT function slow down my spreadsheet?
INDIRECT is a volatile function, meaning it recalculates every time any change is made to the workbook. While highly useful for dynamic references, excessive use of volatile functions can slow down large spreadsheets. Limiting your ranges (bounding them rather than selecting entire columns) helps minimize this impact.




