+ Reply to Thread
Results 1 to 4 of 4

The sum of a column, EXCEPT when a checkbox is ticked

  1. #1
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    The sum of a column, EXCEPT when a checkbox is ticked

    I am creating a sick log. The formula I am using to tally hours of sick time is very simple located in cell E100:

    =SUM(E3:E99)

    However, I also have check boxes to the right of column E (F3:F99). When a box is checked, I want for the hours in the corresponding E column to NOT be added into the sum.

    For instance, if the box in F5 is checked, I do not want the hours located in E5 to be counted in the total located in E100.

    Thoughts?
    Attached Files Attached Files
    Last edited by jonvanwyk; 01-13-2011 at 04:30 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: The sum of a column, EXCEPT when...

    You would have to create a cell link for each of those checkboxes, by right-click >> Format control and added a link in the Control tab.

    You can use the cell the box is in and then hide the values by formatting font colour to match background.

    then formula to sum is: =SUMIF(F3:F99,"<>TRUE",E3:E99)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: The sum of a column, EXCEPT when a checkbox is ticked

    Is there a way to make 100 check boxes without having to go into the format control of each one?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: The sum of a column, EXCEPT when a checkbox is ticked

    Maybe with VBA looping through each... but not sure how to effectively do that... sorry

+ 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