Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default function to retrieve array name

i have a spread sheet with array names in each cell

I have a working formula to retrieve the correct array name


The question
=VLOOKUP(U51,MFFC!$A$2:$M$11,2)

U51 is the cell for an age group (17)
the spread sheet MFFC has the age groups starting the row and the cells
contain array names.

curlup pushups run swim bike eliptical
17 curlpt17 curltl17 pupt17 putl17 runpt17 runtl17 swimpt17 swimtl17 bikept17 biketl17 elippt17 eliptl17

the problem is that once retrieved, i cannot get the function to use the
array name because it is deemed as just text and not recognized as a valid
array name.

this is the last step to automate my form and it is proving formidable. my
only other alternative is to cut and paste the formula from another matching
cell.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default function to retrieve array name

The below would reference the array...

=INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2,0))

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


"Monty" wrote:

i have a spread sheet with array names in each cell

I have a working formula to retrieve the correct array name


The question
=VLOOKUP(U51,MFFC!$A$2:$M$11,2)

U51 is the cell for an age group (17)
the spread sheet MFFC has the age groups starting the row and the cells
contain array names.

curlup pushups run swim bike eliptical
17 curlpt17 curltl17 pupt17 putl17 runpt17 runtl17 swimpt17 swimtl17 bikept17 biketl17 elippt17 eliptl17

the problem is that once retrieved, i cannot get the function to use the
array name because it is deemed as just text and not recognized as a valid
array name.

this is the last step to automate my form and it is proving formidable. my
only other alternative is to cut and paste the formula from another matching
cell.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default function to retrieve array name

How do you intend to use the array name? How is the array defined?

If the VLOOKUP returns a text string that represents a defined name this is
how you need to express it:

INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2))


--
Biff
Microsoft Excel MVP


"Monty" wrote in message
...
i have a spread sheet with array names in each cell

I have a working formula to retrieve the correct array name


The question
=VLOOKUP(U51,MFFC!$A$2:$M$11,2)

U51 is the cell for an age group (17)
the spread sheet MFFC has the age groups starting the row and the cells
contain array names.

curlup pushups run swim bike eliptical
17 curlpt17 curltl17 pupt17 putl17 runpt17 runtl17 swimpt17 swimtl17
bikept17 biketl17 elippt17 eliptl17

the problem is that once retrieved, i cannot get the function to use the
array name because it is deemed as just text and not recognized as a valid
array name.

this is the last step to automate my form and it is proving formidable. my
only other alternative is to cut and paste the formula from another
matching
cell.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default function to retrieve array name

=SUMIF(curlpt45,N52,curltl45)
this is the final formula but the array names need swapped out with the
value derived from =VLOOKUP(U51,MFFC!$A$2:$M$11,2) which should be the value
"curlpt45" because U51 contains the number 45

for example
=SUMIF(=VLOOKUP(U51,MFFC!$A$2:$M$11,2),N52,=VLOOKU P(U51,MFFC!$A$2:$M$11,2))

I have been manually typing in the curlpt45 into the formula. when the age
group changes in U column then the curlpt## has to change to match for the
formula to calculate the correct value from the SUMIF.

=INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2,0)) returned 100 and it should have
been curlpt45

"T. Valko" wrote:

How do you intend to use the array name? How is the array defined?

If the VLOOKUP returns a text string that represents a defined name this is
how you need to express it:

INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2))


--
Biff
Microsoft Excel MVP


"Monty" wrote in message
...
i have a spread sheet with array names in each cell

I have a working formula to retrieve the correct array name


The question
=VLOOKUP(U51,MFFC!$A$2:$M$11,2)

U51 is the cell for an age group (17)
the spread sheet MFFC has the age groups starting the row and the cells
contain array names.

curlup pushups run swim bike eliptical
17 curlpt17 curltl17 pupt17 putl17 runpt17 runtl17 swimpt17 swimtl17
bikept17 biketl17 elippt17 eliptl17

the problem is that once retrieved, i cannot get the function to use the
array name because it is deemed as just text and not recognized as a valid
array name.

this is the last step to automate my form and it is proving formidable. my
only other alternative is to cut and paste the formula from another
matching
cell.



.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default function to retrieve array name

=SUMIF(curlpt45,N52,curltl45)
this is the final formula but the array names need swapped out with the
value derived from =VLOOKUP(U51,MFFC!$A$2:$M$11,2) which should be the value
"curlpt45" because U51 contains the number 45

for example
=SUMIF(=VLOOKUP(U51,MFFC!$A$2:$M$11,2),N52,=VLOOKU P(U51,MFFC!$A$2:$M$11,2))

I have been manually typing in the curlpt45 into the formula. when the age
group changes in U column then the curlpt## has to change to match for the
formula to calculate the correct value from the SUMIF.

=INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2,0)) returned 100 and it should have
been curlpt45



"T. Valko" wrote:

How do you intend to use the array name? How is the array defined?

If the VLOOKUP returns a text string that represents a defined name this is
how you need to express it:

INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2))


--
Biff
Microsoft Excel MVP


"Monty" wrote in message
...
i have a spread sheet with array names in each cell

I have a working formula to retrieve the correct array name


The question
=VLOOKUP(U51,MFFC!$A$2:$M$11,2)

U51 is the cell for an age group (17)
the spread sheet MFFC has the age groups starting the row and the cells
contain array names.

curlup pushups run swim bike eliptical
17 curlpt17 curltl17 pupt17 putl17 runpt17 runtl17 swimpt17 swimtl17
bikept17 biketl17 elippt17 eliptl17

the problem is that once retrieved, i cannot get the function to use the
array name because it is deemed as just text and not recognized as a valid
array name.

this is the last step to automate my form and it is proving formidable. my
only other alternative is to cut and paste the formula from another
matching
cell.



.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default function to retrieve array name

Try it like this:

=SUMIF(INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2,0)), N52,curltl45)

Note however, this will not work if the named range curlpt45 is defined
using functions like OFFSET and INDEX.

--
Biff
Microsoft Excel MVP


"Monty" wrote in message
...
=SUMIF(curlpt45,N52,curltl45)
this is the final formula but the array names need swapped out with the
value derived from =VLOOKUP(U51,MFFC!$A$2:$M$11,2) which should be the
value
"curlpt45" because U51 contains the number 45

for example
=SUMIF(=VLOOKUP(U51,MFFC!$A$2:$M$11,2),N52,=VLOOKU P(U51,MFFC!$A$2:$M$11,2))

I have been manually typing in the curlpt45 into the formula. when the age
group changes in U column then the curlpt## has to change to match for the
formula to calculate the correct value from the SUMIF.

=INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2,0)) returned 100 and it should
have
been curlpt45



"T. Valko" wrote:

How do you intend to use the array name? How is the array defined?

If the VLOOKUP returns a text string that represents a defined name this
is
how you need to express it:

INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2))


--
Biff
Microsoft Excel MVP


"Monty" wrote in message
...
i have a spread sheet with array names in each cell

I have a working formula to retrieve the correct array name


The question
=VLOOKUP(U51,MFFC!$A$2:$M$11,2)

U51 is the cell for an age group (17)
the spread sheet MFFC has the age groups starting the row and the
cells
contain array names.

curlup pushups run swim bike eliptical
17 curlpt17 curltl17 pupt17 putl17 runpt17 runtl17 swimpt17 swimtl17
bikept17 biketl17 elippt17 eliptl17

the problem is that once retrieved, i cannot get the function to use
the
array name because it is deemed as just text and not recognized as a
valid
array name.

this is the last step to automate my form and it is proving formidable.
my
only other alternative is to cut and paste the formula from another
matching
cell.



.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default function to retrieve array name

If VLOOKUP(U51,MFFC!$A$2:$M$11,2,0)) returns the text 'curlpt45'

=INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2,0))

will refer this range..

If 'curlpt45' refers to a single cell and the cell value is 100 then it
returns this cell value


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


"Monty" wrote:

=SUMIF(curlpt45,N52,curltl45)
this is the final formula but the array names need swapped out with the
value derived from =VLOOKUP(U51,MFFC!$A$2:$M$11,2) which should be the value
"curlpt45" because U51 contains the number 45

for example
=SUMIF(=VLOOKUP(U51,MFFC!$A$2:$M$11,2),N52,=VLOOKU P(U51,MFFC!$A$2:$M$11,2))

I have been manually typing in the curlpt45 into the formula. when the age
group changes in U column then the curlpt## has to change to match for the
formula to calculate the correct value from the SUMIF.

=INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2,0)) returned 100 and it should have
been curlpt45



"T. Valko" wrote:

How do you intend to use the array name? How is the array defined?

If the VLOOKUP returns a text string that represents a defined name this is
how you need to express it:

INDIRECT(VLOOKUP(U51,MFFC!$A$2:$M$11,2))


--
Biff
Microsoft Excel MVP


"Monty" wrote in message
...
i have a spread sheet with array names in each cell

I have a working formula to retrieve the correct array name


The question
=VLOOKUP(U51,MFFC!$A$2:$M$11,2)

U51 is the cell for an age group (17)
the spread sheet MFFC has the age groups starting the row and the cells
contain array names.

curlup pushups run swim bike eliptical
17 curlpt17 curltl17 pupt17 putl17 runpt17 runtl17 swimpt17 swimtl17
bikept17 biketl17 elippt17 eliptl17

the problem is that once retrieved, i cannot get the function to use the
array name because it is deemed as just text and not recognized as a valid
array name.

this is the last step to automate my form and it is proving formidable. my
only other alternative is to cut and paste the formula from another
matching
cell.



.

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
Is it possible to use the lookup function to retrieve objects? MAC Excel Discussion (Misc queries) 1 May 12th 09 03:15 AM
Is there a function/formula to retrieve the weeknumber? Marijke Excel Worksheet Functions 1 October 5th 07 11:36 AM
function to retrieve a list of unique characters from a column Pluggie Excel Worksheet Functions 2 June 13th 07 04:17 PM
Worksheet function to retrieve cell value based on row an col numb mcambrose Excel Discussion (Misc queries) 2 October 13th 06 05:19 PM
Can I retrieve a value and its format using the minimum function? daled Excel Worksheet Functions 1 November 2nd 05 09:38 PM


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