+ Reply to Thread
Results 1 to 2 of 2

Vba to filter current month, prior month, two months ago and three months ago

  1. #1
    Registered User
    Join Date
    12-15-2015
    Location
    Regina, Saskatchewan, Canada
    MS-Off Ver
    2013
    Posts
    22

    Vba to filter current month, prior month, two months ago and three months ago

    Good Afternoon,

    I am attempting to write a macro that will filter current month, prior month, two months ago and three months ago. I have a set of data that I want to compare monthly I haven't been able to find any code online that will pull specific months of data. Below is the data, I would like to be able to filter by the full month. So current month =July, Last Month = June, etc. Below is some of the data I am working with, also attached a spreadsheet.

    Any help would be greatly appreciated.

    Thank you.

    Request Id Order Type Status DATE
    559 Standard Order (Customer) Closed 8-Apr-19
    2653 Customer Ordered 17-May-19
    1231 Customer Closed 23-Apr-19
    485 Standard Order (Customer) Closed 5-Apr-19
    4588 Customer Closed 21-Jun-19
    1181 Customer Ordered 22-Apr-19
    1731 Customer Cancelled 2-May-19
    3356 Customer Closed 31-May-19
    1232 Customer Closed 23-Apr-19
    1543 Customer Closed 30-Apr-19
    1634 Standard Order (Customer) Closed 1-May-19
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-21-2019
    Location
    Italy
    MS-Off Ver
    2016
    Posts
    58

    Re: Vba to filter current month, prior month, two months ago and three months ago

    Hi,
    i propose to you a solution with Select Case

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. formula add 6 months into current month
    By tariqnaz2005 in forum Excel General
    Replies: 8
    Last Post: 10-11-2015, 03:33 PM
  2. [SOLVED] Count of months against current month
    By JCStewartNZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2015, 06:37 AM
  3. [SOLVED] VBA Insert Current Month, Year and subsequent months/year for 15 months
    By MichiganWilliams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2014, 03:49 PM
  4. Index Match based on months away from current month
    By lpuerta75 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-15-2014, 04:24 PM
  5. Averaging data from months prior to this month (Excel 2013)
    By njbroek in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-15-2013, 10:50 PM
  6. Macro using vlookups comparing 2 months paysheet(previous month and current month)
    By srinivasan1965 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2012, 03:45 AM
  7. Chart the last 3 Months including the current month
    By ioncila in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2012, 01:22 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