+ Reply to Thread
Results 1 to 12 of 12

Dates - easy way click and drag for count if?

  1. #1
    Registered User
    Join Date
    06-18-2023
    Location
    Australia
    MS-Off Ver
    2021
    Posts
    10

    Post Dates - easy way click and drag for count if?

    Hi there,

    I'm working out the number of calls called within a certain month. I want to ask if there is a simple way to click and drag to the right so the dates (circled in red in below image) automatically?*change to 1/12/23 - 31/12/23, 1/1/24 - 31/1/24, 1/2/24 - 28/2/24 respectively instead of manually changing the dates after I click and drag it to the right. Many thanks

    Image 3.PNG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Dates - easy way click and drag for count if?

    Assuming that those are dates in row 2, you could try this:

    ">="&DATE(YEAR(E$2),MONTH(E$2),1)

    and:

    "<="&DATE(YEAR(E$2),MONTH(E$2),10)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Dates - easy way click and drag for count if?

    1. If in Row 2 are dates (first of each month), please try this in COUNTIFS: ">="&E$2 and "<"&EDATE(E$2,1)

    2. If in Row 2 is only text, please empty all the months in row 2 and try in E2: =DATE(2023,SEQUENCE(,9,10),1) and custom format E2:M2: mmm-yy ([now E2:M2 are dates (first of each month)] and try now in COUNTIFS: ">="&E$2 and "<"&EDATE(E$2,1)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Dates - easy way click and drag for count if?

    Hans - this won't give the tenth of the month:

    "<"&EDATE(E$2,1)

    but if E2 contains the first of the month, this will;

    "<"&E$2+9

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Dates - easy way click and drag for count if?

    @Ali, no it does not give the tenth of the month.

    And that's correct, too, because the OP isn't asking for that either.
    The OP asks within a certain month.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,056

    Re: Dates - easy way click and drag for count if?

    Asssuming Nov 23 is 1/11/2023, formatted as mmm-yy

    ">="&e$2

    and

    "<="&eomonth(e$2,0)


    But... it would be easier if we had an excel sheet, not a picture of one.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Dates - easy way click and drag for count if?

    Must be my eyesight - I saw 10/11/2023!!!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,056

    Re: Dates - easy way click and drag for count if?

    Time to go to Specsavers??

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Dates - easy way click and drag for count if?

    Yes, it is! 🤣

  10. #10
    Registered User
    Join Date
    06-18-2023
    Location
    Australia
    MS-Off Ver
    2021
    Posts
    10

    Re: Dates - easy way click and drag for count if?

    Thank you all for your assistance! Much appreciated

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Dates - easy way click and drag for count if?

    You are Welcome! Thanks for the feedback and rep. Glad to have helped .

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Dates - easy way click and drag for count if?

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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 and drop text in one click
    By hoood in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2019, 10:41 AM
  2. Click and drag VBA?
    By Hambone70 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-10-2016, 04:29 AM
  3. [SOLVED] Easy - just need to drag this formula
    By opusarlo in forum Excel General
    Replies: 3
    Last Post: 02-04-2015, 06:14 AM
  4. Click and Drag not Calculating Properly
    By joelbrattin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-20-2012, 06:05 AM
  5. easy drag down formula for cells from different workbook
    By najiarshepherd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2012, 10:57 AM
  6. Easy formula to drag down for the whole column
    By xWiZardx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2010, 09:05 PM
  7. [SOLVED] click & drag not working
    By Teresa in forum Excel General
    Replies: 2
    Last Post: 02-24-2006, 09:55 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