Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 44
Default DGET Function + External data from another excel file

Hello,

I'm trying to use the function DGET and get data from another excel
worksheets and it doesn't seems to work.

Does this looks correct : DGET ('c:\tmp\[tmp_excel.xls]'!A1:D20;"ID";A1:A2)
?

thanks in advance !

Nader


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default DGET Function + External data from another excel file

Nader wrote...
I'm trying to use the function DGET and get data from another excel
worksheets and it doesn't seems to work.

Does this looks correct : DGET ('c:\tmp\[tmp_excel.xls]'!A1:D20;"ID";A1:A2)


You should state how it doesn't work.

In this case, there are two problems. First, there's a syntax error.
Your external reference is either missing a worksheet name before the
exclamation point, or if the file has a single worksheet named
tmp_excel then you shouldn't have the square brackets around the base
filename. Second, DGET's first argument must be a range reference.
Excel doesn't consider references into closed workbooks to be range
references. That means you can't use DGET (or any of the other D...
functions) to refer to blocks of cells in other workbooks that could be
closed.

There are workarounds, but you'll need to provide the A1:D1 values
(field names) from the other file and the contents of the criteria
range.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default DGET Function + External data from another excel file

It looks like it is missing the worksheet name, something like:
DGET ('c:\tmp\[tmp_excel.xls]Sheet1'!A1:D20;"ID";A1:A2)
If the sheet is not called Sheet1, change as required

Hope this helps,
Miguel.

"Nader" wrote:

Hello,

I'm trying to use the function DGET and get data from another excel
worksheets and it doesn't seems to work.

Does this looks correct : DGET ('c:\tmp\[tmp_excel.xls]'!A1:D20;"ID";A1:A2)
?

thanks in advance !

Nader



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
Excel file with hyperlinks takes a long time to open over the network Didier P Links and Linking in Excel 3 July 4th 06 04:39 PM
consolidation of tables in excel with text and figures samenvoegen van sheets Excel Worksheet Functions 8 March 2nd 06 03:27 PM
Get External Data in Excel MattsConfused Excel Discussion (Misc queries) 0 December 17th 05 05:37 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
no data in excel file i.g.o.r Excel Discussion (Misc queries) 1 June 14th 05 03:41 PM


All times are GMT +1. The time now is 05:49 PM.

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"