+ Reply to Thread
Results 1 to 15 of 15

[Sovled] Question Count fomula?

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    [Sovled] Question Count fomula?

    Hello,

    I have been using this formula

    =COUNTIF(Master!I:I,'Source Lists'!A1) It is counting trends for the year, in a summary tab. (this works)

    (Master is a tab with all the daily information for incidents, The Source list is a seprate tab where I put my pull down menu information, and this is going in a thrid tab called trends. )

    The "master" tab has a date column 01/11/12 format I would like to set up the summry tab by month is there a way to add that to this formula?

    Currently the trend tab/sheet looks like this

    ......................Total
    MUI - Verbal ......5
    MUI - Physical.....0
    MUI - ***...........0


    I want to track trends monthly and quarterly

    ...................... Jan.... Feb ...March .... Total
    MUI - Verbal........2.....3........0
    MUI - Physical .....0.....0........0
    MUI - *** ...........0.....0.......0

    I hope I have given enough inoformation, Thank you, Excel 2010
    Last edited by Gleowine; 12-18-2012 at 04:04 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Question Count fomula?

    Gleowine, welcome to the forum.

    You should upload a small sample file for us to work on - while we are happy to help, a lot of members are disinclined to create your data-set as a precursor to assisting you.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Question Count fomula?

    Okay I stripped out most of the tab's that did not related and data due to confidentiality.
    Let me know if you need more data, but on the trend tab you can see I set up one formula for MUI – Verbal for the annual count, I would like a formula for a monthly count (I can sum the total for quarterly after that.)

    Thank you for any help you can provide.
    Attached Files Attached Files

  4. #4
    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,938

    Re: Question Count fomula?

    tryu this, copied down and across...
    =COUNTIFS(Master!$B$6:$B$9,">="&B$1,Master!$B$6:$B$9,"<="&C$1,Master!$I$6:$I$9,Trends!$A2)
    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

  5. #5
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Question Count fomula?

    It returns 0, not sure if I'm doing something wrong. should equal 2 in January in the sample data right?
    Attached Files Attached Files
    Last edited by Gleowine; 12-14-2012 at 03:50 PM.

  6. #6
    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,938

    Re: Question Count fomula?

    grrr sorry, my bad in the sample file ypu posted, i changed you're dates from jan, feb, mar etc to 1/1/12, 2/1/12, 3/1/12 etc, and then cutom formatted them to "mmm"

    Jan, Feb, Mar etc are not actually dates, they are text, and as such, it makes it hard to relate them back to actual dates

  7. #7
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: [Solved] Question Count fomula?

    Thank you, very much

  8. #8
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: [solved] Question Count fomula?

    Okay It worked but a few issues, I did change the formula on the counts, but I also put your fomula in oure on the second row down. Sorry please look at the trends tab MUI - Verbal.

    The annual count is right 12, but the months are off, I added the fomula to my full data and noticed some counts did not match. I went in and simplifed the data to this just using 1/1/12, 2/1/12 and it started added up wrong?? any thoughts?

    Could I manual set a Month column by text or number when entering say Jan or 1 in the column would that help instead of using dates?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Question Count fomula? issue

    I tried not using dates just numbers and abc... it keeps adding up to 2 for each month and skiping last month...

  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,938

    Re: Question Count fomula? issue

    i spotted 2 problems with you're formula.

    1. my bad, i used >= and <=, it should have been >= and < (else the 1st of the next month gets included in the count.

    2. you removed the $ (absoluting) from the formula, so that when it's copied, the column references incorrectly change.

    use this, copied down and across...
    =COUNTIFS(Master!$B:$B,">="&B$1,Master!$B:$B,"<"&C$1,Master!$I:$I,Trends!$A2)

  11. #11
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Question Count fomula? issue

    Thank you, That worked and now I know what the $ does.

    I hate to push my luck, you been so helpfull

    Is it possible to add a second criteria lTrends!$A2 picks all 'MUI-Verbal'
    If I make a new tabs and do one just for each county and set up a county list could I have all the same Criteria but with added a county sort? I can set up a new table if needed.

    Thank you,

  12. #12
    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,938

    Re: Question Count fomula? issue

    im pretty sure we can do the extract/summary any way you want

    can you upload a sample of what you want, and i will see what I can come up with for you?

  13. #13
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Question Count fomula? issue

    Hello,

    I up load a new file it has a tab called 'Hamilton' I just copied the trend tab, I would like the same information in the Hamilton tab but have it sort by Hamilton from the County column in the master tab.

    If possible then I can set a tab up for each county.


    Thank you
    Attached Files Attached Files

  14. #14
    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,938

    Re: Question Count fomula? issue

    try this, copied across and down...
    =COUNTIFS(Master!$B:$B,">="&B$3,Master!$B:$B,"<"&C$3,Master!$I:$I,$A4,Master!D:D,Hamilton!$B$1)

    for the quarters, use this copied to each qtr and down
    =SUBTOTAL(9,B4:D4)
    and for the total, use
    =SUBTOTAL(9,B4:Q4)
    copied down

  15. #15
    Registered User
    Join Date
    12-12-2012
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Question Count fomula? issue

    Worked, thank you so much.

+ 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