Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If
Sub test1() Dim arr arr = Range("a1:c3") arr1 = Application.Index(arr, 0, 1) arr2 = Application.Index(arr, 0, 2) arr_result = ArrayAdd(arr1, arr2, False) End Sub The looping is built in to the function. Alan Beban Peter Bernadyne wrote: By the way, is it possible to perform an operation on 2 vectors such as arr1 and arr2 in this example? For instance, would it be possible to create: arr_result = arr1 - arr2 consisting of the differences between each individual element of arr1 & arr2 all in one fell swoop or do you have to loop through such a thing? Any advice much welcomed. -Pete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
INDEX & MATCH find first column value in an array? | Excel Worksheet Functions | |||
How to "return" the array element number in VBA | Excel Discussion (Misc queries) | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
VBA array - find largest element | Excel Programming |