PC Review


Reply
Thread Tools Rate Thread

Determining Max value in a dynamic range

 
 
Cinco
Guest
Posts: n/a
 
      13th Jul 2009
I need to determine the maximum value in a dynamic range. The values
(pressures) are in Column S. The starting row# is in cell Q5 and the ending
row number is in cell R5. I do not know how to specify the column and
associated row # when the row # is contained in a cell. I tried the
following and similar variations:

=Max("S" &"Q5" : "S" &"R5")

Everything that I have tried so far results in an error message.

Is there an online tutorial for learning how to specify column/row
references when the column and/or row # is contained in a cell? Thanks for
any help and pointers on this request. I am trying to learn Excel by trial
and error and it is taking awhile. From tips and responses on this website,
I have figured out how to use dynamic ranges (Offset command) for charting
series, queries for an SQL database, and macros. I've made a lot of headway
in recent weeks but I am still stumbling, often, on what may be the simpler
To Do things. Thanks for listening.
 
Reply With Quote
 
 
 
 
ker_01
Guest
Posts: n/a
 
      14th Jul 2009
=Max(Indirect("S" & Q5 & ":S" & R5))
(untested, but should be close)

The "indirect" tells Excel to read several pieces of information all
together as a range reference.

HTH,
Keith

"Cinco" wrote:

> I need to determine the maximum value in a dynamic range. The values
> (pressures) are in Column S. The starting row# is in cell Q5 and the ending
> row number is in cell R5. I do not know how to specify the column and
> associated row # when the row # is contained in a cell. I tried the
> following and similar variations:
>
> =Max("S" &"Q5" : "S" &"R5")
>
> Everything that I have tried so far results in an error message.
>
> Is there an online tutorial for learning how to specify column/row
> references when the column and/or row # is contained in a cell? Thanks for
> any help and pointers on this request. I am trying to learn Excel by trial
> and error and it is taking awhile. From tips and responses on this website,
> I have figured out how to use dynamic ranges (Offset command) for charting
> series, queries for an SQL database, and macros. I've made a lot of headway
> in recent weeks but I am still stumbling, often, on what may be the simpler
> To Do things. Thanks for listening.

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      14th Jul 2009
VBA
MsgBox WorksheetFunction.Max(Range("S" & Range("Q5") & ":S" & Range("R5")))

Worksheetfunction
=MAX(INDIRECT("S" & Q5 & ":S" & R5))


If this post helps click Yes
---------------
Jacob Skaria


"Cinco" wrote:

> I need to determine the maximum value in a dynamic range. The values
> (pressures) are in Column S. The starting row# is in cell Q5 and the ending
> row number is in cell R5. I do not know how to specify the column and
> associated row # when the row # is contained in a cell. I tried the
> following and similar variations:
>
> =Max("S" &"Q5" : "S" &"R5")
>
> Everything that I have tried so far results in an error message.
>
> Is there an online tutorial for learning how to specify column/row
> references when the column and/or row # is contained in a cell? Thanks for
> any help and pointers on this request. I am trying to learn Excel by trial
> and error and it is taking awhile. From tips and responses on this website,
> I have figured out how to use dynamic ranges (Offset command) for charting
> series, queries for an SQL database, and macros. I've made a lot of headway
> in recent weeks but I am still stumbling, often, on what may be the simpler
> To Do things. Thanks for listening.

 
Reply With Quote
 
Cinco
Guest
Posts: n/a
 
      14th Jul 2009
Keith (Ker_01) and Jacob,

I used your Indirect example and it worked beautifully. I have now moved on
to another challenge. I will try to figure my new one out by myself, but
will return to this site with a question if I can't. Thanks for all the help
you folks provide. Your help has been the difference between my succeeding
and not on my latest project.
Jim

"Jacob Skaria" wrote:

> VBA
> MsgBox WorksheetFunction.Max(Range("S" & Range("Q5") & ":S" & Range("R5")))
>
> Worksheetfunction
> =MAX(INDIRECT("S" & Q5 & ":S" & R5))
>
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Cinco" wrote:
>
> > I need to determine the maximum value in a dynamic range. The values
> > (pressures) are in Column S. The starting row# is in cell Q5 and the ending
> > row number is in cell R5. I do not know how to specify the column and
> > associated row # when the row # is contained in a cell. I tried the
> > following and similar variations:
> >
> > =Max("S" &"Q5" : "S" &"R5")
> >
> > Everything that I have tried so far results in an error message.
> >
> > Is there an online tutorial for learning how to specify column/row
> > references when the column and/or row # is contained in a cell? Thanks for
> > any help and pointers on this request. I am trying to learn Excel by trial
> > and error and it is taking awhile. From tips and responses on this website,
> > I have figured out how to use dynamic ranges (Offset command) for charting
> > series, queries for an SQL database, and macros. I've made a lot of headway
> > in recent weeks but I am still stumbling, often, on what may be the simpler
> > To Do things. Thanks for listening.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
determining dynamic print area Pablo Microsoft Excel Programming 0 27th Feb 2008 04:40 PM
determining dynamic checkbox control's Checked value J Microsoft ASP .NET 1 18th Feb 2008 08:11 AM
dynamic range based on criteria, within a dynamic range, passed to a function rajansood@hotmail.com Microsoft Excel Programming 5 9th Oct 2007 10:13 PM
creating a dynamic range based on criteria, within a dynamic range, and passing it to a function rajansood@hotmail.com Microsoft Excel Programming 0 9th Oct 2007 05:22 PM
Determining whether dynamic array has been used =?Utf-8?B?TURX?= Microsoft Excel Programming 2 9th May 2006 02:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 AM.