Logo

dev-resources.site

for different kinds of informations.

#123 — Convert One-Dimensional Array to Two-Dimensional Array

Published at
12/27/2024
Categories
programming
beginners
tutorial
productivity
Author
Judith-Excel-Sharing
#123 — Convert One-Dimensional Array to Two-Dimensional Array

Problem description & analysis:

Here below is a data table:

source table

Task: We want to convert the data to a 5-column & N-row table with a header, in the order of horizontal arrangement first and then vertical arrangement.

Solution:

To achieve this, use SPL XLL and enter the formula in cell B2:

=spl("=?1.conj().group((#-1)\5)",A1:A26)

The results are as follows:

result table

Subtract 1 from serial number # to get the difference, and divide the difference by 5 to get the quotient. Grouping by this quotient can put every 5 numbers in a group.

Download esProc Desktop for FREE and work smarter with your data using SPL XLL!! 🚀✨⬇️

✨SPL download address: esProc Desktop FREE Download

✨Plugin Installation Method: SPL XLL Installation and Configuration

✨References to other rich Excel operation cases: Desktop and Excel Data Processing Cases

✨YouTube FREE courses: SPL Programming

Featured ones: