+ Reply to Thread
Results 1 to 5 of 5

Changing values based on drop down menu selection

  1. #1
    Registered User
    Join Date
    06-23-2008
    Posts
    29

    Changing values based on drop down menu selection

    Attached is the file i am working with. The table spanning from A:AA5:16 contains hours worked per day of the week with respect to the Project chosen from the drop down menus in A7:16. Cells in the range of F,K,O,R,U,X,AA7:16 total those hours worked on a daily basis.
    The table below should sum the total hours worked per day according to the Project selected in A19 from the drop down menu, with respect to the Project(s) chosen in cell range A7:16.
    For example, if i am looking for total hours worked Monday on Project RSB i select "RSB" from the drop down menu in cell A19, i want cell F18:19 to be the sum of cells A7 and A9, with respect to the Project selected from cells A7:16.
    If I select "FRG" from the drop down in cell A19, i want cell F18:19 to reflect the sum of cells F8 and F10.

    Thank you, preemptively, for any help with this problem.
    Attached Files Attached Files
    Last edited by henro8; 12-16-2009 at 12:33 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Changing values based on drop down menu selection

    Hi henro8,

    a simple SUMIF should do the trick,

    =SUMIF($A$7:$A$16,$A19,F7:F16)

    Format the result with custom format [hh]:mm

    you may want to get rid of the #Value! errors by encasing the time calculation in an IFERROR()

    =IFERROR(E7-B7,"")



    hth

  3. #3
    Registered User
    Join Date
    06-23-2008
    Posts
    29

    Re: Changing values based on drop down menu selection

    thanks so much teylyn! that was all a huge help, and much more simple than i had anticipated.

  4. #4
    Registered User
    Join Date
    07-11-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Assigning and Adding Numerical Values From Drop Down Menu

    Hello,

    I am trying to create a schedule in which instead of putting a shift such as "8 am-4 pm" in a cell, I choose from a drop down menu either full shift AM, Full shift PM, etc. I want to assign the total number of hours worked per shift to each drop down menu option. Ex: full day AM= 8 am-4 pm so it would equal 8 hrs worked. I then want to add all these hours worked per day to make a weekly total. Ex: Monday 8 hrs, Tues 6 hrs= 14 hrs weekly.

    Can you please guide me to the proper equation to do this? I tried using the Lookup function but would constantly get errors such as #Value!, or #Name?, #Ref?, or N/A.

    I have attached the template I am working on.

    Thanks in advanced.
    Attached Files Attached Files

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Changing values based on drop down menu selection

    Jenhern,
    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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