Results 1 to 9 of 9

countif/sumif issues

Threaded View

  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
    {=COUNT(IF(MONTH(Sheet2!A:A)=MONTH(DATEVALUE(LEFT($A9,3)&"1")),1))}

    and second sum the number of units per month using
    Formula: copy to clipboard
    =SUMIF(Sheet2!A:A,"<="&DATE(2015,MONTH(DATEVALUE(LEFT(A9,3)&"1")),TEXT(EOMONTH(MONTH(DATEVALUE(LEFT(A9,3)&"1")),0),"d")),Sheet2!B:B)-SUMIF(Sheet2!A:A,"<"&DATE(2015,MONTH(DATEVALUE(LEFT(A9,3)&"1")),1),Sheet2!B:B)

    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.

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