You can use INDEX() function, along with the ROW() and INT() functions to 'group' 3 rows at a time and map to the table row and MOD() (remainder of 3), function to map the column. See what you can do with them.
Skip,
Just traded in my old subtlety... for a NUANCE!
Set up a sheet to 'export' and then SaveAs a TEXT file.
Here's how you can do this using formulas and generealzing to work with and TABLE with on row of headings, starting in A1.
1) In Insert > Name > Define Names, define the HEADING range and the DATA range using rHEAD and rTABLE respecitvely:
[tt]
rHEAD =OFFSET(Sheet1!$A$1,,,1,COUNTA(Sheet1!$1$1))
rTABLE =OFFSET(Sheet1!$A$1,1,,COUNTA(Sheet1!$A$A)-1,COUNTA(Sheet1!$1$1))
[/tt]
2) Insert a sheet to hold the following 2 Named Range factors
[tt]
ColCnt =COLUMNS(rTable)
RowOff
[/tt]
RowOff is used in the formulas following.
Here are the formulas for the Repeating HEADINGS and DATA…
[tt] =INDEX(rHead,1,MOD(ROW()-1,ColCnt)+1) =INDEX(rTable,INT((ROW()-1-RowOff)/ColCnt)+1,MOD(ROW()-1-RowOff,ColCnt)+1)
[/tt]
Count the number of empty rows above your first row of formulas and enter in the Name Range cell RowOff
Skip,
Just traded in my old subtlety... for a NUANCE!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.