Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default How to calculate a Max / min in a matrix

Answer = Application.WorksheetFunction.Large(Matrix1, 1)

Hth,
Merjet
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Name Matrix Liz J[_2_] Excel Discussion (Misc queries) 2 October 22nd 08 03:52 AM
How can I transpose nXm matrix to mXn Matrix MIHir Excel Worksheet Functions 2 August 9th 08 11:44 AM
Matrix Help Gaffnr Excel Worksheet Functions 4 March 11th 08 09:08 AM
Using Macros to Calculate Matrix Algebra in Excel..... I'm STUMPED Still Learning Excel Programming 2 May 3rd 06 04:57 PM
How to get the value in a matrix? Jeppe[_2_] Excel Programming 4 October 26th 04 02:27 PM


All times are GMT +1. The time now is 05:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"