How to find a max value from a list?

  • Thread starter Thread starter Ken Wright
  • Start date Start date
Hi Stefan!

You could put =MAX(YourRange) in a cell and that becomes your
variable. You could also name that cell by selecting it and typing a
name in the name box to the left of the formula bar (then press
enter). That then becomes the name of the variable.

Or you could used a defined formula.

Insert Name Define
Type a name such as MyMax
In refers to type (eg) =MAX(J1:J50)
OK

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
How do I find the max value from a list of numeric values and store that
value in a variable?

Regards
Stefan
 
Thanks a lot! It works fine. (Both do)

Stefan

Ken Wright said:
One way

m = Application.WorksheetFunction.Max(Range("A1:A30"))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

-------------------------------------------------------------------------- --
It's easier to beg forgiveness than ask permission :-)
-------------------------------------------------------------------------- --
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top