Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
chathag
 
Posts: n/a
Default vlookup and named ranges


Hi All,

I have 2 cell ranges named "maindata" and "otherdata", which are used
in a vlookup. Depending on the status of of the lookup value, the
Table Array would have to be either "maindata" or "otherdata". I have
therefore entered maindata and otherdata into the cells f1 and f2
respectively. This would avoid having to retype the Table Array,
instead pointing the Table Array to either cell f1 or f2. When I try
this, a N/A is returned can somebody please advise whether this is
possible to do?

regards

G.


--
chathag
------------------------------------------------------------------------
chathag's Profile: http://www.excelforum.com/member.php...o&userid=16519
View this thread: http://www.excelforum.com/showthread...hreadid=318767

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
use
INDIRECT(F2)
in your VLOOKUP formula

"chathag" wrote:


Hi All,

I have 2 cell ranges named "maindata" and "otherdata", which are used
in a vlookup. Depending on the status of of the lookup value, the
Table Array would have to be either "maindata" or "otherdata". I have
therefore entered maindata and otherdata into the cells f1 and f2
respectively. This would avoid having to retype the Table Array,
instead pointing the Table Array to either cell f1 or f2. When I try
this, a N/A is returned can somebody please advise whether this is
possible to do?

regards

G.


--
chathag
------------------------------------------------------------------------
chathag's Profile: http://www.excelforum.com/member.php...o&userid=16519
View this thread: http://www.excelforum.com/showthread...hreadid=318767


  #3   Report Post  
chathag
 
Posts: n/a
Default


Thanks for that, but how would i implement the INDIRECT function into
the VLOOKUP.


--
chathag
------------------------------------------------------------------------
chathag's Profile: http://www.excelforum.com/member.php...o&userid=16519
View this thread: http://www.excelforum.com/showthread...hreadid=318767

  #4   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
=VLOOKUP(lookup_value,INDIRECT(F2),2,0)
for example

--
Regards
Frank Kabel
Frankfurt, Germany

"chathag" schrieb im Newsbeitrag
...

Thanks for that, but how would i implement the INDIRECT function into
the VLOOKUP.


--
chathag
---------------------------------------------------------------------

---
chathag's Profile:

http://www.excelforum.com/member.php...o&userid=16519
View this thread:

http://www.excelforum.com/showthread...hreadid=318767


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
vlookup and named ranges Domenic Excel Worksheet Functions 0 November 16th 04 05:08 PM
VLOOKUP and AND function Chris Excel Worksheet Functions 2 November 11th 04 12:37 PM
Excel 2003 - referenceing the active worksheet page in vlookup Ernst Excel Worksheet Functions 4 November 7th 04 12:23 AM
vlookup Pam Coleman Excel Worksheet Functions 1 November 1st 04 03:04 PM


All times are GMT +1. The time now is 09:29 PM.

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"