+ Reply to Thread
Results 1 to 6 of 6

Trying to lookup the same value and return it multiple times

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Minot, North Dakota
    MS-Off Ver
    Excel 2010
    Posts
    3

    Trying to lookup the same value and return it multiple times

    Hello,

    I have a database with graduating students and their degree information. There is a column with the degree abbreviation (ba, bs, bse, etc.) and one with the full degree title (Bachelor of Arts, Bachelor of Science, etc.). There are nine different degree abbreviations that we use and generally the database has about 600 different students. I'm trying to find if there is a way to lookup the full degree title from the degree abbreviation. I've tried using VLOOKUP and INDEX/MATCH but in each case the data returned is only the first instance of it and everything else comes back as #N/A.

    I've been trying to figure out if this is possible, but I haven't been having much luck. I know I can't be the only person who has needed this, but I'm at a loss for what wording to look for next. I don't know if there is a function/formula that would work for this or if I would have to do something more difficult. If someone could even point me in the right direction I would be very grateful.

    The other option that was mentioned to me was to make the column drop down boxes, but I'm not sure that would work as well or as fast.

    Thanks in advance for any help!
    Chasien

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Trying to lookup the same value and return it multiple times

    You might be using relative addresses in your functions. You might need to add $'s to fix the range in which you are looking up.
    Martin

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    Minot, North Dakota
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Trying to lookup the same value and return it multiple times

    vlookup-index testing.xlsx

    Hello,
    Sorry I didn't respond sooner, I was having computer troubles over the weekend. I tried to attach a copy of the file I am working on, so hopefully it worked. I did try to add the $ in with the formula, but it didn't seem to make a difference. It will pull the correct degree for the first abbreviation, but if the same abbreviation comes up again it pulls an #N/A error.
    This is the code I'm using: =VLOOKUP($F$14,$A$5:$B$8,2,FALSE). I tried to do an Index Match one as well on the first sheet, which does the same thing. This is the other code I tried: =INDEX($D$15:$D$18,MATCH(C3,$C$15:$C$18,0)).

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Trying to lookup the same value and return it multiple times

    One of the reasons you are getting #N/A! errors is that the lookup tables have leading/trailing spaces in the information, try something like this :
    (ARRAY FORMULA, use Cntrl+Shift+Enter, not just Enter) G11:
    Formula: copy to clipboard
    =VLOOKUP(TRIM($F15),TRIM($A$2:$B$7),2,FALSE)

    Drag down

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    Minot, North Dakota
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Trying to lookup the same value and return it multiple times

    It works! Thank you so much! It didn't work at first and then I reread it and used the Cntrl+Shift+Enter and it worked like a charm.
    Thanks again!

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Trying to lookup the same value and return it multiple times

    You are welcome

    Please remember to mark the thread as solved if you are satisfied with your solution :
    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1