Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JaB
 
Posts: n/a
Default Lookup in named range

Afternoon

Im currently creating a lookup formula between two worksheets, and would
find it easier to make my formula search within name ranges rather than cell
references. Im having problems making this work though. My current formula
reads.
=INDEX('Communal Areas'!A2:H804,MATCH(E2,'Communal Areas'!D2:D804,0),7)
The name range for A2:H804 is Communal, and the name range for D2:D804 is
Street. When I enter these though my formula comes back in error. I assume
then that I am entering them into the formula incorrectly. Does anyone know
how this should be done?
Thanks in advance.

J.
  #2   Report Post  
Jim Rech
 
Posts: n/a
Default

I set up your scenario and then applied the range names. This formula
worked fine:

=INDEX(Communal,MATCH(E2,Street,0),7)

Incidentally, it is more efficient to narrow the ranges that INDEXes,
MATCHes, VLOOKUPs, etc., use as much as possible. So since you know all
you're interested in is the seventh column for the INDEX you'd be better off
using INDEX just on that column:

=INDEX('Communal Areas'!G2:G804,MATCH(E2,'Communal Areas'!D2:D804,0))


--
Jim
"JaB" wrote in message
...
| Afternoon
|
| Im currently creating a lookup formula between two worksheets, and would
| find it easier to make my formula search within name ranges rather than
cell
| references. Im having problems making this work though. My current
formula
| reads.
| =INDEX('Communal Areas'!A2:H804,MATCH(E2,'Communal Areas'!D2:D804,0),7)
| The name range for A2:H804 is Communal, and the name range for D2:D804 is
| Street. When I enter these though my formula comes back in error. I
assume
| then that I am entering them into the formula incorrectly. Does anyone
know
| how this should be done?
| Thanks in advance.
|
| J.


  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Are these names workbook level or local to the sheet?

If they're global, then this worked ok for me:
=INDEX(Communal,MATCH(E2,street,0),7)

If they're local to the 'communal areas' worksheet, then this worked ok:

=INDEX('Communal areas'!communal,MATCH(E2,'Communal areas'!street,0),7)

You may want to post the formula you used--or even double check the range names
(make sure that they're what they're supposed to be).

JaB wrote:

Afternoon

Im currently creating a lookup formula between two worksheets, and would
find it easier to make my formula search within name ranges rather than cell
references. Im having problems making this work though. My current formula
reads.
=INDEX('Communal Areas'!A2:H804,MATCH(E2,'Communal Areas'!D2:D804,0),7)
The name range for A2:H804 is Communal, and the name range for D2:D804 is
Street. When I enter these though my formula comes back in error. I assume
then that I am entering them into the formula incorrectly. Does anyone know
how this should be done?
Thanks in advance.

J.


--

Dave Peterson
  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

This works for me:

=INDEX(Communal,MATCH(E2,Street,0),7)

without knowing what error you're getting, it's hard to diagnose what
might be going wrong...

In article ,
JaB wrote:

Afternoon

Im currently creating a lookup formula between two worksheets, and would
find it easier to make my formula search within name ranges rather than cell
references. Im having problems making this work though. My current formula
reads.
=INDEX('Communal Areas'!A2:H804,MATCH(E2,'Communal Areas'!D2:D804,0),7)
The name range for A2:H804 is Communal, and the name range for D2:D804 is
Street. When I enter these though my formula comes back in error. I assume
then that I am entering them into the formula incorrectly. Does anyone know
how this should be done?
Thanks in advance.

J.

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
lookup and return range of cells ark Excel Worksheet Functions 3 August 6th 05 05:18 PM
How do I edit a Named Range using macro's behmer Excel Worksheet Functions 2 July 26th 05 09:02 PM
How to dynamically reference a dynamic named range paris3 Excel Worksheet Functions 4 June 24th 05 01:22 AM
Lookup with search range start based on position of last blank lin rcmodelr Excel Worksheet Functions 0 November 14th 04 06:32 AM
Address of named range pcress Excel Worksheet Functions 3 November 13th 04 08:50 AM


All times are GMT +1. The time now is 05:58 AM.

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"