+ Reply to Thread
Results 1 to 7 of 7

Adding up check boxes

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    7

    Adding up check boxes

    Hi, I could do with some help as I'm not used to Excel. I'm trying a create a time sheet for our employees where they can select drop boxes to show how many days they work. Then all the drop boxes add up to show how many days. Also with a function where they can select a drop box to select all the weekdays in the month. I've attached a document of what I want it to look like. Any help would be appreciated. Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Adding up check boxes

    Countif? =COUNTIF($A$5:$G$9,"True")

  3. #3
    Registered User
    Join Date
    02-06-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    7

    Re: Adding up check boxes

    Your a star thank you.

  4. #4
    Registered User
    Join Date
    02-06-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    7

    Re: Adding up check boxes

    Thanks for the help. I've attached a copy of what I was advised to do. I also created a select all function. What I need it to do is only select weekdays. Any ideas? Thanks
    Attached Files Attached Files
    Last edited by aidankdb; 02-07-2015 at 09:24 AM.

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Adding up check boxes

    To count weekdays only, change your reference up to column E. =COUNTIF($A$5:$E$9,"True")

  6. #6
    Registered User
    Join Date
    02-06-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    7

    Re: Adding up check boxes

    Thanks, its actually a checkbox when ticked that selects all the week days in the calendar. At the moment i've made to to select every day but not sure how to do just weekdays
    This is the code im using to select all the days
    "
    Sub CheckBox1_Click()

    Dim CB As CheckBox
    For Each CB In ActiveSheet.CheckBoxes
    If CB.Name <> ActiveSheet.CheckBoxes("Check Box 1").Name Then
    CB.Value = ActiveSheet.CheckBoxes("Check Box 1").Value
    End If
    Next CB
    End Sub

    "
    Attached Files Attached Files
    Last edited by aidankdb; 02-08-2015 at 09:59 AM.

  7. #7
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Adding up check boxes

    Look attached file.

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. [SOLVED] Dynamic Chart with Active X Check Boxes - Adding drilldown
    By jrvstl in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-10-2012, 02:43 PM
  2. Adding Check Boxes Automatically
    By lockye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2009, 02:27 PM
  3. Adding Continuous Check Boxes
    By Gators in forum Excel General
    Replies: 4
    Last Post: 01-13-2009, 12:43 PM
  4. Problem adding check boxes
    By thl in forum Excel General
    Replies: 2
    Last Post: 08-14-2008, 01:09 PM
  5. Adding Check Boxes
    By Mike R in forum Excel General
    Replies: 2
    Last Post: 02-13-2005, 12:06 AM

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