Forum Discussion

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    anupambit1797 

    It's a bit of slog to get through this because the data arrangement is not ideal so I must make the data whole with arrays. Even then things may not be perfect.

     

    Output1:

    =LET(
        bwcs, "BandwidthCombinationSet:",
        band, SCAN("", Table1[Column1], LAMBDA(a, v, IF(LEFT(v, 16) = "Band Combination", v, a))),
        sets, IF(LEFT(Table1[Column1], 24) = bwcs, TEXTAFTER(Table1[Column1], bwcs), ""),
        rptfilter, sets <> "",
        result, GROUPBY(band, sets, ARRAYTOTEXT, , 0, , rptfilter),
        result
    )

    Output 2:

    =LET(
        bwcs, "BandwidthCombinationSet:",
        filldown, LAMBDA(a, v, IF(v = "", a, v)),
        band, SCAN("", Table1[Column1], LAMBDA(a, v, IF(LEFT(v, 16) = "Band Combination", v, a))),
        sets, IF(LEFT(Table1[Column1], 24) = bwcs, TEXTAFTER(Table1[Column1], "'"), ""),
        sets_filled, SCAN("", sets, filldown),
        rptfilter, sets_filled <> "",
        result, PIVOTBY(band, sets_filled, sets_filled, COUNTA, , , , , , rptfilter),
        result
    )
    • anupambit1797's avatar
      anupambit1797
      Iron Contributor

      Thanks Patrick2788 ,if we use anyother function will it somehow help to reduce the formula, for the Output-1? for example, IFS B=3 then pick 1st 3 from Column "I", and so on 

      Br,

      Anupam

       

Resources