Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default calculate Min and Max Values of selection

Worksheets("Sheet2").Cells(row_num,col_num).Value = Minimum


--

HTH

RP
(remove nothere from the email address if mailing direct)


"bandy2000" wrote in message
...
Thanks for the hints. What I have done now is:
Set SelectedRange = Range(ActiveCell, ActiveCell.Offset(NumMeasPerPix - 1,

0))
Minimum = Application.WorksheetFunction.Min(SelectedRange)
MsgBox "Minimum= " & CStr(Minimum)

How can I make the Argument for Range (here "A1") in
Worksheets("Sheet2").Range("A1").VAlue = Minimum
depending to a variable so that I could for instance use a for loop and

make
the
cell where the value is written to depending to counting variable i ?

"Bob Phillips" wrote:

Msgbox Application.MAX(Range(ActiveCell,

ActiveCell.Offset(NumMeasPerPix -
1, 0)))

ertc.
to store in a different worksheet

Worksheets("Sheet2").Range("A1").VAlue = Application.MAX( ...

--

HTH

RP
(remove nothere from the email address if mailing direct)


"bandy2000" wrote in message
...
HI
I have a range selected as following:

Range(ActiveCell, ActiveCell.Offset(NumMeasPerPix - 1, 0)).Select

How can I do calculations with the data in that selection e.g. get the

Min
or Max Value or the Mean Value? Those are all available in Excel. How

can
I
make them available programatically?
Is it possible to store the result in a different worksheet? How?

Thanks






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
calculate values in an unlimited range of cells in a column WITHOUTalso calculating values that had previously been filtered AGAINST? yadang Excel Discussion (Misc queries) 2 October 1st 09 06:18 PM
Combo box selection will not calculate Perrysbox2 Excel Worksheet Functions 1 June 11th 09 09:21 PM
Combo box selection will not calculate Perrysbox2 Excel Discussion (Misc queries) 0 June 11th 09 07:12 PM
Calculate average based on user selection William Excel Discussion (Misc queries) 2 January 16th 07 06:16 PM
What first - sheet_change, calculate,selection, etc. Tom Rudski[_5_] Excel Programming 2 November 24th 04 02:27 AM


All times are GMT +1. The time now is 01:58 AM.

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

About Us

"It's about Microsoft Excel"