Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default VLOOKUP with cell address as part of the argument

I have 2 spreadsheets with identical tabs... 1 name Pricing Model and 1 name
Pricing Model A. I add identical tabs to both spreadsheets every week. The
products on each spreadsheet are not identical but if an item exist in
Pricing Model it's price should be carried over to Pricing Model A. I have a
formula on a1 to get the sheet name for Pricing Model A. Each week is named
on the following format year_week no (ex 2007_01 for week 1 of year 2007) and
they are on both spreadsheets. I created the following formula to lookup the
price in Pricing Model
I have the following formula in A1 to get the sheet name:
=MID(CELL("filename",A1), FIND("]", CELL("filename", A1))+ 1,125)

then have the following formula in the cell where i want the price to appear

=VLOOKUP(A2,CONCATENATE("'i:\pricing\[pricing
model.xls]"&A1&"'!f$8:l$249"),7,FALSE)

The reason why I want to do is to sychcronize both spreadsheets so that I
will be comparing the same weeks as I sheets every week but the formula keep
getting me a #VALUE. What's wrong with the formula?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default VLOOKUP with cell address as part of the argument

You don't need to use & within the CONCATENATE function. However, this
isn't the problem - you would need to use INDIRECT instead of
CONCATENATE to build up a reference. INDIRECT will only work if both
workbooks are open (in which case you do not need the file path
references).

Hope this helps.

Pete

On Jan 27, 1:39 am, mmmbl wrote:
I have 2 spreadsheets with identical tabs... 1 name Pricing Model and 1 name
Pricing Model A. I add identical tabs to both spreadsheets every week. The
products on each spreadsheet are not identical but if an item exist in
Pricing Model it's price should be carried over to Pricing Model A. I have a
formula on a1 to get the sheet name for Pricing Model A. Each week is named
on the following format year_week no (ex 2007_01 for week 1 of year 2007) and
they are on both spreadsheets. I created the following formula to lookup the
price in Pricing Model
I have the following formula in A1 to get the sheet name:
=MID(CELL("filename",A1), FIND("]", CELL("filename", A1))+ 1,125)

then have the following formula in the cell where i want the price to appear

=VLOOKUP(A2,CONCATENATE("'i:\pricing\[pricing
model.xls]"&A1&"'!f$8:l$249"),7,FALSE)

The reason why I want to do is to sychcronize both spreadsheets so that I
will be comparing the same weeks as I sheets every week but the formula keep
getting me a #VALUE. What's wrong with the formula?


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
USING VLOOKUP TO RETURN A CELL ADDRESS psych142 Excel Worksheet Functions 5 December 8th 08 01:04 AM
Vlookup a part of a cell value in another sheet Salman Excel Worksheet Functions 0 March 22nd 06 07:52 AM
cell address ellebelle Excel Worksheet Functions 5 February 2nd 06 11:23 PM
cell address of occurence of a vlookup formula [email protected] Excel Worksheet Functions 5 October 26th 05 06:53 AM
How do I obtain the address of a cell using the vlookup function? Spock Excel Worksheet Functions 2 May 16th 05 06:35 PM


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