two step reference

wolfpok

New Member
Joined
Apr 30, 2002
Messages
2
Hi,

I have multiple named columns in a worksheet(a, b,c). I want to use data from either of these columns to create new data. Is there anyway I can put the name of the column I want to use in a cell and refer to the cell's content to identify the column i want to use? e.g i want to use data from column a, so I put some cell $C1 = a. And in a formula, I want to be able to get max(column name referred to in $C1).

i tried CELL, defined cells etc. Didnt work!

anybody know how to do this?

thx

dpk
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
G'day,

INDIRECT will do it (if I understand you correctly). So say you have "a" typed into C1:

=MAX(INDIRECT(C1&":"&C1))

Hope that helps,
Adam
 
Upvote 0
ahh,

didn't catch that you defined a range in column A with "a".

Evidently I need more caffeine.
Adam
 
Upvote 0
On 2002-05-01 10:37, Steve Hartman wrote:
=MAX(indirect($C1))

Steve,

That won't work when C1 just houses "A".

Better:

=MAX(INDIRECT(C1&":"&C1))

I admit the purpose such an indirect reference could possibly serve escapes me.

Aladin
 
Upvote 0
Aladin,
It should work since he said he had "named columns". I took that to mean a named range. If that assumption is incorrect, then you are quite right.
 
Upvote 0
indirect worked.

the purpose is to use data from a particular column, if i had best/worst/typical case parameters, i wanted to be able to decide based on a value in a cell (= bc/wc/tc), the parameter type i wanted to use.

thx.

dpk
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top