+ Reply to Thread
Results 1 to 8 of 8

data validation help: referencing one cell and selecting data from the adjacent cell

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2007/10
    Posts
    4

    data validation help: referencing one cell and selecting data from the adjacent cell

    I have two columns of data. the first holds team member names and the second holds their member number. I need to report individual member scores by referencing their member number only. I think that I can use data validation but have not been able to get the results that I need. Can anyone help?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: data validation help: referencing one cell and selecting data from the adjacent cell

    Welcome to the Forum gunsafety !

    It's usually better to describe your problem rather than suggesting how you expect to solve it. This does not sound like a data validation problem to me. How do you want to determine the member number? Do you type in a name and need to retrieve the member number? If your two columns of data are in A and B, and you type a member name in C1, this gives you the member number:

    Please Login or Register  to view this content.
    If that's not what you mean, then please give a more detailed description of how the data is organized in your file, what input the user will provide and where, and what you want the output to look like and where.

    The best thing would be to attach a file with no private data. The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-08-2013
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2007/10
    Posts
    4

    Re: data validation help: referencing one cell and selecting data from the adjacent cell

    On sheet 1, I have a list of 99 competitors in column A and their member I.D. numbers in column B.
    On sheet 2, I have a score report form on which I must enter only the I.D. of those competitors that participated in the match.
    I would like to enter a name on sheet 2 and have the correct I.D. number inserted on the report.
    Attached Files Attached Files

  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
    80,728

    Re: data validation help: referencing one cell and selecting data from the adjacent cell

    This will only work if your names are unique:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    1
    name
    I.D.number
    2
    ADAM
    13579
    Adam
    13579
    3
    SARAH
    2468
    4
    JAMES
    75315
    5
    BILLY
    4237514
    6
    MARIA
    17570
    7
    CAROL
    154862
    8
    DAVID
    286001
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    F
    2
    =VLOOKUP(E2,$A$2:$B$8,2,0)
    Sheet: Sheet1
    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.

  5. #5
    Registered User
    Join Date
    01-08-2013
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2007/10
    Posts
    4

    Re: data validation help: referencing one cell and selecting data from the adjacent cell

    Thaw works fine and I can use it, but for one concern.
    Some team members have difficult last names to spell (Kalinichenko, Bianchini, etc.).
    It would be better if I could pick the name from a drop-down list, to avoid errors caused by misspellings.
    Each match will have up to 40 competitors, so I would like the recording process to be as direct as possible.

    Though I have used Excel for a few years, I am not adept at the myriad of functions available.
    I have taken no instruction other than basic Excel.

    Thank you for your help.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: data validation help: referencing one cell and selecting data from the adjacent cell

    I have created a dynamic named range called NameList. To create the dropdown, I used Data Validation with a List, using NameList as the range for the list.

    The lookup is done as in the VLOOKUP demonstrated above.

    The formula for the dynamic named range is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This means start the list in A2. The 0,0 means to offset the starting cell by 0 rows and 0 columns, in other words, do not offset the start. The COUNTA formula counts how many names there are in column 1 and "-1" is to allow for the heading. So this range is the list of names.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-08-2013
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2007/10
    Posts
    4

    Re: data validation help: referencing one cell and selecting data from the adjacent cell

    That works wonderfully.
    Thank you very much for taking the time to help me!

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: data validation help: referencing one cell and selecting data from the adjacent cell

    You're welcome, and thanks for marking your thread Solved.

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

+ 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. Replies: 2
    Last Post: 11-18-2015, 09:37 AM
  2. [SOLVED] Data Validation Formula based on adjacent cell
    By nawas in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-05-2013, 06:40 PM
  3. Formula to show an adjacent cell to the one picked in a data validation list
    By sengatwork in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2013, 02:30 PM
  4. Editing Code: Selecting multiple items in a cell via data validation
    By baker2145 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2013, 06:13 PM
  5. Replies: 1
    Last Post: 08-08-2011, 06:28 PM
  6. Run Macro when selecting from in-cell list (data validation)
    By 4am in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2010, 04:57 PM
  7. [SOLVED] Data Validation does not work when selecting another cell.
    By Simon Jefford in forum Excel General
    Replies: 5
    Last Post: 06-29-2005, 07:05 PM

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