+ Reply to Thread
Results 1 to 10 of 10

Totaling columns

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Totaling columns

    Hello,
    I am making a simple spreadsheet to track external queries. It is set up that when the Submit button is selected on the UserForm, the entries in the boxes from the form will go onto Sheet 1 on the next available row. For some of these columns, I would like to generate totals for all of the entries. For example, there are columns 28/29, 27, Local, NCIC that are generated by checkboxes. I want to count all of the TRUE responses for each and place the result onto a REPORT sheet. I imagine this just involves a countifs formula on the REPORTS sheet.

    The tricky part is this...
    I would like to generate daily totals for each shift, and each day, and to date for the year on the REPORTS sheet.

    Can anyone help with these various formulas? Thank you!!!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Totaling columns

    By the way, I know I am asking about formulas, but since this is generated by a UserForm, I figured this was the safest place to post this.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Totaling columns

    For the top part, try this, copied down and across...
    =COUNTIFS(Sheet1!C$2:C$6,TRUE,Sheet1!$L$2:$L$6,Report!$A2)

    For the Today value...
    =COUNTIFS(Sheet1!C$2:C$6,TRUE,Sheet1!$A$2:$A$6,TODAY())

    For the To Date...
    =COUNTIF(Sheet1!D$2:D$6,TRUE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Totaling columns

    Thank you very much! For the last part, I'm actually looking for the Year to Date. My apologies, I wasn't very clear about that. If I could have a Monthly to Date also, that would be great.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Totaling columns

    that last formula...
    =COUNTIF(Sheet1!D$2:D$6,TRUE)
    will count all entries in the column, so unless you have different dates, it should work for you

    To get the Month totals, all you need to do is add criteria to the countifS()

  6. #6
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Totaling columns

    That's the thing, it will have many entries for each day....perhaps hundreds, and I would like to be able to also track by month and for the entire year.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Totaling columns

    I have added some more data to sheet1, and added a row to Report, see if the attached is what you want?
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Totaling columns

    I will check it when I'm back at work tomorrow. Thanks! You are always so helpful.

  9. #9
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Totaling columns

    I changed a few things around, but it did exactly what I needed it to. Thank you!!!

    Since this part is solved, i am going to post another thread for another aspect of this that I need help with.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Totaling columns

    Happy to help and thanks for the feedback

+ 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: 5
    Last Post: 08-21-2013, 12:55 PM
  2. Totaling multiple columns
    By maacmaac in forum Excel General
    Replies: 2
    Last Post: 09-16-2007, 10:17 PM
  3. Totaling Columns
    By GogsJames in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2006, 02:07 AM
  4. Help with totaling a columns in VBA
    By Chris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2005, 02:05 PM
  5. Totaling Columns
    By DNA in forum Excel General
    Replies: 1
    Last Post: 05-05-2005, 09:06 AM

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