Split expresssion

Hi

I would like to extract the first part after splitting the sentence by using a SPLIT - function

How define the "extract" function?

Solved Solved
0 7 178
1 ACCEPTED SOLUTION

Try

INDEX(
  SPLIT(
    [The column],
    ": "
  ),
  2
)

View solution in original post

7 REPLIES 7

Tell us the string, we will tell you the expression

Hi

Actually I have a comments table that is connected to Order table by

"REF_ROWS("Comments", "Comment ID")

I need to find some values from the ORDER - table to see them in Comments Table

That is my goal

Or have a look at the help documentation, the split() function is pretty easy to use

 

appsheet_rebrand_logo.pngSPLIT()
 List from text

Update to say have a look at index() as well once you have done the split. INDEX() | AppSheet Help Center 

It is really easy, though I need to the the 2nd part I get after SPLITting it: 

4dfb4ea3: 1056

the last four digits represetn an invoice number, I need them along with two more fields from the parent table, to get them in a child table

 

As long as the invoice number has only four digits it is Ok to get the number by applying LEFT - expression. Though it is not OK in the long run as when the invoice number exceeds 4 digits I willl have to change formula itself

 

Try

INDEX(
  SPLIT(
    [The column],
    ": "
  ),
  2
)

Thanks a lot !!!

It workks

Top Labels in this Space