+ Reply to Thread
Results 1 to 5 of 5

Is it possible to increment month within formula using drag down?

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Is it possible to increment month within formula using drag down?

    I have a simple formula that counts the number of instances of items occurring in a particular month/ Year.
    Please Login or Register  to view this content.
    Is there a better way to do this so I can drag this cell and increment the month?

  2. #2
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Is it possible to increment month within formula using drag down?

    Hi,

    Enter a valid date in any cell, say A2:

    Use this for monthly increment row-wise:
    =TEXT(EDATE($A$2,ROW(A1)-1),"mmmm yyyy")


    So your formula will looks like:
    =COUNTIF(Sheet '1'!X:X,"*"&TEXT(EDATE($A$2,ROW(A1)-1),"mmmm yyyy"))

    Blessing
    Khalid

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,938

    Re: Is it possible to increment month within formula using drag down?

    If I understand your requirement

    in row 2

    =COUNTIF(Sheet1!X:X,$D$1+ROWS($1:1))

    where D1=29/02/2016

    Date for COUNTIF will increment day by 1 when dragged down

  4. #4
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Is it possible to increment month within formula using drag down?

    Quote Originally Posted by ids View Post
    so I can drag this cell and increment the month?
    Hi John,

    I think OP needs "Month (not days) increment" while dragging down.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is it possible to increment month within formula using drag down?

    Your formula is not counting true dates. It's counting TEXT strings that look like dates.

    So, incrementing the month name would be more complicated.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Drag formula increment by more than 1
    By hc91 in forum Excel General
    Replies: 2
    Last Post: 09-03-2014, 11:27 AM
  2. [SOLVED] Drag formula increment more than 1
    By bazza321 in forum Excel General
    Replies: 11
    Last Post: 09-03-2014, 11:03 AM
  3. Excel formula to increment the month by 2?
    By thirumalairajan in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-11-2006, 08:20 PM
  4. [SOLVED] Excel formula to increment the month by 2?
    By thirumalairajan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-10-2006, 03:50 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