Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default making a text string recognizable as a name range in excel

The VLOOKUP(A8,InputSheet,8,FALSE) embedded in the below array formula
is supposed to retrieve a name range (dependent on criteria in that
particular row of data) and return data contained in that range. But,
the formula output is only recognized as a text string and not as a
name range.

{SUM((DateRangeBMTradeData=CP8)*(DateRangeBMTrade Data<=CQ8)*(VLOOKUP(A8,InputSheet,8,FALSE)))}

Currently the formula works only if I manually insert the name range's
name.

Is there a vba function that I can write that would convert the output
of the vlookup above (ex. Singapore_Benchmark) in such a way so that
the array formula would recognize its as the name of a range? If so,
how would I do this. If this is not possible, how do I get a range
address output from a name range so that the array formula will read it
as such and not an text string?

I am presently a novice regarding VBA. Would appreciate someone
pointing me in the right direction.
Thanks,
Rob

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default making a text string recognizable as a name range in excel

Maybe wrapping the final portion in =indirect() would help

.....*indirect(vlookup(....)))



cheloco wrote:

The VLOOKUP(A8,InputSheet,8,FALSE) embedded in the below array formula
is supposed to retrieve a name range (dependent on criteria in that
particular row of data) and return data contained in that range. But,
the formula output is only recognized as a text string and not as a
name range.

{SUM((DateRangeBMTradeData=CP8)*(DateRangeBMTrade Data<=CQ8)*(VLOOKUP(A8,InputSheet,8,FALSE)))}

Currently the formula works only if I manually insert the name range's
name.

Is there a vba function that I can write that would convert the output
of the vlookup above (ex. Singapore_Benchmark) in such a way so that
the array formula would recognize its as the name of a range? If so,
how would I do this. If this is not possible, how do I get a range
address output from a name range so that the array formula will read it
as such and not an text string?

I am presently a novice regarding VBA. Would appreciate someone
pointing me in the right direction.
Thanks,
Rob


--

Dave Peterson
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
Converting a range of Excel 2003 Cells to a Single text string JR2008 Excel Discussion (Misc queries) 2 July 7th 08 12:50 AM
Excel Error! The file is not in a recognizable format? Naveed Khan Excel Discussion (Misc queries) 1 July 5th 06 01:32 PM
Find the POSITION IN A RANGE of text in a string that matches value(s) in a range Cornell1992 Excel Programming 0 March 14th 06 07:19 PM
HOW TO MAKE A EXCEL & WORD FILE IN RECOGNIZABLE FORMAT SHAHZAIB ISMAIL Excel Discussion (Misc queries) 3 November 18th 05 05:38 PM
count instaces of text string in range Steve[_63_] Excel Programming 4 February 18th 05 04:14 AM


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