More than a VLookup, Less than VB?

Bundy

New Member
Joined
Jul 18, 2007
Messages
49
Hi Guys,

Long time Reader of the Forums, but first time poster! Keep up the awesome help!

My current problem is that Vlookup only looks at the top item in a data file that meets the condition and doesn't more on.

File 1 is a flat data file just for storing Team, Name, Values
File 2 will be a calculation file that's needs to be able to self-generate the list of name, then a vlookup can be used to bring the data across.

Any suggestions or is excel limited in this and VB script is needed?

File 1(The Data):
Ford Explorers Jan Jubb 6 1 2 0 2 0
Ford Explorers Joe Smith 6 4 2 0 2 0
Ford Explorers John Bloggs 6 1 2 0 2 0
Ford Mustangs Jim Mayer 0 0 0 0 10 1
Ford Mustangs Martin Jones 6 1 2 0 2 0
Ford Mustangs Michele Mamm 6 1 2 0 2 0
Ford Mustangs Ross Salo 6 1 2 0 2 1
Holden HSV Joy Jubes 6 2 2 0 2 1
Holden HSV Natalie Bunny 6 2 2 0 2 0
Holden HSV Kate Smith 6 4 2 0 2 0
Holden HSV Debbie Jones 6 0 2 0 2 0
Holden HSV Samantha Bloggs 6 1 2 1 2 0

File 2(The Calculation):
Team Name: Ford Explorers

First name from Data File from this team
Second Name from Data File from this team
Etc
Etc
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Welcome to the Board!

This may be a good job for a Pivot Table.

The helpfile has a good tutorial on setting them up.

Hope that helps,

Smitty

EDIT: walk away for dinner and Aladin comes up with a beaut, as usual! :LOL:
 
Upvote 0
I had thought of a pivot table, but that would mean manual selection if you only wanted the one team?

EG Only want Ford Explorers in this sheet - you would have to unselect all other teams from the selection box at the top.
 
Upvote 0
I had thought of a pivot table, but that would mean manual selection if you only wanted the one team?

EG Only want Ford Explorers in this sheet - you would have to unselect all other teams from the selection box at the top.
Book3
ABCDEFGHIJK
1TeamNameValues
2Ford ExplorersJan Jubb612020Ford Explorers
3Ford ExplorersJoe Smith6420203
4Ford ExplorersJohn Bloggs612020Jan Jubb
5Ford MustangsJim Mayer0000101Joe Smith
6Ford MustangsMartin Jones612020John Bloggs
7Ford MustangsMichele Mamm612020 
8Ford MustangsRoss Salo612021
9Holden HSVJoy Jubes622021
10Holden HSVNatalie Bunny622020
11Holden HSVKate Smith642020
12Holden HSVDebbie Jones602020
13Holden HSVSamantha Bloggs612120
Sheet1


K3:

=COUNTIF(A2:A13,K2)

K4:

Control+shift+enter...

=IF(ROWS($K$4:K4)<=$K$3,INDEX($B$2:$B$13,SMALL(IF($A$2:$A$13=$K$2,ROW($A$2:$A$13)-ROW($A$2)+1),ROWS($K$4:K4))),"")

then copy down.
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top