Forum Discussion

anupambit1797's avatar
anupambit1797
Iron Contributor
Jan 05, 2026
Solved

Groupby or Filter function

Dear Experts,

                      Greetings!

I have a data like below(Column A~H) and I want to export it in the format on right side( Column J~W):-

Attached is the Worksheet.

 

Br,

Anupam

  • Maybe use TRANSPOSE instead:

    =TRANSPOSE(CHOOSECOLS( B3:H15, 1, 3, 5, 7))

     

7 Replies

  • Slightly more complicated

    = LET(
          pairs,  WRAPROWS(TOCOL(data), 2),
          values, DROP(pairs,,1),
          WRAPCOLS(values, 4)
      )

    It would also be possible to delete the table and work directly from the source data using GROUPBY along with the rather large array of statistical functions.

      • PeterBartholomew1's avatar
        PeterBartholomew1
        Silver Contributor

        Your question assumes the statistical analysis is complete and you simply need to reformat them.

        I was just pointing out the alternative option of performing the statistics in a manner that would output the results you require directly (depending upon the raw data format)

        = GROUPBY(group, value, HSTACK(AVERAGE, MEDIAN, MODE),,0)

         

  • m_tarler's avatar
    m_tarler
    Bronze Contributor

    Maybe use TRANSPOSE instead:

    =TRANSPOSE(CHOOSECOLS( B3:H15, 1, 3, 5, 7))

     

Resources