Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Errors when using named ranges

I'm attempting to use VLookup() to access data in the 7th column of a
different sheet in the same workbook.

I have named the range that I want as "Have", with a range of ='Owned
Hair'!$G$7:$G$153
The range "Possessed" ='Owned Hair'!$A$6:$I$153
(Row 6 is column headers)

If I use the following formula:
=VLOOKUP(LOWER(CONCATENATE(TRIM($A7),TRIM($B7),TRI M($C7))),Possessed,7,0)
it works finest kind, but when I use:
=VLOOKUP(LOWER(CONCATENATE(TRIM($A7),TRIM($B7),TRI M($C7))),Possessed,Have,0)
(input with "Use in Formula" button, to avoid spelling errors)
I get a #REF error.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Errors when using named ranges

Hi Deina

If you review the syntax below for VLOOKUP(), the 3rd argument is column
number..but you are passing a range.

=VLOOKUP(lookup_value,table_array,col_index_num,ra nge_lookup)

Since your array range starts from Column A the below would work.
=VLOOKUP(LOWER(CONCATENATE(TRIM($A7),TRIM($B7),TRI M($C7))),Possessed,COLUMN(Have),0)

But a general workaround for this would be
=VLOOKUP(lookup_value,Possessed,COLUMN(Have)-COLUMN(Possessed)+1,0)


If this post helps click Yes
---------------
Jacob Skaria


"Deina" wrote:

I'm attempting to use VLookup() to access data in the 7th column of a
different sheet in the same workbook.

I have named the range that I want as "Have", with a range of ='Owned
Hair'!$G$7:$G$153
The range "Possessed" ='Owned Hair'!$A$6:$I$153
(Row 6 is column headers)

If I use the following formula:
=VLOOKUP(LOWER(CONCATENATE(TRIM($A7),TRIM($B7),TRI M($C7))),Possessed,7,0)
it works finest kind, but when I use:
=VLOOKUP(LOWER(CONCATENATE(TRIM($A7),TRIM($B7),TRI M($C7))),Possessed,Have,0)
(input with "Use in Formula" button, to avoid spelling errors)
I get a #REF error.

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
Creating ranges in closed workbooks without #REF errors Conor Excel Discussion (Misc queries) 0 June 26th 07 04:22 PM
Ignore errors when calculation average of multiple ranges joshkraemer Excel Worksheet Functions 4 February 13th 06 10:25 PM
3D Named Ranges David Excel Worksheet Functions 0 June 7th 05 05:22 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
Named Ranges Gary T Excel Worksheet Functions 2 December 27th 04 02:28 AM


All times are GMT +1. The time now is 04:23 AM.

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"