+ Reply to Thread
Results 1 to 9 of 9

Average using Checked Boxes

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    6

    Post Average using Checked Boxes

    Hello All,

    i am doing a personal project for my company and got stuck with the Average Formula.

    i have an excel sheet with 6 Check boxes for 6 Months these check boxes are linked to a particular cell which returns values of TRUE & FALSE and if TRUE particular formula will be executed.

    now the issue is i have a cumulative table in the same sheet where it will display the Total Cost along with Average cost per month.

    The cumulative table has 4 rows showing the result and the 5th row has Average which gives average of the above costs.

    Now, if i select Jan, Feb & March using the checkboxes the average function should add the total values in cumulative table and give me result by dividing the sum/3 since its only 3 months likewise if i select 4 months it should divide by 4 but it is dividing by 4 irrespective of the checkboxes

    i have tried =AverageIF(C61:C66,TRUE,C38:C41) - where C61:C66 is checkboxes and C38:C41 is the cumulative values

    please help

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Average using Checked Boxes

    Please post a sample Excel file. including manual calculations showing expected results

    To upload, click "Go Advanced" then "Manage Attachments"

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Average using Checked Boxes

    any chance you can upload your worksheet?

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Average using Checked Boxes

    You should be using something like:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Registered User
    Join Date
    02-26-2016
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    6

    Re: Average using Checked Boxes

    Hi,

    Please see attached Test File

    Appreciate your help

    thanks
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-26-2016
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    6

    Re: Average using Checked Boxes

    Hi mehmetcik

    that didnt work as i dont have any values in D61:D66

  7. #7
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Average using Checked Boxes

    This formula should work
    =SUM(C5:D6)/COUNTIF(E5:E6,TRUE)

    or

    =$C$15/COUNTIF(E5:E6,TRUE)

    you can change the formula where it has E5:E6 if you have more months to choose from
    Last edited by dosydos; 02-26-2016 at 02:51 PM.

  8. #8
    Registered User
    Join Date
    02-26-2016
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    6

    Re: Average using Checked Boxes

    Wow That Worked for me Dosydos

    You are a real Star

    Thanks for helping me out

  9. #9
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Average using Checked Boxes

    glad I could help.
    please mark this thread as SOLVED by going to thread tools at the top.

+ 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] How to Count Check Boxes and count the total number of boxes checked
    By t04904 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2013, 11:45 AM
  2. If then Statements & checked Boxes
    By c7015 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2012, 02:00 PM
  3. Number of check boxes checked
    By mraheelgujjar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2011, 08:32 AM
  4. Check boxes checked
    By EGR2317 in forum Excel General
    Replies: 5
    Last Post: 06-04-2010, 02:27 PM
  5. how to do summation of checked boxes?
    By kaisin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2007, 09:25 PM
  6. How do I total a series of checked boxes?
    By dayoungblood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2006, 12:40 PM
  7. Check boxes - when one box is checked, I want a 2nd box to auto ch
    By Russell-stanely in forum Excel General
    Replies: 2
    Last Post: 07-01-2005, 04: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