Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Or with a VBA function: Function ap(vI As Variant) As Variant Dim i As Long, j As Long, k As Long ReDim vR(1 To (vI.Rows.Count -1)* (vI.Columns.Count -1), _ 1 To 3) As Variant k = 1 For i = 2 To vI.Rows.Count For j = 2 To vI.Columns.Count vR(k, 1) = vI(i, 1) vR(k, 2) = vI(1, j) vR(k, 3) = vI(i, j) k = k + 1 Next j Next i ap = vR End Function Select a sufficient long range of rows (row count - 1 * column count - 1 of your input array) with 3 columns and array-enter =ap(A1:G13) if your input data is in A1:G13. Regards, Bernd |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem selecting a whole data matrix | Excel Programming | |||
Problem with a selection in a matrix-function | Excel Programming | |||
Excel problem with dynamic matrix with a name | Excel Programming | |||
Matrix Problem | Excel Discussion (Misc queries) | |||
vba problem lookup in a matrix | Excel Programming |