Forum Discussion

Keka001's avatar
Keka001
Copper Contributor
Mar 06, 2024

Excel formula help please

It needs to be done as in the screenshot, I have already tried, but all attempts were unsuccessful and to no avail   {1:SHORTANSWER:=}   Help me please  
  • Patrick2788's avatar
    Mar 06, 2024

    Keka001 

    Try this Lambda which is designed to handle arrays:

    'ShortAnswer
    =LAMBDA(array,LET(
        AddText, LAMBDA(each_string,
            LET(
                answer, "{1:SHORTANSWER:=",
                split, TEXTSPLIT(each_string, " ", CHAR(10)),
                strings, MAP(split, LAMBDA(e, answer & e & "} ")),
                CONCAT(strings)
            )
        ),
        BYROW(array, AddText)
    ))

      

Resources