#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default vlookup

Is there a way to use vlookup to return the instance value beyond the 1st
instance in the array?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default vlookup

No.

It can be done with other formulas but you need to give us the details.

--
Biff
Microsoft Excel MVP


"dannyboy8" wrote in message
...
Is there a way to use vlookup to return the instance value beyond the 1st
instance in the array?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default vlookup

OK, in column A there is 1 particular identifier that is used 2 times (%,VGP
is the identifier) for different sources of income in column B, and I need to
return only the second instance of "%,VGP". There are no other unique
identifiers to work with in this case.

"T. Valko" wrote:

No.

It can be done with other formulas but you need to give us the details.

--
Biff
Microsoft Excel MVP


"dannyboy8" wrote in message
...
Is there a way to use vlookup to return the instance value beyond the 1st
instance in the array?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default vlookup

Hi,

In this sample formula you are looking for a value (E1) in column A and
returning the corresponding value in column B. F1 should hold the occurrence
so a 3 in F1 returns the 3rd occurrence

=INDEX(B1:B13,LARGE((A1:A13=E1)*ROW(A1:A13),COUNTI F(A1:A13,E1)+1-F1))


This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike
"dannyboy8" wrote:

Is there a way to use vlookup to return the instance value beyond the 1st
instance in the array?

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

Ok, so you want to return the value from column B that corresponds to the
2nd instance of "%,VGP" in column A *and* there are only 2 instances of
"%,VGP" in column A...

=LOOKUP(2,1/(A2:A100="%,VGP"),B2:B100)

--
Biff
Microsoft Excel MVP


"dannyboy8" wrote in message
...
OK, in column A there is 1 particular identifier that is used 2 times
(%,VGP
is the identifier) for different sources of income in column B, and I need
to
return only the second instance of "%,VGP". There are no other unique
identifiers to work with in this case.

"T. Valko" wrote:

No.

It can be done with other formulas but you need to give us the details.

--
Biff
Microsoft Excel MVP


"dannyboy8" wrote in message
...
Is there a way to use vlookup to return the instance value beyond the
1st
instance in the array?








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default vlookup

Sorry Mike, I am just a bit confused on the F1, can you use any cell
reference here? Do you literally enter in the #3 in F1 in this case to return
the 3rd occurrence?

"Mike H" wrote:

Hi,

In this sample formula you are looking for a value (E1) in column A and
returning the corresponding value in column B. F1 should hold the occurrence
so a 3 in F1 returns the 3rd occurrence

=INDEX(B1:B13,LARGE((A1:A13=E1)*ROW(A1:A13),COUNTI F(A1:A13,E1)+1-F1))


This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike
"dannyboy8" wrote:

Is there a way to use vlookup to return the instance value beyond the 1st
instance in the array?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default vlookup

Hi,

E1 & f1 are just 2 cell references I chose. Array enter the formula in
whatever cell you want and change E1 (2 instances) & F1 in the formula to
which ever cell references you want. Then E1 or its equivalent are the lookup
value and F1 or equivalent are the occurence so:

%,VGP in E1
2 in F1

Finds the second occurrence of %,VGP in column A and returns the
corresponding value from column B

Mike

"dannyboy8" wrote:

Sorry Mike, I am just a bit confused on the F1, can you use any cell
reference here? Do you literally enter in the #3 in F1 in this case to return
the 3rd occurrence?

"Mike H" wrote:

Hi,

In this sample formula you are looking for a value (E1) in column A and
returning the corresponding value in column B. F1 should hold the occurrence
so a 3 in F1 returns the 3rd occurrence

=INDEX(B1:B13,LARGE((A1:A13=E1)*ROW(A1:A13),COUNTI F(A1:A13,E1)+1-F1))


This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike
"dannyboy8" wrote:

Is there a way to use vlookup to return the instance value beyond the 1st
instance in the array?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default vlookup

Mike, thought I had this, but I am gettnig a #NUM return in the cell for the
below formula, if I am puling the info from a completely different worksheet
not located
in the same file, does that make a difference?

=INDEX('[G W Pd 12 P&L.xls]P&L'!$P:$P,LARGE(('[G W Pd 12
P&L.xls]P&L'!$B1:$B1000="rental of equipment")*ROW('[G W Pd 12
P&L.xls]P&L'!$B1:$B1000),COUNTIF('[G W Pd 12 P&L.xls]P&L'!$B1:$B1000,"rental
of equipment")+1-$E$47))

"Mike H" wrote:

Hi,

E1 & f1 are just 2 cell references I chose. Array enter the formula in
whatever cell you want and change E1 (2 instances) & F1 in the formula to
which ever cell references you want. Then E1 or its equivalent are the lookup
value and F1 or equivalent are the occurence so:

%,VGP in E1
2 in F1

Finds the second occurrence of %,VGP in column A and returns the
corresponding value from column B

Mike

"dannyboy8" wrote:

Sorry Mike, I am just a bit confused on the F1, can you use any cell
reference here? Do you literally enter in the #3 in F1 in this case to return
the 3rd occurrence?

"Mike H" wrote:

Hi,

In this sample formula you are looking for a value (E1) in column A and
returning the corresponding value in column B. F1 should hold the occurrence
so a 3 in F1 returns the 3rd occurrence

=INDEX(B1:B13,LARGE((A1:A13=E1)*ROW(A1:A13),COUNTI F(A1:A13,E1)+1-F1))


This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike
"dannyboy8" wrote:

Is there a way to use vlookup to return the instance value beyond the 1st
instance in the array?

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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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