Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jay Jay is offline
external usenet poster
 
Posts: 671
Default How to reference to a column of data?

Hi,

I need to do some data analysis on a set of data, basically to perform the
MIN and MAX functions on a column of data, i.e.,
cell(F1) = MIN(D1:D100), cell(G1) = MAX(D1:D100),
cell(F2) = MIN(D101:200), cell(G2) = MAX(D100:200),
.......
cell(F30) = MIN(D3000:D3100), cell(G30) = MAX(D3000:3100)

Something like that.

I was wondering if I can reference these cells in a formula such as below:
MIN(D$(100*i+1):D$((100+1)*i)
for the i in 0,1,2, .... 30, where the i can be another column of data I can
easily fill in incremental data.

Thanks very much



--
Jay
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to reference to a column of data?

You can use a formula like
=MAX(INDIRECT("A1:A"&C1))

This will give you MAX of A1:A20 if C1 contains 20.

Basically build a string which evaluates to a range and pass it to INDIRECT
function and wrap a MAX around it...

"Jay" wrote:

Hi,

I need to do some data analysis on a set of data, basically to perform the
MIN and MAX functions on a column of data, i.e.,
cell(F1) = MIN(D1:D100), cell(G1) = MAX(D1:D100),
cell(F2) = MIN(D101:200), cell(G2) = MAX(D100:200),
.......
cell(F30) = MIN(D3000:D3100), cell(G30) = MAX(D3000:3100)

Something like that.

I was wondering if I can reference these cells in a formula such as below:
MIN(D$(100*i+1):D$((100+1)*i)
for the i in 0,1,2, .... 30, where the i can be another column of data I can
easily fill in incremental data.

Thanks very much



--
Jay

  #3   Report Post  
Posted to microsoft.public.excel.misc
Jay Jay is offline
external usenet poster
 
Posts: 671
Default How to reference to a column of data?

Thank you so much Sheeloo! That worked.

One more question for you. If I want both of the markers, the A1 and A20 be
indirect mapped to the values in C1 and D1 for instance, how would the
expression be like, = MAX(INDIRECT("A:A"&C1,D1)) ?

I'd really appreciate your help!!! Thanks again.

--
Jay


"Sheeloo" wrote:

You can use a formula like
=MAX(INDIRECT("A1:A"&C1))

This will give you MAX of A1:A20 if C1 contains 20.

Basically build a string which evaluates to a range and pass it to INDIRECT
function and wrap a MAX around it...

"Jay" wrote:

Hi,

I need to do some data analysis on a set of data, basically to perform the
MIN and MAX functions on a column of data, i.e.,
cell(F1) = MIN(D1:D100), cell(G1) = MAX(D1:D100),
cell(F2) = MIN(D101:200), cell(G2) = MAX(D100:200),
.......
cell(F30) = MIN(D3000:D3100), cell(G30) = MAX(D3000:3100)

Something like that.

I was wondering if I can reference these cells in a formula such as below:
MIN(D$(100*i+1):D$((100+1)*i)
for the i in 0,1,2, .... 30, where the i can be another column of data I can
easily fill in incremental data.

Thanks very much



--
Jay

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to reference to a column of data?

You are most welcome...

Use
=MAX(INDIRECT("A"&C1&":A"&D1))

The requirement is that the formula within INDIRECT() has to evaluate to the
range you want...

So "A"&C1&":A"&D1 you put all constants inside "" and append the cell
reference with &

"Jay" wrote:

Thank you so much Sheeloo! That worked.

One more question for you. If I want both of the markers, the A1 and A20 be
indirect mapped to the values in C1 and D1 for instance, how would the
expression be like, = MAX(INDIRECT("A:A"&C1,D1)) ?

I'd really appreciate your help!!! Thanks again.

--
Jay


"Sheeloo" wrote:

You can use a formula like
=MAX(INDIRECT("A1:A"&C1))

This will give you MAX of A1:A20 if C1 contains 20.

Basically build a string which evaluates to a range and pass it to INDIRECT
function and wrap a MAX around it...

"Jay" wrote:

Hi,

I need to do some data analysis on a set of data, basically to perform the
MIN and MAX functions on a column of data, i.e.,
cell(F1) = MIN(D1:D100), cell(G1) = MAX(D1:D100),
cell(F2) = MIN(D101:200), cell(G2) = MAX(D100:200),
.......
cell(F30) = MIN(D3000:D3100), cell(G30) = MAX(D3000:3100)

Something like that.

I was wondering if I can reference these cells in a formula such as below:
MIN(D$(100*i+1):D$((100+1)*i)
for the i in 0,1,2, .... 30, where the i can be another column of data I can
easily fill in incremental data.

Thanks very much



--
Jay

  #5   Report Post  
Posted to microsoft.public.excel.misc
Jay Jay is offline
external usenet poster
 
Posts: 671
Default How to reference to a column of data?

What can I say, wonderful! All worked!

Thank you!
--
Jay


"Sheeloo" wrote:

You are most welcome...

Use
=MAX(INDIRECT("A"&C1&":A"&D1))

The requirement is that the formula within INDIRECT() has to evaluate to the
range you want...

So "A"&C1&":A"&D1 you put all constants inside "" and append the cell
reference with &

"Jay" wrote:

Thank you so much Sheeloo! That worked.

One more question for you. If I want both of the markers, the A1 and A20 be
indirect mapped to the values in C1 and D1 for instance, how would the
expression be like, = MAX(INDIRECT("A:A"&C1,D1)) ?

I'd really appreciate your help!!! Thanks again.

--
Jay


"Sheeloo" wrote:

You can use a formula like
=MAX(INDIRECT("A1:A"&C1))

This will give you MAX of A1:A20 if C1 contains 20.

Basically build a string which evaluates to a range and pass it to INDIRECT
function and wrap a MAX around it...

"Jay" wrote:

Hi,

I need to do some data analysis on a set of data, basically to perform the
MIN and MAX functions on a column of data, i.e.,
cell(F1) = MIN(D1:D100), cell(G1) = MAX(D1:D100),
cell(F2) = MIN(D101:200), cell(G2) = MAX(D100:200),
.......
cell(F30) = MIN(D3000:D3100), cell(G30) = MAX(D3000:3100)

Something like that.

I was wondering if I can reference these cells in a formula such as below:
MIN(D$(100*i+1):D$((100+1)*i)
for the i in 0,1,2, .... 30, where the i can be another column of data I can
easily fill in incremental data.

Thanks very much



--
Jay

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
Creating reference numbers from column of data LucasD Excel Worksheet Functions 3 September 25th 08 03:23 PM
Numeric reference of column. Data Grab ? bigexcelfan Excel Discussion (Misc queries) 3 January 4th 06 11:26 PM
What is the cell data reference for 5th row and 7th column called [email protected] New Users to Excel 1 December 17th 05 01:52 AM
Row reference increment but preserve column reference Pwanda Excel Worksheet Functions 1 April 28th 05 01:12 PM
Macro to Reference Column Next to Current Reference dolphinv4 Excel Discussion (Misc queries) 2 April 11th 05 08:36 AM


All times are GMT +1. The time now is 11:03 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"