+ Reply to Thread
Results 1 to 6 of 6

Addition of Cells dependent on drop down list in another column

  1. #1
    Registered User
    Join Date
    05-27-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Addition of Cells dependent on drop down list in another column

    Hi,

    I've got a spreadsheet that has a column of numbers in it with a corresponding column that has a drop down list which has 4 names in it. So I put in a number associated with a name from drop list

    I want to get a total number for each of the 4 people specified in the drop down list in another 4 cells. I can total all the cells in the column no problems but not sure what formula will give me a total for each person in another cell corresponding to their name and the number of rows they are selected in for the column of figures.

    any help appreciated

    TIA

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Addition of Cells dependent on drop down list in another column

    can you upload an example please?

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Addition of Cells dependent on drop down list in another column

    See the SUMIF function in XL Help, ie assuming:

    Column A holds names
    Column B holds values

    C1 to C4 holds the 4 names

    D1: =SUMIF(A:A,C1,B:B)
    copy down to D4

    (may also be worth investigating Pivot Tables...)

  4. #4
    Registered User
    Join Date
    05-27-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Addition of Cells dependent on drop down list in another column

    Quote Originally Posted by DonkeyOte View Post
    See the SUMIF function in XL Help, ie assuming:

    Column A holds names
    Column B holds values

    C1 to C4 holds the 4 names

    D1: =SUMIF(A:A,C1,B:B)
    copy down to D4

    (may also be worth investigating Pivot Tables...)
    I tried that in F19 but didn't work. I've uploaded a sample which will better explain what I'm trying to do.

    TIA zbor & DonkeyOte
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Addition of Cells dependent on drop down list in another column

    Your summation column is incorrect - there are no values to sum in Column A.

    It would make sense to use the headers in your table to define the criteria - in this case it then makes sense to link the headers to the source of the Validation List... ie:

    F18: =INDEX($G$6:$G$15,COLUMNS($F18:F18))
    copy across to I18

    F19: =SUMIF($D:$D,F$18,$B:$B)
    copy across to I19

  6. #6
    Registered User
    Join Date
    05-27-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Addition of Cells dependent on drop down list in another column

    Quote Originally Posted by DonkeyOte View Post
    Your summation column is incorrect - there are no values to sum in Column A.

    It would make sense to use the headers in your table to define the criteria - in this case it then makes sense to link the headers to the source of the Validation List... ie:

    F18: =INDEX($G$6:$G$15,COLUMNS($F18:F18))
    copy across to I18

    F19: =SUMIF($D:$D,F$18,$B:$B)
    copy across to I19
    DonkeyOte (geezer )
    Many thanks from downunder

+ 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