Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15
Default Vlookup problem

Hi
I have a set of data where colum A has a lerner Name
Column B has the different units that learner is enrolled for Example
English, Maths, Physics, Biology (Max 4 units for each learner).
Column C has marks for each unit.

So one learner can have 4 Rows and 3 columns, now when i want to lookup
function, I want it to lookup for a learner Garry and find his marks in each
unit.

How can i do it? Please help, it will be much appriciated.! Thanka
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35
Default Vlookup problem

Does sorting the data by learning bring up the results you're looking for?

"Garry" wrote:

Hi
I have a set of data where colum A has a lerner Name
Column B has the different units that learner is enrolled for Example
English, Maths, Physics, Biology (Max 4 units for each learner).
Column C has marks for each unit.

So one learner can have 4 Rows and 3 columns, now when i want to lookup
function, I want it to lookup for a learner Garry and find his marks in each
unit.

How can i do it? Please help, it will be much appriciated.! Thanka

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,073
Default Vlookup problem

On Jan 22, 8:48*am, Garry wrote:
Hi
I have a set of data where colum A has a lerner Name
Column B has the different units that learner is enrolled for Example
English, Maths, Physics, Biology (Max 4 units for each learner).
Column C has marks for each unit.

So one learner can have 4 Rows and 3 columns, now when i want to lookup
function, I want it to lookup for a learner Garry and find his marks in each
unit.

How can i do it? Please help, it will be much appriciated.! Thanka


One way...

Put this in D2 and fill down to bottom of data...

=IF(A2=$E$1,ROW(),"")

Column D is a helper column and could be hidden.

Use E1 for typing the name of the student whose units and results you
want to look up.

Put this in F1 and fill down to F4...

=IF(ISERROR(SMALL($D$1:$D$8,ROWS($1:1))),"",INDEX( $B$1:$B$8,MATCH(SMALL
($D$1:$D$8,ROWS($1:1)),$D$1:$D$8,0)))

Column F will show the Units done by the student whose name is in E1.

Put this in G1 and fill down to G4 to show the unit scores...

=IF(ISERROR(SMALL($D$1:$D$8,ROWS($1:1))),"",INDEX( $C$1:$C$8,MATCH(SMALL
($D$1:$D$8,ROWS($1:1)),$D$1:$D$8,0)))

Ken Johnson
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,073
Default Vlookup problem

I forgot to add that you can either change all the 8s in the last two
formulas to suit the number of rows in your data or use entire columns
like...

=IF(ISERROR(SMALL($D:$D,ROWS($1:1))),"",INDEX($B:$ B,MATCH(SMALL($D:
$D,ROWS($1:1)),$D:$D,0)))

Ken Johnson
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 Belinda7237 Excel Worksheet Functions 7 June 15th 08 01:19 PM
Vlookup problem dk New Users to Excel 2 May 4th 08 11:26 PM
VLOOKUP problem with using a - MrSales Excel Worksheet Functions 3 May 31st 06 12:05 AM
vlookup problem shrutikhurana Excel Discussion (Misc queries) 2 February 9th 06 01:52 PM
VLookup problem K Excel Worksheet Functions 6 June 8th 05 10:35 PM


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