Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default HLOOKUP using a named range returns #VALUE!

Excel 2003 v.11
=HLOOKUP(W2,WholeYear,13) = #VALUE!
Where WholeYear is a named range Jan:Dec!$L$2:$AP$17, that spans 12
worksheets. The first row in the range (Row 2) contains the 365 days of the
year, in order.
Everything about this looks correct, and it works if I refer to a signle
sheet, but I am getting a Value error when searching the whole year.
Can anyone help? I'm really stuck.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default HLOOKUP using a named range returns #VALUE!

MicheleO wrote:
Excel 2003 v.11
=HLOOKUP(W2,WholeYear,13) = #VALUE!
Where WholeYear is a named range Jan:Dec!$L$2:$AP$17, that spans 12
worksheets. The first row in the range (Row 2) contains the 365 days
of the year, in order.
Everything about this looks correct, and it works if I refer to a
signle sheet, but I am getting a Value error when searching the whole
year.
Can anyone help? I'm really stuck.
Thanks



Hi Michele,

It's very simple... The HLOOKUP and VLOOKUP functions cannot work on 3D
references, i.e. ranges that span over more than one worksheet...


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 296
Default HLOOKUP using a named range returns #VALUE!

On Thu, 24 Aug 2006 06:48:01 -0700, MicheleO
wrote:

Excel 2003 v.11
=HLOOKUP(W2,WholeYear,13) = #VALUE!
Where WholeYear is a named range Jan:Dec!$L$2:$AP$17, that spans 12
worksheets. The first row in the range (Row 2) contains the 365 days of the
year, in order.
Everything about this looks correct, and it works if I refer to a signle
sheet, but I am getting a Value error when searching the whole year.
Can anyone help? I'm really stuck.
Thanks



AFAIAA lookups refer to single sheet ranges only.
The help mentions 'table_array' not a 'cube array' which I guess you'd
need for a multi sheet lookup.

If there were such a thing, let's imagine it called a DHLookup for
Dimension Horizontal lookup, you'd also need another parameter to
identify the sheet offset.

You could probably build a UDF to achieve the same sort of
functionality and pass the sheet number as an offset from the first
Jan! sheet

If I get some spare time I'll have a go.

HTH
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
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
Range matching multiple named Ranges ben simpson Excel Discussion (Misc queries) 0 March 15th 06 06:45 PM
Dynamic Named Range with blank cells tjtjjtjt Excel Discussion (Misc queries) 3 October 5th 05 08:10 PM
How do I edit a Named Range using macro's behmer Excel Worksheet Functions 2 July 26th 05 09:02 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 04:56 PM.

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"