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 Use vlookup to bring back data from second occurrence of the value

I have a list of people in an excel spreadsheet (column 1).
In column 2 is the name of the person who introduced the person in column 1
to the list (the introducers name also appears in column 1).
Column 3 is a repeat of column 1 (for vlookup to work).
In other words column contains the same name more than once.
In Column 4 I want the name of the first person introduced by the
introducer, which a simple vlookup using column 2 & 3 works.
In Column 5 I want the name of the second person introduced by the
introducer, i.e. I want vlookup to bring back the value in column 3 for the
second row in which the value in column 1 appears in column 2.
In Column 6 I want the name of the third person etc
How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Use vlookup to bring back data from second occurrence of the value

You don't need the temporary Col C. If you are looking to get data as shown
below. ColC retrieves the 1st matching record of John ColD retreives the
second and so on. Please note that this is an array formula. Within the cell
in edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

Try this formula in C1 and copy across to D1, E1 etc;

=INDEX($A:$A,SMALL(IF($B$1:$B$1000<$B1,"",($B$1:$ B$1000=$B1)*ROW($B$1:$B$1000)),COLUMN(A1)))

Col A Col B Col C Col D Col E
A John A B C
E Mary
F Serra
B John
G Phil
H Ben
C John

If this post helps click Yes
---------------
Jacob Skaria


"TinkieO" wrote:

I have a list of people in an excel spreadsheet (column 1).
In column 2 is the name of the person who introduced the person in column 1
to the list (the introducers name also appears in column 1).
Column 3 is a repeat of column 1 (for vlookup to work).
In other words column contains the same name more than once.
In Column 4 I want the name of the first person introduced by the
introducer, which a simple vlookup using column 2 & 3 works.
In Column 5 I want the name of the second person introduced by the
introducer, i.e. I want vlookup to bring back the value in column 3 for the
second row in which the value in column 1 appears in column 2.
In Column 6 I want the name of the third person etc
How do I do this?

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 - Choose Which Occurence of Lookup value to bring back CHACHING Excel Discussion (Misc queries) 2 July 3rd 09 01:22 PM
Can I use cell data for a web search & bring back in the results? Jason Excel Worksheet Functions 1 April 22nd 09 12:30 AM
Bring back ability to move data points in charts by dragging&dropp wildetudor Charts and Charting in Excel 5 January 28th 09 09:59 PM
How do I. VLOOKUP & BRING BACK THE CELL BELOW THE CELL WHICH IS FO Chris Excel Worksheet Functions 2 November 16th 06 02:42 AM
Match Last Occurrence of Numeric Value and Count BACK to Previous Sam via OfficeKB.com Excel Worksheet Functions 4 November 24th 05 02:15 AM


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