I have 2 excel charts of different lengths. One has a list of students and their majors. Another chart has a list of student classes. It looks basically like this:
CHART 1
Anderson | BIO
Bloom | CHEM
Charles | CHEM
Johnson | LING
Stevens | HIST
CHART 2
Anderson | History of Africa
Anderson | Calculus
Anderson | French
Anderson | Sociology
Bloom | Advanced Basketweaving
Bloom | Calculus
Charles | Singing
Charles | Calculus
Charles | Woodworking
Charles | Italian
Johnson | Sociology
Johnson | Logistics
Johnson | Business
Stevens | Marketing
I’m trying to get one chart that combines the information – basically having the major listed as a third column. I’ve tried writing an IF formula but I can’t quite get it to work out since the lists are of a different length. Basically try to get it to repeat majors as long as the student name remains the same. Maybe I’m going about it the wrong way.
Actually, the “FALSE” part of the function (known as the “Range_Lookup” option) says “Find an exact match”. When you use VLOOKUP this way you do not have to have the lookup table sorted.
However, if Range_Lookup is TRUE, then VLOOKUP will return the value closest, but not exceeding the search value. For this to work properly the lookup table must be sorted.