Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Vlookup "#REF!" error when using last column of array

On 30 juil, 23:05, "T. Valko" wrote:
Dang! I missed an entire word!

If your table is 5 columns then the column_index_num argument can be
greater than 5.


Should be:

If your table is 5 columns then the column_index_num argument can *not* be
greater than 5.

--
Biff
Microsoft Excel MVP

"T. Valko" wrote in message

...



Post the formula so we can take a look. The #REF! error tells me you're
trying to reference outside the table_array. If your table is 5 columns
then the column_index_num argument can be greater than 5.


--
Biff
Microsoft Excel MVP


"lezaheam" wrote in message
....
I'm usingVLookupon a array of fivecolumn.
It works fine except if I lookup on the lastcolumnof the array.
It returns a "#REF!" error.


Is there a known problem withVLookupand the lastcolumnof arrays?


thanks- Masquer le texte des messages précédents -


- Afficher le texte des messages précédents -



Hi and thanks to all

my formula is
ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-7],old,5,FALSE)),
0,VLOOKUP(RC[-7],old,5,FALSE))"

"old" goes from B2 to F5001

however, this monring, I did manage to solve the problem by extending
"old" to G5001
but there's absolutly nothing in column G of the range, not even a
column header.

so i'm still confuse to why I have to extend the range to encompass a
column where there's nothing.

thanks
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
Insert row/column error "Cannot shift object off sheet" Michelle Roach Excel Discussion (Misc queries) 2 May 23rd 08 05:51 PM
How do I change the column heading in Excel to display "A" "B" "C Thai New Users to Excel 1 November 30th 07 08:06 PM
"Type mismatch" when I try to fill an Array variable with "+" [email protected] Excel Discussion (Misc queries) 1 April 17th 07 01:28 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
Shortcut key for "Paste Options" and "Error Checking" buttons? johndog Excel Discussion (Misc queries) 1 October 6th 06 11:56 AM


All times are GMT +1. The time now is 07:15 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"