Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Concat a parameter into a vlookup?

Is is possible to say

=IF(ISNA(VLOOKUP($X996,Weights.xls!w"VALUE IN CELL C5"s,3,FALSE))

?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Concat a parameter into a vlookup?

Yes.

Look in HELP for the INDIRECT() function

Post again in this same thread if you can't get it done

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Stephen" wrote in message ...
| Is is possible to say
|
| =IF(ISNA(VLOOKUP($X996,Weights.xls!w"VALUE IN CELL C5"s,3,FALSE))
|
| ?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Concat a parameter into a vlookup?

Almost. If the Weights.xls book is open, you can use the INDIRECT function:
syntax: INDIRECT(address_string)
with <address_String: [book_name]sheet_name!range_address_or_name
So something like
ISNA(VLOOKUP($X996
, INDIRECT("[Weights.xls]worksheet_name!w" & C5 & "s")
,3,FALSE) )

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Stephen" wrote:

Is is possible to say

=IF(ISNA(VLOOKUP($X996,Weights.xls!w"VALUE IN CELL C5"s,3,FALSE))

?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Concat a parameter into a vlookup?

I see.

So even if I qualify the path to the Weights book, it simply won't work.
Damn.

Oh well.

Thanks.

"sebastienm" wrote:

Almost. If the Weights.xls book is open, you can use the INDIRECT function:
syntax: INDIRECT(address_string)
with <address_String: [book_name]sheet_name!range_address_or_name
So something like
ISNA(VLOOKUP($X996
, INDIRECT("[Weights.xls]worksheet_name!w" & C5 & "s")
,3,FALSE) )

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Stephen" wrote:

Is is possible to say

=IF(ISNA(VLOOKUP($X996,Weights.xls!w"VALUE IN CELL C5"s,3,FALSE))

?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Concat a parameter into a vlookup?

<it simply won't work

What does that mean? Error message? What message?
Wrong result? If so, supply the input values, the result you expected and what you got instead.


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Stephen" wrote in message ...
|I see.
|
| So even if I qualify the path to the Weights book, it simply won't work.
| Damn.
|
| Oh well.
|
| Thanks.
|
| "sebastienm" wrote:
|
| Almost. If the Weights.xls book is open, you can use the INDIRECT function:
| syntax: INDIRECT(address_string)
| with <address_String: [book_name]sheet_name!range_address_or_name
| So something like
| ISNA(VLOOKUP($X996
| , INDIRECT("[Weights.xls]worksheet_name!w" & C5 & "s")
| ,3,FALSE) )
|
| --
| Regards,
| Sébastien
| <http://www.ondemandanalysis.com
|
|
| "Stephen" wrote:
|
| Is is possible to say
|
| =IF(ISNA(VLOOKUP($X996,Weights.xls!w"VALUE IN CELL C5"s,3,FALSE))
|
| ?




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Concat a parameter into a vlookup?

It returns a #REF error because my weights.xls will not be open all the time.
the kicker for this to work is to have that weights workbook always open
which is not feasible in my situation.



"Niek Otten" wrote:

<it simply won't work

What does that mean? Error message? What message?
Wrong result? If so, supply the input values, the result you expected and what you got instead.


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Stephen" wrote in message ...
|I see.
|
| So even if I qualify the path to the Weights book, it simply won't work.
| Damn.
|
| Oh well.
|
| Thanks.
|
| "sebastienm" wrote:
|
| Almost. If the Weights.xls book is open, you can use the INDIRECT function:
| syntax: INDIRECT(address_string)
| with <address_String: [book_name]sheet_name!range_address_or_name
| So something like
| ISNA(VLOOKUP($X996
| , INDIRECT("[Weights.xls]worksheet_name!w" & C5 & "s")
| ,3,FALSE) )
|
| --
| Regards,
| Sébastien
| <http://www.ondemandanalysis.com
|
|
| "Stephen" wrote:
|
| Is is possible to say
|
| =IF(ISNA(VLOOKUP($X996,Weights.xls!w"VALUE IN CELL C5"s,3,FALSE))
|
| ?



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
concat rows nmpb Excel Worksheet Functions 4 January 15th 09 10:50 AM
vlookup query - 2 parameter check.... David Cumming Excel Programming 1 November 14th 07 09:11 PM
howto: concat (x1:x3) Marc Hebert New Users to Excel 3 December 15th 06 07:52 PM
Concat Macro help... [email protected] Excel Discussion (Misc queries) 4 August 8th 06 05:09 PM
vlookup, add parameter, on error return user defined value jims2994 Excel Worksheet Functions 0 July 7th 06 02:56 PM


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