Bungkus array menjadi beberapa baris
=WRAPROWS(vector, wrap_count, [pad_with])
| Parameter | Deskripsi |
|---|---|
vector |
The array or range to wrap. |
wrap_count |
Max values in each row. |
pad_with |
[optional] Value to use for unfilled places. |
WRAPROWS outputs values "by row", working left to right, top to bottom. When wrap_count has been reached, WRAPROWS starts a new row. In the worksheet
=WRAPROWS(C2:J2,4)
Wrap_count represents the maximum number of values in each row. Once the count has been reached, WRAPROWS starts a new row. In the screen below, you c
=WRAPROWS(B3:B14,4)
The formula in D9 uses a wrap_count of 3:
=WRAPROWS(B3:B14,3)
If no value is supplied for pad_with, WRAPROWS will return an #N/A error after all values in the source array have been accounted for. You will see th
=WRAPROWS(B3:B12,4)
The input range contains only 10 cells, which is not evenly divisible by 4. As a result, the last 2 cells return #N/A. To override this behavior, prov
=WRAPROWS(B3:B12,4,"x")