+ Reply to Thread
Results 1 to 13 of 13

counting selections from a drop down list

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    san antonio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post counting selections from a drop down list

    i am trying to count the number a drop down selections and put them in a box so i know how many i have of that selection.
    so i have the column for the drop down box, so if each student has a different belt, i want to have them counted up on the belt sheet so i know how many students i have with white belts or yellow belts.



    testing.xlsx

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: counting selections from a drop down list

    In B2 Cell of Belts Sheet
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: counting selections from a drop down list

    Sixth beat me to it
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Registered User
    Join Date
    04-16-2013
    Location
    san antonio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: counting selections from a drop down list

    I put the code in and the cell displays this #NAME?

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: counting selections from a drop down list

    Quote Originally Posted by dredwolf View Post
    Sixth beat me to it
    It is just the time when we see the post, I am sure you might have seen it later

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: counting selections from a drop down list

    Quote Originally Posted by 12thdoctor View Post
    I put the code in and the cell displays this #NAME?
    You might have misspelled the function countif

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: counting selections from a drop down list

    Check spelling and for extraneous spaces, formula works fine here..

    @ Sixth, yep, probably why
    Last edited by dredwolf; 04-16-2013 at 01:03 AM.

  8. #8
    Registered User
    Join Date
    04-16-2013
    Location
    san antonio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: counting selections from a drop down list

    i copy and pasted the code

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: counting selections from a drop down list

    Please share a screenshot of the error for better understanding

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: counting selections from a drop down list

    also,when you copy/paste, do it in the formula bar, if you do it in the cell, you sometimes get unexpected 'cell to columns' conversions

  11. #11
    Registered User
    Join Date
    04-15-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: counting selections from a drop down list

    Did it with "=SUM((Students!C4:C240="White")*1)" - Just put that in the cell where you want to count the belts. While adding that formula, you have to hold Ctrl+Shift, then Enter.

    Copy that cell down so you have covered all belts, then change 'White' to the corresponding Belt-type.

    If you want to add a larger range, change C4:C240 to whatever you need. I recommend setting it to C4:C400 or something, so you are sure you won't get a number of students which go over that.

  12. #12
    Registered User
    Join Date
    04-16-2013
    Location
    san antonio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: counting selections from a drop down list

    Thank you Sixthsense dredwolf, i figured it out, stupid me opened the file in open office, was working on a different computer, but the formula works i just had to convert it to open office. Thank you for all.

    quick question, is there a way to lock the cells belt rank and testing fee to the student name, just in case i add a new student to the bottom of the list, and then sort them by last name using the sort ascending button?
    Last edited by 12thdoctor; 04-16-2013 at 11:11 AM.

  13. #13
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: counting selections from a drop down list

    WHen You do your sort, select all the columns, then do the sort, on the names column, all the adjoining cells will move with the names (IT Should do it even if you don't select the other cells, it may ask if you want to expand the selection to include the adjoining columns)

    Hope this helps

+ 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