Excel WRAPROWS function

Cuts a long list into rows of the same size. In Spanish Excel it is called AJUSTARFILAS.

Syntax

English Excel

=WRAPROWS(vector, wrap_count, [pad_with])

Spanish Excel (Mexico)

=AJUSTARFILAS(vector, recuento_de_ajuste, [rellenar_con])

Spanish Excel (Spain, Latin America)

=AJUSTARFILAS(vector; recuento_de_ajuste; [rellenar_con])

ArgumentWhat it is
vectorA row or column of values.
wrap_countHow many values per row.
pad_withoptionalWhat to put in the last row’s gaps; if omitted, #N/A.

Example

TOCOL puts every value of a range into a single column; with 1 as the second argument it skips blank cells. WRAPROWS(list, n) does the opposite: it cuts a list into rows of n values.

=WRAPROWS(F2#,2)

Common mistake

Excel 365 only. Use "" as padding so the last row does not show #N/A. WRAPCOLS does the same in columns.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice WRAPROWS

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

TOCOL and WRAPROWS: reshaping lists

TOCOL puts every value of a range into a single column; with 1 as the second argument it skips blank cells. WRAPROWS(list, n) does the opposite: it cuts a list into rows of n values.

Step 1/2

In F2, make a single column with everyone on the shifts, with no gaps.

F2
ABCDEFGHIJ
1ShiftMondayTuesdayWednesdayPeoplePairs
2MorningAnaLuis
3AfternoonMartaPedro
4NightSofíaIván
5
6
7
8

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What is WRAPROWS called in Spanish?
In Spanish Excel it is AJUSTARFILAS. The formula =WRAPROWS(F2#,2) is written =AJUSTARFILAS(F2#;2) (or with commas in Mexico).
Why does WRAPROWS use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common WRAPROWS mistake?
Excel 365 only. Use "" as padding so the last row does not show #N/A. WRAPCOLS does the same in columns.