LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 88
Default indirect w/ vlookup = #REF error

i have a new purchase order and have most of it working now. i have one
known issue left. in order to follow along, you'll need three sheets/tabs
(minimum,) name them: TAB1, TAB2, TAB3

TAB2 has a list of suppliers (Column A will have the supplier's full name.
Column B will have the supplier's short name, which will also be the name of
a TAB.)
For TAB2, set up as follows: A1 = SUPPLIER NAME 1, B1 = TAB3, A2 = SUPPLIER
NAME 2, B2 = TAB4, ...... (as more suppliers are added, this allows for the
sheet to just build up continously.)

TAB3 will have the products/services for the appropriate supplier in A1
(SUPPLIER NAME 1). here Column A represents the produt code, and Column B
will be the description of the product. TAB3, A1 = ITEM1, B1 = DESCRIPTION
OF ITEM 1, A2 = ITEM 2, B2 = DESCRIPTION OF ITEM 2.... (as more products are
added, just keep adding it on...)

TAB1 is the actul PO. cell I5 is a drop down list of the suppliers (from
TAB2)
A12 is the product code and b12 is the description of the product code. in
B12, i have the following formulae entered:

=IF(A12="","",VLOOKUP(A12,INDIRECT("'"&VLOOKUP(I5, TAB2!A:B,2,FALSE)&"'!$a:$b"),2,FALSE))

i have a silimar formulae entered for the price to look up on the
appropriate supplier tab. this works, and everything up to this point is
good.

When i go to make a copy of the PO to save it (without the extra tabs,) the
value in B12 (description of item) now shows #REF. [to make a copy, i right
click on the tab and select make copy, in a new workbook)] the formulae that
shows up in B12 changes to:

=IF(A12="","",VLOOKUP(A12,INDIRECT("'"&VLOOKUP(I5, '[Purchase Order
(test).xlsm]Suppliers'!A:B,2,FALSE)&"'!$a:$b"),2,FALSE))

i understand that it is referencing the original workbook to get the data,
but why it does not bring back the value.

any suggestions to fix this error?

thank you,



 
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
#Ref! error using INDIRECT for file name Bentam7 Excel Discussion (Misc queries) 3 March 27th 08 01:03 AM
Error when using Indirect dragea Excel Worksheet Functions 5 October 5th 06 07:34 PM
Error using Excel add-in with INDIRECT.EXT function Barb Reinhardt Excel Discussion (Misc queries) 3 October 6th 05 04:54 PM
Error Embedding Row() within Indirect() g-boy Excel Worksheet Functions 7 May 8th 05 12:07 AM
INDIRECT function error Anthony Slater Excel Discussion (Misc queries) 3 February 21st 05 06:26 PM


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