Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default Vlookup second appearance


I have values in col D which I want to lookup. some values appear two
times in that col. I want to lookup data against second appearance of
values if it appear two times.
how can this be done.


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=536707

  #2   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default Vlookup second appearance


data is in following form:

D E

1201 sdfasdf
1206 wersdf
0875 ghjfgjhfgh
0016 werwer
0875 zxcvcv
0775 rthr
1201 rtre

data in col D is not sorted and I cannot sort it for some reasons.
0875 appears two times and I want to Lookup against its second
appearance that is zxcvcv. same is the case with 1201 and so on. I have
many values in col D which appear two times and I want to take value of
col E against second appearance of any value in col D and if col D
contains any value only one time then I want values against it with the
same formula.

thanks heaps in anticipation of quicker reply...


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=536707

  #3   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default Vlookup second appearance

Hi Starguy,

Check out Chip Pearson's Arbitrary Lookup where you can specify which
occurrence to get

http://cpearson.com/excel/lookups.htm

Ken Johnson

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Vlookup second appearance

Assuming you have 0875 in A1

=INDEX(E$1:E$7,MAX(ROW(E$1:E$7)*(D$1:D$7=$A$1),1), 1)
(Array formula: validate with Ctrl+Shift+Enter)

will return the LAST matching result from col E

HTH
--
AP

"starguy" a écrit
dans le message de
...

data is in following form:

D E

1201 sdfasdf
1206 wersdf
0875 ghjfgjhfgh
0016 werwer
0875 zxcvcv
0775 rthr
1201 rtre

data in col D is not sorted and I cannot sort it for some reasons.
0875 appears two times and I want to Lookup against its second
appearance that is zxcvcv. same is the case with 1201 and so on. I have
many values in col D which appear two times and I want to take value of
col E against second appearance of any value in col D and if col D
contains any value only one time then I want values against it with the
same formula.

thanks heaps in anticipation of quicker reply...


--
starguy
------------------------------------------------------------------------
starguy's Profile:

http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=536707



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 Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
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 09:10 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"