REGEX.EXTRACT - The range … can’t be used as a single value.
Good day!
- I have never before used REGEX.EXTRACT.
- I am unfamiliar with Apple/Numbers wildcard strings (regular expressions).
I want to retrieve an array of only the populated cells in a column of numeric values from a separate table - to be displayed using ROW()-1 to step through the array.
Using the named column “L 4” results in an error: REGEX.EXTRACT couldn’t find a match for the regular expression “\d+”.
REGEX.EXTRACT(L 4,"\d+",ROW()−1)
Specifying the range by reference inside column headers & footers results in an error: The range “Table 1::I5:I158” can’t be used as a single value.
REGEX.EXTRACT(Table 1::I5:I158,"\d+",ROW()−1)
To verify the validity of my regular expression string against my data, I tried using the MATCH() function with REGEX().
Using the named column “L 4” as the range, MATCH() returned the column heading (1).
MATCH(REGEX("\d+"),L 4,0)
Specifying the data range by reference, MATCH() retrieved the index number of the first populated data cell (29, a valid result!)
MATCH(REGEX("\d+"),Table 1::I5:I158,0)
Please advise?
Thank you much!
iPad Pro, iPadOS 18