+ Reply to Thread
Results 1 to 5 of 5

Counting recurrences of a month

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    Bremen
    MS-Off Ver
    Excel 2013
    Posts
    5

    Counting recurrences of a month

    Hello, I am trying to add all orders that are done on the same month and then divide it the number of days in order to calculate the average demand rate. My problem is that I can not design an if statement or sum, or whatever it should be that reads the date and then if the date is correct it adds the item 1 ordered.
    Here is the file.HW2.xlsx

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Counting recurrences of a month

    The Month function returns the month number (1 to 12) for a given date.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-24-2013
    Location
    Bremen
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Counting recurrences of a month

    =IF(MONTH(B4:B497)=1,SUM(D4:D497),0) I tried it like this but it doesn't work

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

    Re: Counting recurrences of a month

    Add a helper column for the MONTH() function - say column E, then try the sumif() function. Maybe...
    =SUMIF(E4:E497,1,D4:D497)
    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
    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,946

    Re: Counting recurrences of a month

    Sorry, I had not looked at your file, just based my suggestion off what you provided in your formula. In D514, use this, copied down and across...
    =SUMPRODUCT((MONTH($B$4:$B$497)=ROW(A1))*(D$4:D$497))

+ 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. Counting Yes/No in Month Range
    By nerdgirl1994 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2013, 05:50 PM
  2. [SOLVED] Excel 2007 : Counting date in specific month by month
    By adisakman in forum Excel General
    Replies: 8
    Last Post: 06-14-2012, 06:30 AM
  3. count the number of recurrences of numbers
    By dr_fred_bob in forum Excel General
    Replies: 2
    Last Post: 08-20-2007, 05:24 AM
  4. [SOLVED] Locate and count the recurrences of a text string
    By Trish2 in forum Excel General
    Replies: 1
    Last Post: 03-08-2006, 11:10 AM
  5. Counting records within a month
    By JoAnn in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-22-2005, 02:20 PM

Tags for this Thread

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