Hi @desmond_lee
You may want to give us the column names instead of columns letters.
As I understand your questino, your query expression would need to first a substitute/concatenate, then use a select expression.
- First step, you may want to add a virtual column with these pieces of expression:
IF(D:D<>""
==> IF(ISNOTBLANK([ColumnD])
(((MATCH(G:G,G:G,0)))&"-"&(((MID(E:E,1,1))&(REGEXREPLACE(E:E,"[^[:digit:]]", "")))
==>
CONCATENATE(
[ColumnG],"-",MID([ColumnE],1,1),
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE([ColumnE],"1",""),"2",""),"3",""),and so on...)
) ) ) )
)
&"-"&F:F&"-"&G:G&"-"&H:H
==> CONCATENATE("-",[ColumnF],"-",[ColumnG],"-",[ColumnH])
a) Please note REGEX are currently not supported, hence the nested SUBSTITUTE to get rid of any number. The expression I provide assume you have only ONE figure in your column E. You may want to add your like here:
https://www.googlecloudcommunity.com/gc/Feature-Ideas/REGEX-expressions-and-an-optional-occurrence-parameter-for/idi-p/366052
b) Since you did not provide any context for your expression, I didn’t provide relevant information about the “MATCH” part, which I assume is an important component of your query.
- your Query expression:
FILTER("yourTableName",
ISNOTBLANK([ColumnD])
)
You may want to detail further, in plain text, the result you are expecting if you don’t have enough information here.
I encourage you to read these articles:
structure oriented articles:
https://help.appsheet.com/en/articles/919891-virtual-columns
expression-oriented articles:
https://help.appsheet.com/en/articles/2357341-substitute
https://help.appsheet.com/en/articles/2435440-mid
https://help.appsheet.com/en/articles/2347638-concatenate
https://help.appsheet.com/en/articles/2357308-filter
https://help.appsheet.com/en/articles/2357314-select
https://help.appsheet.com/en/articles/2357267-isnotblank