+ Reply to Thread
Results 1 to 4 of 4

Return Data based on current month and previous month from range of data.

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Return Data based on current month and previous month from range of data.

    I am looking for some help who can give me a excel formula which can return data based on current month and previous month dynamically. Attached the excel for your reference.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,874

    Re: Return Data based on current month and previous month from range of data.

    You can use this formula in Q3 (just in case the values in column P are not in the same order as column B):

    =INDEX($C$3:$N$9,MATCH($P3,$B$3:$B$9,0),MONTH(TODAY()))

    and this one in R3:

    =INDEX($C$3:$N$9,MATCH($P3,$B$3:$B$9,0),MONTH(TODAY())-1)

    Copy both formulae down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,090

    Re: Return Data based on current month and previous month from range of data.

    Try this,

    Q3
    =INDEX(3:3,,MONTH(TODAY())-COLUMNS($Q3:Q3)+3)

    copied down and across.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,690

    Re: Return Data based on current month and previous month from range of data.

    Try . In Q3 copied to full range.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Replies: 1
    Last Post: 04-25-2021, 05:50 AM
  2. Replies: 4
    Last Post: 09-04-2020, 04:02 PM
  3. [SOLVED] Return Month-on-Month growth using current month-prior month/prior month per country
    By losincog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2020, 05:37 AM
  4. [SOLVED] Formula for amount on previous month based on current month
    By Yu Marquez in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-21-2014, 12:42 AM
  5. 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
  6. [SOLVED] Auto populate cells from data in a 6 month range starting with the current month
    By ecarnley349 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:32 PM
  7. [SOLVED] VBA to identify the current month and previous month based on system date
    By ravikumar00008 in forum Excel General
    Replies: 10
    Last Post: 07-26-2012, 10:04 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