Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 56
Default Vlookup - Last found entry within table

Hi All,

I currently have the following VLOOKUP which queries another sheet
within the workbook that contains a set of data from a query. This
works fine until recently when the data system introduced version
controls on records. Now there could be two lines for the same
reference (i.e. B11, in this example, could have reference to record
1. But record 1 could now contain a line within the Data sheet at
line 5, for version 1, and line 28, for version 2 etc...etc...).

What I'd like to be able to do is to say within the following bring
back the last row that contains the entry defined within B11, almost
to have the formula working from the bottom of the range upwards or
any other means to achieve this?

=IF(ISERROR(VLOOKUP($B11,Data!OpenRecords,
2,FALSE)),"",VLOOKUP($B11,Data!OpenRecords,2,FALSE ))

Thanks in advance, Al.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup - Last found entry within table

Try this,

=IF(ISERROR(LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F28)),"",LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F29))

Note this doesn't use your named range because of the way the formula works
so
E1:E28 is the left column of your named range
F1:F28 is the second column

Mike


" wrote:

Hi All,

I currently have the following VLOOKUP which queries another sheet
within the workbook that contains a set of data from a query. This
works fine until recently when the data system introduced version
controls on records. Now there could be two lines for the same
reference (i.e. B11, in this example, could have reference to record
1. But record 1 could now contain a line within the Data sheet at
line 5, for version 1, and line 28, for version 2 etc...etc...).

What I'd like to be able to do is to say within the following bring
back the last row that contains the entry defined within B11, almost
to have the formula working from the bottom of the range upwards or
any other means to achieve this?

=IF(ISERROR(VLOOKUP($B11,Data!OpenRecords,
2,FALSE)),"",VLOOKUP($B11,Data!OpenRecords,2,FALSE ))

Thanks in advance, Al.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup - Last found entry within table

Oops typo

=IF(ISERROR(LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F28)),"",LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F28))


"Mike H" wrote:

Try this,

=IF(ISERROR(LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F28)),"",LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F29))

Note this doesn't use your named range because of the way the formula works
so
E1:E28 is the left column of your named range
F1:F28 is the second column

Mike


" wrote:

Hi All,

I currently have the following VLOOKUP which queries another sheet
within the workbook that contains a set of data from a query. This
works fine until recently when the data system introduced version
controls on records. Now there could be two lines for the same
reference (i.e. B11, in this example, could have reference to record
1. But record 1 could now contain a line within the Data sheet at
line 5, for version 1, and line 28, for version 2 etc...etc...).

What I'd like to be able to do is to say within the following bring
back the last row that contains the entry defined within B11, almost
to have the formula working from the bottom of the range upwards or
any other means to achieve this?

=IF(ISERROR(VLOOKUP($B11,Data!OpenRecords,
2,FALSE)),"",VLOOKUP($B11,Data!OpenRecords,2,FALSE ))

Thanks in advance, Al.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 56
Default Vlookup - Last found entry within table

Mike,
Thanks for your help - Much appreciated. Had amended the typo but
thanks for noticing.

Cheers, Al.
On Sep 30, 10:30*am, Mike H wrote:
Oops typo

=IF(ISERROR(LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F28)),"",LOOKUP(2,1/(Data!*E1:E28=B11),Data!F1:F28))



"Mike H" wrote:
Try this,


=IF(ISERROR(LOOKUP(2,1/(Data!E1:E28=B11),Data!F1:F28)),"",LOOKUP(2,1/(Data!*E1:E28=B11),Data!F1:F29))


Note this doesn't use your named range because of the way the formula works
so
E1:E28 is the left column of your named range
F1:F28 is the second column


Mike


" wrote:


Hi All,


I currently have the following VLOOKUP which queries another sheet
within the workbook that contains a set of data from a query. *This
works fine until recently when the data system introduced version
controls on records. *Now there could be two lines for the same
reference (i.e. B11, in this example, could have reference to record
1. *But record 1 could now contain a line within the Data sheet at
line 5, for version 1, and line 28, for version 2 etc...etc...).


What I'd like to be able to do is to say within the following bring
back the last row that contains the entry defined within B11, almost
to have the formula working from the bottom of the range upwards or
any other means to achieve this?


=IF(ISERROR(VLOOKUP($B11,Data!OpenRecords,
2,FALSE)),"",VLOOKUP($B11,Data!OpenRecords,2,FALSE ))


Thanks in advance, Al.- Hide quoted text -


- Show quoted text -


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
how to remove #n/a error in excel vlookup b/c value is not found? B. Franklin Saunders Excel Worksheet Functions 20 April 27th 23 03:44 AM
Alternative for Vlookup output of #N/A if data not found? mcmilja Excel Discussion (Misc queries) 4 May 8th 08 07:20 PM
VLookup Value not found ? Jeff C Excel Discussion (Misc queries) 6 October 14th 07 11:56 PM
Vlookup, return zero if not found molsansk Excel Worksheet Functions 2 August 22nd 06 06:40 PM
vlookup not found BadgerDave Excel Worksheet Functions 1 April 11th 06 03:29 PM


All times are GMT +1. The time now is 09:39 PM.

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"