+ Reply to Thread
Results 1 to 5 of 5

Reusable drop down menu to populate data

  1. #1
    Registered User
    Join Date
    11-29-2005
    Location
    Mankato, Minnesota
    Posts
    14

    Question Reusable drop down menu to populate data

    Ok I'm making a job cost sheet for my boss so that he can enter in the information for a job and have it calculate out the total for him.
    I'm trying to make this as fool proof and simple as possible since he's not very good with computers.

    I'd like to create a drop down list so that he can select an employee name and it will automatically input the pay rate in the cell to the right.


    So in my sheet I have created the drop down list in column (G) with the list of employees in the "dataValidation" worksheet.

    I want him to be able to select an employee in the (G) column (i.e. G4) and then have it insert the correct pay rate in the the (H) column (i.e. H4) so that when he enter the hours (in the I column) it will calculate out the total in column J.

    He needs to be able to reuse this drop down list also for multiple employees going to a job so I'm guessing I'm going to need to use a macro somehow?

    Any help would be great!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    351

    Re: Reusable drop down menu to populate data

    I would just write IF statements in column H. Something like =IF(G4=dataValidation!$A$2,dataValidation!$B$2,IF(G4=dataValidation!$A$3,$B$3,"No Match Found"))

    You'll need to expand this IF statement to look at each employee name cell. I can help you with that if you need assistance.

    You could also write VLOOKUP formulas in column H as well to look up the appropriate rate for an employee, this option may be easier to work with if you need to add/delete rows from the dataValidation sheet in the future

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Reusable drop down menu to populate data

    Hi G33kman

    In the attached I've modified the definition of your Named Range "Employees"...it's now Dynamic...as you add Names the Named Range expands to include them. I've also added Data Validation to Column G of Pricing Sheet.

    This Code is in the Worksheet Pricing Module
    Please Login or Register  to view this content.
    I also got rid of the fancy formatting on Sheet datavalidation...hide it...your Boss does not need to see this sheet. However, YOU need to maintain it.
    Try it...let me know of issues.
    Attached Files Attached Files
    Last edited by jaslake; 02-14-2013 at 11:02 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    11-29-2005
    Location
    Mankato, Minnesota
    Posts
    14

    Re: Reusable drop down menu to populate data

    Ahh!!! SO close! Lol Ok I have pretty much got this sheet complete but I had to move the payrate for the employee to a different sheet so that when other people are using it they can't see these prices. I copied over the data but when I select an employee from the drop down it still inserts the rate to the right of that column...
    I'll upload what I have and if someone could help that would be great.

    BTW Thanks Jaslake for the solution I wouldn't have been able to figure that out on my own... Lol
    Attached Files Attached Files

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Reusable drop down menu to populate data

    Hi G33kman

    I'm not clear on your issue...see if this handles it
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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