+ Reply to Thread
Results 1 to 4 of 4

Counting Radio Button Entries

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Counting Radio Button Entries

    Hi All

    Before I start building the spreadsheet I wanted to know how you count the number of specific radio button selections by a user

    Basically I want to build a form with a list of options (Sales, Marketing, Support etc) that the user fills in every time they take a call to identify what type of call they received and keep a running total

    For example;

    If I took a call for "Sales" I would select the "Sales" radio button and that would count as 1 instance, then if I took another call for "Sales" I would again select it but the 1 would need to become a 2

    After every instance it would just close/reset the form so that a new selection could be made every time and keep the total in a table in the BG

    Is this possible and if further explanation is required please let me know

    Thanks again everyone

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Counting Radio Button Entries

    Yes it is possible. You would need to add a counter somewhere though. For this example, let's assume that the radio button is returning it's value in cell A1 (so if Sales is selected, a 1 will appear in cell A1).

    Now, let's assume the counter for Sales is in cell B1 and the counter for Support is in B2, etc. Create a macro for each radio button, so if you have two radio buttons, you will need two subs. Assign each macro to its respective radio button. Now, when the Sales radio button is selected, it will automatically run the SalesPlusOne macro which increases the counter by 1(cell B1) and resets the radio buttons. Do the same for the other radio buttons but select the other macros.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-04-2009
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Counting Radio Button Entries

    Hi Majosum

    Thanks for your reply

    I've just added the macros to the radio buttons but the form itself doesn't reset and remains with the single input on the screen

    Have I missed something to actually make the form reset?

    Would it be worth just having a "save and close" button once the selection has been made?

    Thanks

  4. #4
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Counting Radio Button Entries

    You could do either one. The code I gave you did not make the rest of the form reset. You would have to add that code as well. Or, if you wanted to do the "save and close" method, you could do that as well but you will have to be sure to have it reset the form as well.

+ 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. Replies: 3
    Last Post: 08-28-2013, 05:39 AM
  2. Radio Button Groups linked to cells for counting values
    By kathyb10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-31-2011, 06:35 PM
  3. Uncheck Radio Button using a Command Button
    By earl54dink in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-08-2008, 05:47 PM
  4. Pressing one radio button to select another radio button
    By raehippychick in forum Excel General
    Replies: 1
    Last Post: 09-13-2007, 11:30 PM
  5. radio button help
    By tjb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2005, 07:05 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