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 VLookup Enhancement

I have two suggestions to improve VLookup:

1. Add an optional parameter that provides a result if the Vlookup returns
NA so that you don;t need to wrap it in an If (ISNA...

2. Make the column offset capable of negative values so that you can offset
to the left of the reference column.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default VLookup Enhancement


"Alan Perkins" wrote in message
...
I have two suggestions to improve VLookup:

1. Add an optional parameter that provides a result if the Vlookup returns
NA so that you don;t need to wrap it in an If (ISNA...



they have done that in Excel 2007 with the IFERROR function

=IFERROR(VLOOKUP(B1,K1:M10,2,FALSE),"")


2. Make the column offset capable of negative values so that you can
offset
to the left of the reference column.



Problem with that is you are the asking it to get a value from a column that
is not in lookup table, a problem It is easily simulated with

=INDEX(A;A,MATCH(lookup_value,B:C,0))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLookup Enhancement

I like both of your suggestions but I wouldn't hold my breath hoping for
those to be implemented.

If you use excel 2007 you can use the IFERROR function to trap #N/A:

=IFERROR(VLOOKUP(A1,F1:G10,2,0),"")

Note that this will trap *all* errors, not just #N/A.

Much better than the pedantic:

=IF(ISNA(VLOOKUP(A1,F1:G10,2,0)),"",VLOOKUP(A1,F1: G10,2,0))

Another shorter alternative:

=IF(COUNTIF(F1:F10,A1),VLOOKUP(A1,F1:G10,2,0),"")

As far as the left lookup....

=INDEX(E1:E10,MATCH(A1,F1:F10,0))



--
Biff
Microsoft Excel MVP


"Alan Perkins" wrote in message
...
I have two suggestions to improve VLookup:

1. Add an optional parameter that provides a result if the Vlookup returns
NA so that you don;t need to wrap it in an If (ISNA...

2. Make the column offset capable of negative values so that you can
offset
to the left of the reference column.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 783
Default VLookup Enhancement

Alan Perkins wrote:
I have two suggestions to improve VLookup:
. . .
2. Make the column offset capable of negative values so that you can offset
to the left of the reference column.


If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, you can use

=VLookupLeft

It also allows any column of the lookup array, rather than just the
lefthand column, to be used as the lookup column.

Alan Beban
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
DATEDIF formula enhancement Santa-D Excel Worksheet Functions 10 November 9th 06 01:14 PM
Index/ Match enhancement needed charles Excel Discussion (Misc queries) 3 September 15th 06 07:11 AM
Excel Grouping Enhancement silverliningboy Excel Worksheet Functions 0 May 15th 06 07:07 PM
Enhancement request for showing the selection of rows in MS Excel Purushottam Abuj Excel Worksheet Functions 0 February 10th 06 12:20 PM
Enhancement to Print Preview in Excel Kanda Excel Discussion (Misc queries) 1 December 23rd 05 09:38 PM


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