Convert an Array Formula's Text Results into a Usable Format

前端 未结 5 1285
执念已碎
执念已碎 2020-12-04 01:36

When the results of an Array Formula are numbers, I find it generally easy to find an appropriate method to collapse the array into a single result. However when the results

5条回答
  •  忘掉有多难
    2020-12-04 02:11

    This is a VBA-free solution using Get&Transform in Excel 2016 or the Power Query Add-In for versions before:

    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        ExtractLast3Digits = Table.AddColumn(Source, "Value", each Text.End([ProductID],3)),
        ChangeToNumber = Table.TransformColumnTypes(ExtractLast3Digits,{{"Value", type number}}),
        FilterAbove400 = Table.SelectRows(ChangeToNumber, each [Value] > 400),
        Concatenate = Text.Combine(FilterAbove400[ProductName])
    in
        Concatenate
    

    You can perform all sorts of text manipulation on the “array-output” (Step “FilterAbove400”), in this example I’ve just concatenated without separators as I understood your request.

    It takes your input data that should be in table-form and named “Table1” in the 1st step (Source).

    Link to file with solution: https://www.dropbox.com/s/utsraj0bec5ewqk/SE_ConvertArrayFormulasTextResult.xlsx?dl=0

提交回复
热议问题