Lookup in named range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
| 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.
 
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).
 
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top