+ Reply to Thread
Results 1 to 4 of 4

Lookup cell entry on header row, search within that column for another entry return adjace

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Nevada
    MS-Off Ver
    Excel 365
    Posts
    17

    Lookup cell entry on header row, search within that column for another entry return adjace

    Good Evening,

    I am making a livestock entry form. My data is in the data tab.

    I have it so if I enter the division number (L) on the Entry tab it returns the specie (M) from the data tab.

    What I can't figure out is for Column O (Class Name). I need it to look up the specie selected (Beef for M2) on row 1 of the Data tab which would be Column E for beef. Then I need it to look within that selected column and find the entered entry Class (N from the Entry tab) and return the adjacent data (Class Name) which would be "Senior Bull Calf" in this specific situation.

    Columns L M N O
    For second row would be 100 Beef 09 Senior Bull Calf
    For the next entry it would be 105 Swine 07 Homegrown Swine

    I have tried Xlookup, Vlookup, If and others I thought might work but I can't seem to get it.

    Thank you,
    Cara
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,620

    Re: Lookup cell entry on header row, search within that column for another entry return ad

    .....Your table names, range names and column headers are conflicting and confusing.
    .....I deleted all of those one column tables and created two column tables in their places, e.g. beef/beefnames, etc.,
    using the upper left cell value as the name.

    .....I had to use he INDIRECT function in the data validation formulas for Entry column L (divisions):
    Please Login or Register  to view this content.
    Return species to column M with:
    Please Login or Register  to view this content.
    Meat ID (column N, data validation):
    Please Login or Register  to view this content.
    Meat description (col O):
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Nevada
    MS-Off Ver
    Excel 365
    Posts
    17

    Re: Lookup cell entry on header row, search within that column for another entry return ad

    Thank you sooo much, you did exactly what I wanted and so much more. I cannot begin to tell you how much I appreciate this. Thank you also for taking the time clean it up and showing what you did in each area to assist me in learning. Thank you I was ready to cry in frustration.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Lookup cell entry on header row, search within that column for another entry return ad

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Find last entry in row and return column header name
    By cralph78 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-06-2014, 05:34 AM
  2. [SOLVED] Find last entry in row and return column header
    By cralph78 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-01-2014, 08:26 AM
  3. [SOLVED] Need formula to return column header name for first entry on each row greater than zero
    By TotallyLost in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2014, 10:56 AM
  4. Replies: 1
    Last Post: 11-13-2013, 04:03 PM
  5. Replies: 7
    Last Post: 07-09-2012, 11:48 AM
  6. Lookup multiple coloums and return corresponding column entry
    By prashe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-26-2011, 11:14 PM
  7. Return entry in column above/below cell
    By TheRobsterUK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2005, 11:34 AM

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