Entering value from adjacent cell into Max arguement

  • Thread starter Thread starter Cameron
  • Start date Start date
C

Cameron

Hello,

I am trying to the MAX function such that it recgonizes
the value from an ajdacent field.

For example:

Cell A1: containes the info "J240" (using address
function).

cell A2: I want to have the fucntion =MAX(J1:(A1)) where
A1 is replaced by J240 and it finds the max value in
A1:J240.

Thanks,

Cameron
 
Hi Cameron,

You would use

=MAX(INDIRECT("A1:"&A2))

but be careful. If you use your example, J240, you will get a circular
reference as the range being MAXed includes the cel used to determine that
range.
 
-----Original Message-----
Hello,

I am trying to the MAX function such that it recgonizes
the value from an ajdacent field.

For example:

Cell A1: containes the info "J240" (using address
function).

cell A2: I want to have the fucntion =MAX(J1:(A1)) where
A1 is replaced by J240 and it finds the max value in
A1:J240.

Cameron

=MAX(J2:INDIRECT(a2))

Peteratherton
 

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