Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Help - Does value exist in range of CLOSED workbook?

What is the best method to validate a string's existance in a CLOSED
workbook that has many filled cells?

I need to check for a string in column A of an external closed book.
Column A of the external book has over 47,000 filled cells. I have a
VBA routine that writes a match function into a cell of thisworkbook,
but I get the error alert, "Excel cannot complete this task with
available resources..." when the external book is closed. However, it
works fine when it's open.

I've tried both the countif and match function but both fail when the
external book is closed.

(Excel 2003)

Thank you for your help.
-Chuck

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Help - Does value exist in range of CLOSED workbook?

Hi c mateland

The Vlookup worksheet function is working in a closed file

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"c mateland" wrote in message ups.com...
What is the best method to validate a string's existance in a CLOSED
workbook that has many filled cells?

I need to check for a string in column A of an external closed book.
Column A of the external book has over 47,000 filled cells. I have a
VBA routine that writes a match function into a cell of thisworkbook,
but I get the error alert, "Excel cannot complete this task with
available resources..." when the external book is closed. However, it
works fine when it's open.

I've tried both the countif and match function but both fail when the
external book is closed.

(Excel 2003)

Thank you for your help.
-Chuck

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Help - Does value exist in range of CLOSED workbook?

Actually, I've tried the vlookup as well and it failed too.

All of these functions work (minus countif) with closed files. BUT
none of them work when the closed file contains 47000 rows in the
lookup range, is what I found.

Can you get such a vlookup to work with a closed workbook containing
47000 rows?

Thanks,
-Chuck

On Apr 15, 3:19 pm, "Ron de Bruin" wrote:
Hi c mateland

The Vlookup worksheet function is working in a closed file

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm



"c mateland" wrote in oglegroups.com...
What is the best method to validate a string's existance in a CLOSED
workbook that has many filled cells?


I need to check for a string in column A of an external closed book.
Column A of the external book has over 47,000 filled cells. I have a
VBA routine that writes a match function into a cell of thisworkbook,
but I get the error alert, "Excel cannot complete this task with
available resources..." when the external book is closed. However, it
works fine when it's open.


I've tried both the countif and match function but both fail when the
external book is closed.


(Excel 2003)


Thank you for your help.
-Chuck- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Help - Does value exist in range of CLOSED workbook?

Please disregard this thread in this group. I mistakenly posted it
here when I meant to post it in Programming.

-Chuck

On Apr 15, 7:48 pm, "c mateland" wrote:
Actually, I've tried the vlookup as well and it failed too.

All of these functions work (minus countif) with closed files. BUT
none of them work when the closed file contains 47000 rows in the
lookup range, is what I found.

Can you get such a vlookup to work with a closed workbook containing
47000 rows?

Thanks,
-Chuck

On Apr 15, 3:19 pm, "Ron de Bruin" wrote:



Hi c mateland


The Vlookup worksheet function is working in a closed file


--


Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm


"c mateland" wrote in oglegroups.com...
What is the best method to validate a string's existance in a CLOSED
workbook that has many filled cells?


I need to check for a string in column A of an external closed book.
Column A of the external book has over 47,000 filled cells. I have a
VBA routine that writes a match function into a cell of thisworkbook,
but I get the error alert, "Excel cannot complete this task with
available resources..." when the external book is closed. However, it
works fine when it's open.


I've tried both the countif and match function but both fail when the
external book is closed.


(Excel 2003)


Thank you for your help.
-Chuck- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help - Does value exist in range of CLOSED workbook?

It may have something to do with available memory.

My machine has 256mb ram (WinXP)

I created a file named TEST.XLS

I filled column A (A1:A65536) with the respective row numbers and filled
column B (B1:B65536) with random numbers.

Opened a new file. Entered this simple formula:

=VLOOKUP(A1,'C:\TV\[test.xls]Sheet1'!A:B,2,0)

It works just fine as long as TEXT.XLS is open. When I close TEXT.XLS I get
a popup message to the effect: Excel cannot complete this operation with
available resources......

TEST.XLS closes but the lookup formula returns a #N/A error if I use a
lookup value 16375.

I've been thinking about upgrading my ram but what I really need is a new
machine altogether! Got this one in 2001.

Biff

"c mateland" wrote in message
ups.com...
Actually, I've tried the vlookup as well and it failed too.

All of these functions work (minus countif) with closed files. BUT
none of them work when the closed file contains 47000 rows in the
lookup range, is what I found.

Can you get such a vlookup to work with a closed workbook containing
47000 rows?

Thanks,
-Chuck

On Apr 15, 3:19 pm, "Ron de Bruin" wrote:
Hi c mateland

The Vlookup worksheet function is working in a closed file

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm



"c mateland" wrote in
oglegroups.com...
What is the best method to validate a string's existance in a CLOSED
workbook that has many filled cells?


I need to check for a string in column A of an external closed book.
Column A of the external book has over 47,000 filled cells. I have a
VBA routine that writes a match function into a cell of thisworkbook,
but I get the error alert, "Excel cannot complete this task with
available resources..." when the external book is closed. However, it
works fine when it's open.


I've tried both the countif and match function but both fail when the
external book is closed.


(Excel 2003)


Thank you for your help.
-Chuck- Hide quoted text -


- Show quoted text -







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Help - Does value exist in range of CLOSED workbook?

Don't bother upgrading your RAM for this purpose. I don't think it
will matter. I think it's just a limit of Excel working with external
files. The amount of resources needed by Excel (if there truly is an
amount to be successful) is impractical. I'm working with 2GB of RAM
and a huge clean hard drive on a new beefy machine, and I still get
the alert.

Even if I could buy a Cray super computer and make this work, what
good would that be? My users wouldn't have such a miracle computer,
and so it would still fail on them.

-Chuck

On Apr 15, 8:19 pm, "T. Valko" wrote:
It may have something to do with available memory.

My machine has 256mb ram (WinXP)

I created a file named TEST.XLS

I filled column A (A1:A65536) with the respective row numbers and filled
column B (B1:B65536) with random numbers.

Opened a new file. Entered this simple formula:

=VLOOKUP(A1,'C:\TV\[test.xls]Sheet1'!A:B,2,0)

It works just fine as long as TEXT.XLS is open. When I close TEXT.XLS I get
a popup message to the effect: Excel cannot complete this operation with
available resources......

TEST.XLS closes but the lookup formula returns a #N/A error if I use a
lookup value 16375.

I've been thinking about upgrading my ram but what I really need is a new
machine altogether! Got this one in 2001.

Biff

"c mateland" wrote in message

ups.com...



Actually, I've tried the vlookup as well and it failed too.


All of these functions work (minus countif) with closed files. BUT
none of them work when the closed file contains 47000 rows in the
lookup range, is what I found.


Can you get such a vlookup to work with a closed workbook containing
47000 rows?


Thanks,
-Chuck


On Apr 15, 3:19 pm, "Ron de Bruin" wrote:
Hi c mateland


The Vlookup worksheet function is working in a closed file


--


Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm


"c mateland" wrote in
oglegroups.com...
What is the best method to validate a string's existance in a CLOSED
workbook that has many filled cells?


I need to check for a string in column A of an external closed book.
Column A of the external book has over 47,000 filled cells. I have a
VBA routine that writes a match function into a cell of thisworkbook,
but I get the error alert, "Excel cannot complete this task with
available resources..." when the external book is closed. However, it
works fine when it's open.


I've tried both the countif and match function but both fail when the
external book is closed.


(Excel 2003)


Thank you for your help.
-Chuck- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Help - Does value exist in range of CLOSED workbook?

"T. Valko" wrote...
It may have something to do with available memory.

....

Not necessarily.

Opened a new file. Entered this simple formula:

=VLOOKUP(A1,'C:\TV\[test.xls]Sheet1'!A:B,2,0)

It works just fine as long as TEXT.XLS is open. When I close
TEXT.XLS I get a popup message to the effect: Excel cannot
complete this operation with available resources......


Excel passes '[test.xls]Sheet1'!A:B as a reference to a range in an
open workbook. OTOH, Excel passes 'C:\TV\[test.xls]Sheet1'!A:B as an
array (perhaps as a reference to an array), but to do so it needs to
create that array by reading the values from the closed workbook.
Since Excel 2003 & prior can't handle arrays spanning 65536 or more
rows, Excel can't handle this operation referencing a closed file.

This operation fails if you use A1:B65535. Heck, it fails if you use
A1:B16376. *BUT* it works without complaining if you use A1:H16375. So
it seems to me this is an old Excel 5 & prior limitation on array size
(number of rows) returned by external references into closed workbooks
that was never updated for the larger grid size in Excel 97 and later.
It has nothing to do with available memory, since most PCs, even those
bought around 2000, would have page files large enough to store arrays
of a hundred thousand rows by a dozen columns. This limitation is
hardcoded into Excel's own source code, just like 7 nested function
calls in cell formulas, 30 arguments in function calls, 255 characters
to define names.

IOW, buy a new machine with more RAM, and you'll still have this
problem.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Help - Does value exist in range of CLOSED workbook?

Harlan, thank you very much for doing that research. At least I know
to stop trying now.

I ended up with a routine that opens and copies the external source
data into thisworkbook, which my formulas then work off of. It adds a
few seconds to the opening of the file, but a benefit is that after
copy, I don't have to worry about continual connectivity to the
external file as I change criteria variables.

-Chuck

On Apr 16, 3:19 am, "Harlan Grove" wrote:
"T. Valko" wrote...
It may have something to do with available memory.


...

Not necessarily.

Opened a new file. Entered this simple formula:


=VLOOKUP(A1,'C:\TV\[test.xls]Sheet1'!A:B,2,0)


It works just fine as long as TEXT.XLS is open. When I close
TEXT.XLS I get a popup message to the effect: Excel cannot
complete this operation with available resources......


Excel passes '[test.xls]Sheet1'!A:B as a reference to a range in an
open workbook. OTOH, Excel passes 'C:\TV\[test.xls]Sheet1'!A:B as an
array (perhaps as a reference to an array), but to do so it needs to
create that array by reading the values from the closed workbook.
Since Excel 2003 & prior can't handle arrays spanning 65536 or more
rows, Excel can't handle this operation referencing a closed file.

This operation fails if you use A1:B65535. Heck, it fails if you use
A1:B16376. *BUT* it works without complaining if you use A1:H16375. So
it seems to me this is an old Excel 5 & prior limitation on array size
(number of rows) returned by external references into closed workbooks
that was never updated for the larger grid size in Excel 97 and later.
It has nothing to do with available memory, since most PCs, even those
bought around 2000, would have page files large enough to store arrays
of a hundred thousand rows by a dozen columns. This limitation is
hardcoded into Excel's own source code, just like 7 nested function
calls in cell formulas, 30 arguments in function calls, 255 characters
to define names.

IOW, buy a new machine with more RAM, and you'll still have this
problem.



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help - Does value exist in range of CLOSED workbook?

Thanks, Harlan. Very useful info.

Here's what I tried as a workaround:

TEST.XLS Sheet1 column A filled with the respective row numbers.

New file:

A1 = 35000

Formula:

=COUNT(MATCH(A1,'C:\TV\[test.xls]Sheet1'!A1:A15000,0),MATCH(A1,'C:\TV\[test.xls]Sheet1'!A15001:A30000,0),MATCH(A1,'C:\TV\[test.xls]Sheet1'!A30001:A45000,0),MATCH(A1,'C:\TV\[test.xls]Sheet1'!A45001:A60000,0),MATCH(A1,'C:\TV\[test.xls]Sheet1'!A60001:A65536,0))

This still fails as described earlier when TEST.XLS is closed.

So I broke it down into a series of individual formulas:

=COUNT(MATCH(A1,'C:\TV\[test.xls]Sheet1'!A1:A15000,0))
=COUNT(MATCH(A1,'C:\TV\[test.xls]Sheet1'!A15001:A30000,0))
=COUNT(MATCH(A1,'C:\TV\[test.xls]Sheet1'!A30001:A45000,0))
etc
etc

Even this fails!

Biff

"Harlan Grove" wrote in message
oups.com...
"T. Valko" wrote...
It may have something to do with available memory.

...

Not necessarily.

Opened a new file. Entered this simple formula:

=VLOOKUP(A1,'C:\TV\[test.xls]Sheet1'!A:B,2,0)

It works just fine as long as TEXT.XLS is open. When I close
TEXT.XLS I get a popup message to the effect: Excel cannot
complete this operation with available resources......


Excel passes '[test.xls]Sheet1'!A:B as a reference to a range in an
open workbook. OTOH, Excel passes 'C:\TV\[test.xls]Sheet1'!A:B as an
array (perhaps as a reference to an array), but to do so it needs to
create that array by reading the values from the closed workbook.
Since Excel 2003 & prior can't handle arrays spanning 65536 or more
rows, Excel can't handle this operation referencing a closed file.

This operation fails if you use A1:B65535. Heck, it fails if you use
A1:B16376. *BUT* it works without complaining if you use A1:H16375. So
it seems to me this is an old Excel 5 & prior limitation on array size
(number of rows) returned by external references into closed workbooks
that was never updated for the larger grid size in Excel 97 and later.
It has nothing to do with available memory, since most PCs, even those
bought around 2000, would have page files large enough to store arrays
of a hundred thousand rows by a dozen columns. This limitation is
hardcoded into Excel's own source code, just like 7 nested function
calls in cell formulas, 30 arguments in function calls, 255 characters
to define names.

IOW, buy a new machine with more RAM, and you'll still have this
problem.



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Help - Does value exist in range of CLOSED workbook?

It would be much appreciated if you did not multipost.

http://cpearson.com/excel/newposte.htm

"c mateland" wrote:

What is the best method to validate a string's existance in a CLOSED
workbook that has many filled cells?

I need to check for a string in column A of an external closed book.
Column A of the external book has over 47,000 filled cells. I have a
VBA routine that writes a match function into a cell of thisworkbook,
but I get the error alert, "Excel cannot complete this task with
available resources..." when the external book is closed. However, it
works fine when it's open.

I've tried both the countif and match function but both fail when the
external book is closed.

(Excel 2003)

Thank you for your help.
-Chuck




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
Does specific value exist in a range coloradoprof Excel Worksheet Functions 3 November 25th 06 07:00 PM
range name does not exist scory Excel Discussion (Misc queries) 1 September 12th 06 01:17 PM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
Updating master workbook from source that may/may not exist [email protected] Excel Worksheet Functions 20 April 7th 05 03:37 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM


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