Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to calculate a Max / min in a matrix
Hi !
I must do calculations on matrix in vba code. for the moment, i use loops (for i=x to y ... next i) to do sums and other calcultations but I'm pretty sure it have some function to simply do basic math functions on those matric in vba code (sum, prod, min/max, average). This is a Matrix sample : 1 5 10 1 6 11 0 7 15 In vba code I write : Dim Matrix1 as double Redim Matrix1(3, 3) How to simply calculate a min / max function in one given line or column ? -- olivier |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to calculate a Max / min in a matrix
Answer = Application.WorksheetFunction.Large(Matrix1, 1)
Hth, Merjet |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Name Matrix | Excel Discussion (Misc queries) | |||
How can I transpose nXm matrix to mXn Matrix | Excel Worksheet Functions | |||
Matrix Help | Excel Worksheet Functions | |||
Using Macros to Calculate Matrix Algebra in Excel..... I'm STUMPED | Excel Programming | |||
How to get the value in a matrix? | Excel Programming |