Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Avoiding Errors When Attempting To Retrieve Data From A Non-existant Worksheet

Hi,

I am working on a Workbook database which will be referring to multiple other workbooks with multiple worksheets. Every workbook is a buyer, and every worksheet is an item, named after the item number. The one cell (A45) within the worksheet is the quantity which I want in the master workbook. My problem is, I want to have a list of all items possible in my master workbook, and retrieve the quantity cell from each worksheet, but not all workbooks have all items, leaving me with cells which would be refering to non-existant worksheets. I get the "#REF!" and its causing me a lot of grief. Can someone suggest a solution? Or even another easier way to do so.

Thanks in advance,

Nick
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tuph
 
Posts: n/a
Default Avoiding Errors When Attempting To Retrieve Data From A Non-existant Worksheet


You can add IF(ERROR.TYPE=4),"",.... (normal formula) to your formula to
return a blank if the error type in the source cell is #REF!. Look up
ERROR.TYPE in help for more information about which digits apply to
which ERROT.TYPEs.

The formula I use this in is
=IF(ERROR.TYPE(VLOOKUP($A26,Worksheet!$C$2:$H$45,2 ,FALSE)=4),"",VLOOKUP($A26,Worksheet!$C$2:$H$45,2, FALSE))

Hope this helps :)


--
tuph
------------------------------------------------------------------------
tuph's Profile: http://www.excelforum.com/member.php...o&userid=31390
View this thread: http://www.excelforum.com/showthread...hreadid=525939

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
Retrieve data from different sheets dannyboy213 Excel Discussion (Misc queries) 2 March 22nd 06 08:25 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Inserting Filtered RC cell information into other worksheets Dennis Excel Discussion (Misc queries) 10 July 30th 05 01:54 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
How do I collect data from an interactive web worksheet and impor. worksheetmom Excel Discussion (Misc queries) 3 February 20th 05 12:38 AM


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