+ Reply to Thread
Results 1 to 9 of 9

countif/sumif issues

  1. #1
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    countif/sumif issues

    Hello,

    My data is on Sheet2 Column A is transaction date and column B is number of units. My summary page has periods listed as Jan 1-31, Feb 1-28, etc... I'm trying to first count the number of transactions per month using
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and second sum the number of units per month using
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The transaction count seems to be working fine with the exception of Jan 1-31. It's returning a number in the millions when it should me 700.
    The sum of units looks like it's working for April but the other months are all over the place.
    I've attached the file also.
    Book2.xlsx
    The real reason I want to automate this is because prior month transactions can change, some can cancel which would reduce transactions, units and sales and sometimes an individual transaction can change which would move the number of units and sales. Ultimately I want to just have to copy and paste the raw data and then only need to look at the current month's activities because those will be listed by week. I also have to repeat the process about 4 or five times for different data sources. Any thoughts to what could be causing the issues I'm having or potentially another way to return the same info would be greatly appreciated.

    TIA
    Tristan
    Last edited by trisoldee; 05-06-2015 at 11:21 AM.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,373

    Re: countif/sumif issues

    I see the file and nothing wrong with the formula, but you not ENTERing the formula with the right way, counting and summing formula is array formula,
    you need to hit/press CTRL+SHIFT+ENTER button all together, doing this at the first result/row and if its succes you'll
    see the bracket "{}" enclosed your formula, after that you can copied down as ecessary...... hope this clear

    and adjust the ranges with data ranges, do not likethis =MONTH(Sheet2!A:A) this when you have plenty data,
    should be MONTH(Sheet2!$A$2:$A$3145)
    Attached Files Attached Files
    Last edited by azumi; 05-06-2015 at 12:06 PM.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: countif/sumif issues

    Hi,

    See attached.

    With stuff like this you should always work with proper date numbers and not strings of text that happen to look like dates.

    But the best way to analyse this is with a Pivot Table which I've also included.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: countif/sumif issues

    I do have them entered as array formulas, not sure why they aren't showing the brackets, the problem is that the values the formulas are returning are not correct. If you filter the raw data to check it you will get different numbers. I'll keep looking. thanks.

  5. #5
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: countif/sumif issues

    Thanks Richard,

    I agree with using a pivot my only issue there is that for the current month I have to break down by week. For the prior months though the ifS were actually going to be the next thing I was going to try.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: countif/sumif issues

    Hi,

    You can still break the data down by weeks. Just Group the dates by day and set the start date and number of days to 7. Have a separate PT if you wish so that one groups by week and the other by month.

  7. #7
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: countif/sumif issues

    What do you mean when you say "set the start date and number of days to 7"? I was thinking that in order to do this I'd need to add a column to the raw data to show "week ending" and group accordingly. I've found this to do so
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know what you're talking about and thanks again.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: countif/sumif issues

    Hi,

    In the Pivot Table select a cell in the date column and right click. Choose Group and select 'Days' then enter 7 in the number of days box and decide which is the first date you want your week summaries to start and enter that in the 'Starting at' box.

  9. #9
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: countif/sumif issues

    That's great thanks.

+ 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] Sumif Issues
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2014, 02:52 PM
  2. [SOLVED] Need help regarding issues with SUMIF(S)
    By floridarcher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2013, 05:30 AM
  3. [SOLVED] Issues with a Countif
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-19-2013, 04:52 AM
  4. COUNTIF issues
    By dannyshezo in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-14-2011, 05:00 PM
  5. Excel 2007 : Countif issues
    By dannyshezo in forum Excel General
    Replies: 2
    Last Post: 11-03-2011, 01:17 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