VLOOKUP help

Kazman

New Member
Joined
Mar 24, 2011
Messages
11
I have a sheet (*edit* Excel 2010) that will track a set of instructors, the classes they teach, the hours taught and a few other fields.

I have a dedicated sheet for helper-cells, so I don't mind if it's ugly, I just want it to work. **I know it is likely more effecient with VBA, but this sheet will outlast my time here and needs to be fixable/updateable by someone with no VBA experience**

I'm having trouble with finding a way to show the instructors when a coursename is selected (my metrics are all based on a drop-down list cell).

required end result: When a user selects a coursename from the dropdown list in cell A6, the sheet should list all of the instructors who have taught that course.

This should work, but it's not working:

=VLOOKUP(A6,TableMain,2,FALSE)

A6 is the selected course#
TableMain has the following headers:
Date InstructorName Type of Hours Coursename Hours

the vlookup formula should look at what's in cell A6 (coursename) and try to match it with the data in TableMain and if it finds a match, return the value of column2 (instructor name) in that row right?

I keep getting N/A. Not sure what I'm doing wrong.
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I was looking through other posts and got an idea to try, and it worked... sort of:

I used this instead
=INDEX(Main!C:C,MATCH($A$6,Main!E:E,0))

It returns the instructor name like I want it to, but only the first one.

lets say Smith taught that class 3 times and Johnson twice. I want it to show Smith in this cell and Johnson in the cell below it. Copying the formula down doesn't work. It just shows Smith over and over.
 
Upvote 0

Forum statistics

Threads
1,224,578
Messages
6,179,654
Members
452,934
Latest member
mm1t1

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