ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   table to single row (https://www.excelbanter.com/excel-worksheet-functions/446998-table-single-row.html)

nate hubert

table to single row
 
The following formula works well to convert a table of multiple dimensions (here four columns) to just one column (in the order i would like which is across the first row of data, starting again with the first value of the second row):

=OFFSET($A$1,MOD(ROWS($1:1)-1,4),INT((ROWS($1:1)-1)/4))

How can you use a similar function to return the table as one row instead of one column?

Spencer101

Quote:

Originally Posted by nate hubert (Post 1605111)
The following formula works well to convert a table of multiple dimensions (here four columns) to just one column (in the order i would like which is across the first row of data, starting again with the first value of the second row):

=OFFSET($A$1,MOD(ROWS($1:1)-1,4),INT((ROWS($1:1)-1)/4))

How can you use a similar function to return the table as one row instead of one column?

Hi,

Could you post an example workbook with a before and after so we can see exactly what you need?

Pete_UK[_8_]

12 columns by 8 rows to one row
 
I'd prefer to use INDEX to do this, as it is not volatile. Which cells
contain your data, and which row do you want the data to appear on
(from column A of that row?) ?

Pete

On Aug 31, 5:33*pm, nate hubert
wrote:
The following formula works well to convert a table of multiple
dimensions (here four columns) to just one column.

=OFFSET($A$1,MOD(ROWS($1:1)-1,4),INT((ROWS($1:1)-1)/4))

How can you use a similar function to return the table as one row
instead of one column?

Please?

--
nate hubert




All times are GMT +1. The time now is 02:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com