+ Reply to Thread
Results 1 to 10 of 10

Formula for totalling based on a drop down choice

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    10

    Formula for totalling based on a drop down choice

    Afternoon all

    I have a reasonable knowledge of Excel, but this is stumping me. On the example, each of the four workers have participated in Jobs A, B and C. The total jobs for each person is a straightforward SUM in Row 8. But I want to break down the total hours into each Job for each person. On the original spreadsheet the jobs are on a drop down selection, then the hours are manually input based on what they have done. Using Sandra as an example, is there a formula that can be put into cells E11, E13 and E15 that can add up the total hours she has done in relation to each Job? I want it to total up what it sees based in the drop down and the hours in relation to it.

    Not sure if it is LOOKUP or something similar

    Help is gratefully appreciated as always
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula for totalling based on a drop down choice

    Where is "Sandra's" data ?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,135

    Re: Formula for totalling based on a drop down choice

    Your sample does not relate to your description!! The row numbers are incorrect... there are no jobs A, B & C and so on. Please check the file that you attached.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    01-04-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    10

    Re: Formula for totalling based on a drop down choice

    Afternoon, apologies wrong sample, stand by!!

  5. #5
    Registered User
    Join Date
    01-04-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    10

    Re: Formula for totalling based on a drop down choice

    My apologies, this should be the right sample

    TG215
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,135

    Re: Formula for totalling based on a drop down choice

    That's a relief. It really made think that I'm going soft in the head.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Formula for totalling based on a drop down choice

    In E11

    =SUMIFS(E$3:E$6,$D$3:$D$6,$D11)

    copy across to other cells E:H)

    then copy to rows for other jobs

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,135

    Re: Formula for totalling based on a drop down choice

    Delete the POINTLESS balnk rows in the results section. They just make it difficulat to drag the formula down. Then use:

    =SUMPRODUCT(($D$3:$D$6=$D11)*(E$3:E$6))

    copied across and down.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-04-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    10

    Re: Formula for totalling based on a drop down choice

    John and Glenn, you are both wizards of your craft. I thank you both for your input, much appreciated!!!

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,135

    Re: Formula for totalling based on a drop down choice

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Multiple Time Stamps depending on choice in Drop Down List Choice
    By insayah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2022, 09:53 AM
  2. Replies: 6
    Last Post: 04-25-2019, 08:15 PM
  3. Change Formula based on value of drop drown choice
    By snuffnchess in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2015, 11:33 AM
  4. [SOLVED] Changing cell value based on drop down box choice
    By CDNGirl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2015, 12:05 PM
  5. [SOLVED] Autofill Based on Choice From Drop Down List?
    By jbakajust1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-01-2012, 11:57 AM
  6. Excel 2007 : Insert list based on drop down choice
    By Ron1121 in forum Excel General
    Replies: 1
    Last Post: 01-11-2010, 07:58 PM
  7. drop down menu that will fill in some other firlds based on choice
    By soundengineer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2007, 12:13 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