Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Yardarm1
 
Posts: n/a
Default how do i get "DGET" to take the first data meeting the criteria?

There is more than one record in my array that matches the criteria. I would
like to use the first accurance.
At present time I am getting an error message.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If you read help that is what you are supposed to get

--
Regards,

Peo Sjoblom

(No private emails please)


"Yardarm1" wrote in message
...
There is more than one record in my array that matches the criteria. I
would
like to use the first accurance.
At present time I am getting an error message.


  #3   Report Post  
yardarm1
 
Posts: n/a
Default

i know that is what you are suposed to get. What I am looking for is an if
statement using the error code to jump around the error statement and use the
first accurance of a match.

"Peo Sjoblom" wrote:

If you read help that is what you are supposed to get

--
Regards,

Peo Sjoblom

(No private emails please)


"Yardarm1" wrote in message
...
There is more than one record in my array that matches the criteria. I
would
like to use the first accurance.
At present time I am getting an error message.



  #4   Report Post  
Harlan Grove
 
Posts: n/a
Default

"yardarm1" wrote...
i know that is what you are suposed to get. What I am looking for is an if
statement using the error code to jump around the error statement and use

the first accurance of a match.
....

You can't use DGET for this. DGET will *ALWAYS* return errors when there are
multiple matches. It *ONLY* works when there's one and only one match.

You could use INDEX and MATCH in an array formula. You'd need to translate
your DGET criteria to a formula expression. Something like

=INDEX(Data,MATCH(1,(INDEX(Data,0,2)=x)*(INDEX(Dat a,0,5)=y),0),3)


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
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Add data to cell w/o loosing initial data jaycain Excel Discussion (Misc queries) 2 March 29th 05 02:23 AM
How do I create a list in excel that contains external data? bill@bb Excel Discussion (Misc queries) 1 February 15th 05 02:45 AM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Extending a Chart Data Series from an Array - Can it be done? Jon Peltier Charts and Charting in Excel 4 November 30th 04 03:30 AM


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