named range across sheets

marleyps

New Member
Joined
Aug 29, 2003
Messages
38
I wish to perform a index match lookup on a spreadsheet , but the proposedlookup range is spread over 3 sheets in another workbook . Is it possible to create a named range that is spread over several sheets, and does the range have to encompass the same set of cells on all the lookup sheets.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You can specify the same range across several sheets thus

=SUM(Sheet1:Sheet3!D5)
This would sum D5 on sheet1, sheet2 and sheet3


and creating a named range :- MyRange

and typing
=Sheet1:Sheet3!$A$1:$D$20
in Refers to: on the name manager

allows you to do

=SUM(MyRange) which would sum everything in MyRange (A1:d20) on 3 sheets

Note MyRange is not listed in the corner list where you'd expect to see named ranges listed

So yes you can have a named range over more than 1 sheet
 
Upvote 0
hi
Thanks for the reply
I created a named range across two sheets then tried a vlookup on sheet 3
the data was simple

sheet 1

a 1
b 2
c 3



sheet 2


d 4
e 5
f 6


on sheet 3 I entered e in cell f11 and in cell g11 I placed the formula =vlookup(f11,myrange,2,false) I expected to return 5 but all I get is #value what am I doing wrong.
 
Upvote 0
hi
Thanks for the reply
I created a named range across two sheets then tried a vlookup on sheet 3
the data was simple

sheet 1

a 1
b 2
c 3



sheet 2


d 4
e 5
f 6


on sheet 3 I entered e in cell f11 and in cell g11 I placed the formula =vlookup(f11,myrange,2,false) I expected to return 5 but all I get is #value what am I doing wrong.

A different take...

Sheet3, G11
Code:
=LOOKUP(9.99999999999999E+307,CHOOSE({1,2,3},0,
    VLOOKUP(F11,Sheet1!$A$2:$B$4,2,0),
    VLOOKUP(F11,Sheet2!$A$2:$B$4,2,0)))
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top