+ Reply to Thread
Results 1 to 5 of 5

Extract data of specific date using Calender

  1. #1
    Registered User
    Join Date
    02-16-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    70

    Extract data of specific date using Calender

    Hi all,
    I'm not very much familiar with VBA. so I need help.
    Could you please help me to extract data of a specific date using calendar from sheet1 to sheet 2.
    Please see attached file for detail.
    Regards
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Extract data of specific date using Calender

    Hi,

    Does it have to be a macro?

    See attached.

    A series or formula's that index the data.
    Just change the date in cell M27.

    Hope this is helpful
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-16-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Extract data of specific date using Calender

    Quote Originally Posted by southward View Post
    Hi,

    Does it have to be a macro?

    See attached.

    A series or formula's that index the data.
    Just change the date in cell M27.

    Hope this is helpful
    Thanks. I appreciate your quick reply .
    your formula is perfect and works fine.
    but I'm looking for VBA and want to use calender to extract data.

  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: Extract data of specific date using Calender

    @ southward, nice. You can shorten that formula using IFERROR...
    =IF(ISERROR(INDEX($A$1:$D$26,SMALL(IF($D$2:$D$26=$M$27,ROW($A$2:$A$26)),ROW(1:1)),1)),"",INDEX($A$1:$D$26,SMALL(IF($D$2:$D$26=$M$27,ROW($A$2:$A$26)),ROW(1:1)),1))
    becomes...
    =IFERROR(INDEX($A$1:$D$26,SMALL(IF($D$2:$D$26=$M$27,ROW($A$2:$A$26)),ROW(1:1)),1)),"")

    However, I have a feeling this is going to be a huge range - 25 rows for just 4 days, and all those ARRAY formulas may slow te file down. Based on that, and using your example and a helper column to eliminate the ARRAY formula.

    E2 (,y helper column=COUNTIF($D$2:D2,$M$27)
    copied down
    Then to extract the data...
    K28=IFERROR(INDEX(A:A,MATCH(ROWS(A$1:A1),$E:$E,0)),"")
    copied down and across
    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
    Registered User
    Join Date
    02-16-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Extract data of specific date using Calender

    Hi,

    Can someone help me with VBA please.

    Regards

+ 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. [SOLVED] Extract the data within the specific date range
    By nth34 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-03-2015, 09:32 PM
  2. Extract specific column data from specific sheet from multiple files in a folder
    By piggyfox in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2013, 11:51 AM
  3. Macro to extract data from multiple workbooks, specific sheet, specific cells
    By crissandraauree in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 03:54 PM
  4. Extract dates for specific days in a date range
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-13-2011, 09:36 PM
  5. Excel 2007 : Extract Specific Date using Macro
    By OrangeBoy in forum Excel General
    Replies: 0
    Last Post: 10-09-2011, 10:44 PM
  6. Extract dates to calender software?
    By acenicho in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-10-2010, 08:48 AM
  7. code to extract specific data into specific columns
    By lmohaxx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2008, 01:52 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