+ Reply to Thread
Results 1 to 7 of 7

Refering to specific entry in a drop down list

  1. #1
    Registered User
    Join Date
    08-28-2010
    Location
    Earth
    MS-Off Ver
    Excel 2019
    Posts
    14

    Refering to specific entry in a drop down list

    I'm creating an excel document to record all the statistics from a driving championship but I've run into a problem, this is hard for me to explain but I'll do my best...

    I have a worksheet called 'Names' which has a list of driver names on it.
    I then have a worksheet for each race, with all the results.

    On a worksheet called 'DriverStats', I have a drop down menu made up of all the driver names, and depending on the selected driver all of the stats on this worksheet change appropriately.

    But, I now want another worksheet 'Tables', which displays stats for several drivers together. If I make a reference to the 'DriverStats' worksheet, then of course the value returned depends on whoever happens to be selected in the drop down menu.

    Is there a way of referring to a cell on the 'DriverStats' worksheet, AND tell excel to return the value based on a specific selection from the drop down menu on that worksheet?

    The problem is, most of the statistics on the 'DriverStats' sheet have very complex forumlas, and often one stat effects other stats, so I don't want to have re enter any complex formulas on the 'Tables' sheet, rather I would like to simple use a cell reference.

    I hope that is clear heh

    Any help would be much appreciated.

    Cheers,
    Dave.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Refering to specific entry in a drop down list

    Hi Dave,

    The answer is probably yes but we really need to see your workbook in order to advise further. Would you upload it?

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-28-2010
    Location
    Earth
    MS-Off Ver
    Excel 2019
    Posts
    14

    Re: Refering to specific entry in a drop down list

    Ok I've attached the document.

    Here's the problem - on the 'Driver Statistics' worksheet, cell D2 is a drop down menu with a list of drivers. You can see, for example, that driver Ben Phillips has made 3 starts.

    On the worksheet 'Tables', I would like to list how many starts each driver has made, so cell C8 should show 3 (as Ben Phillips has made 3 starts).

    But obviously, I can't just put ='Driver Statistics'!D6 into C8, because as soon as I change my selection in the drop down menu the value changes.

    So is there some way to constantly refer to the value of cell 'Driver Statistics'!D6 for Ben Phillips, regardless of who is selected in the drop down menu?

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Refering to specific entry in a drop down list

    Hi,

    See the attached for one approach.

    Regards
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-28-2010
    Location
    Earth
    MS-Off Ver
    Excel 2019
    Posts
    14

    Re: Refering to specific entry in a drop down list

    Ok I see what you've done. Your help is very much appreciated Richard!

    But what I wanted to do was have the worksheet you edited, contain various stats, not just the starts. If you look at the new workbook I've uploaded you'll see what I mean.

    I'm beginning to think that I will either have to create a worksheet for each driver, or completely re think the design of the workbook.

    All this excel stuff gives me a headache
    Attached Files Attached Files

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Refering to specific entry in a drop down list

    Hi David,

    OK understood.

    I was going to suggest that you would simplify your task immensely if you redesigned your basic data so that it was in a single simple database table. This approach allows you to analyse / summarise data more easily and more importantly it facilitates the use of Pivot Tables.

    Once you have the basic design working you can then add bells and whistles like a data entry form which you could use to add new data to the database.

    I'm attaching a suggested approach.

    Note that I've left out of the database any Team references since it seems to me that these can be implied by using a VLOOKUP where necessary, and it would be better to add an extra column to your drivers tables in the Codes sheet cols B:D for this.

    Hope this gives you some ideas.

    Rgds
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-28-2010
    Location
    Earth
    MS-Off Ver
    Excel 2019
    Posts
    14

    Re: Refering to specific entry in a drop down list

    Ok I'll have a deeper look into pivot tables and re think the design. This is the first workbook I've ever really worked on and I've still a lot to learn.

    Thank you very much for all of your help!

+ 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