Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Adella
 
Posts: n/a
Default Use Index to get range

I have a dget function that I want to use different range and criteria ranges
depending on a flag. I thought that index would work but I am getting a
value error. Thanks in advance for any help.

Here's the formula:

=dget(index(rangearray,1),az11,index(rangearray,3) )

whrere
Med1_602
Med2_602
Med1_602Crit
Med2_602

are a range called rangearray

If I do the index function independently it gives me the correct range but
in the dget formula I get an error?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Use Index to get range

Is DGet expecting a range? INDEX will return a value which is passed to
DGet.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Adella" wrote in message
...
I have a dget function that I want to use different range and criteria

ranges
depending on a flag. I thought that index would work but I am getting a
value error. Thanks in advance for any help.

Here's the formula:

=dget(index(rangearray,1),az11,index(rangearray,3) )

whrere
Med1_602
Med2_602
Med1_602Crit
Med2_602

are a range called rangearray

If I do the index function independently it gives me the correct range but
in the dget formula I get an error?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Adella
 
Posts: n/a
Default Use Index to get range

Yes dget is expecting a range, the range name I want is Med1_602.

"Bob Phillips" wrote:

Is DGet expecting a range? INDEX will return a value which is passed to
DGet.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Adella" wrote in message
...
I have a dget function that I want to use different range and criteria

ranges
depending on a flag. I thought that index would work but I am getting a
value error. Thanks in advance for any help.

Here's the formula:

=dget(index(rangearray,1),az11,index(rangearray,3) )

whrere
Med1_602
Med2_602
Med1_602Crit
Med2_602

are a range called rangearray

If I do the index function independently it gives me the correct range but
in the dget formula I get an error?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Use Index to get range

Not getting it, is Med602 a value, or is it supposed to be a range? In other
words, are you trying to INDEX into a range to get a range to pass to DGET?


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Adella" wrote in message
...
Yes dget is expecting a range, the range name I want is Med1_602.

"Bob Phillips" wrote:

Is DGet expecting a range? INDEX will return a value which is passed to
DGet.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Adella" wrote in message
...
I have a dget function that I want to use different range and criteria

ranges
depending on a flag. I thought that index would work but I am getting

a
value error. Thanks in advance for any help.

Here's the formula:

=dget(index(rangearray,1),az11,index(rangearray,3) )

whrere
Med1_602
Med2_602
Med1_602Crit
Med2_602

are a range called rangearray

If I do the index function independently it gives me the correct range

but
in the dget formula I get an error?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Adella
 
Posts: n/a
Default Use Index to get range

Yes exactly, Med1_602 is a range.

"Bob Phillips" wrote:

Not getting it, is Med602 a value, or is it supposed to be a range? In other
words, are you trying to INDEX into a range to get a range to pass to DGET?


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Adella" wrote in message
...
Yes dget is expecting a range, the range name I want is Med1_602.

"Bob Phillips" wrote:

Is DGet expecting a range? INDEX will return a value which is passed to
DGet.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Adella" wrote in message
...
I have a dget function that I want to use different range and criteria
ranges
depending on a flag. I thought that index would work but I am getting

a
value error. Thanks in advance for any help.

Here's the formula:

=dget(index(rangearray,1),az11,index(rangearray,3) )

whrere
Med1_602
Med2_602
Med1_602Crit
Med2_602

are a range called rangearray

If I do the index function independently it gives me the correct range

but
in the dget formula I get an error?








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
Array to named range conversion... i-Zapp Excel Discussion (Misc queries) 4 October 25th 05 09:09 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM
can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 1 April 7th 05 04:31 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM


All times are GMT +1. The time now is 03:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"