+ Reply to Thread
Results 1 to 8 of 8

Data Extraction from another Sheet based on Date

  1. #1
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Data Extraction from another Sheet based on Date

    Hi All

    Please see attached sheet.

    Sheet 1 called Summary requires 1 Input "The Date" Example 12/03/2021
    Sheet 2 Called Data is where the information to be extracted is held.

    In the example sheet, the date of the 12/03/2021 has been selected in the summary sheet, and believe I need an array formulae (trying to avoid VBA, but if need be, will explore) to extract all rows that have that date along with the data fields.

    Highlighted is the expected result

    Can you help?
    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,723

    Re: Data Extraction from another Sheet based on Date

    Here's a simple way, which uses a helper column in the Data sheet. Put this formula in cell A5 of the Data sheet:

    =IF(B5=Summary!$C$4,MAX(A$4:A4)+1,"-")

    Copy this down as far as you like (to at least cover the data that you have) - the hyphens will show where the formula is active. Then in the Summary sheet you can use this formula in cell B9:

    =IFERROR(VLOOKUP(ROWS($1:1),Data!$A:$H,COLUMNS($A:B),0),"")

    Copy this across to H9, then copy those formulae down until you start to get blanks. When you change the date in C4 the display will automatically update.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Data Extraction from another Sheet based on Date

    Dear Pete_UK Thank you for your very quick reply. I will mirror on real dataset. Thanks

  4. #4
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Data Extraction from another Sheet based on Date

    Dear Pete_UK

    I would like to change the input date cell to =NOW() to always show todays date, even when formatted identically it does not work. Do you why and how to fix?

    Thank you

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Data Extraction from another Sheet based on Date

    Now is date and time
    Better use =today()

    and for MS 365 try at B9

    =FILTER(Data!B5:H99,Data!B5:B99=C4)
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Extraction from another Sheet based on Date

    The NOW() Function includes the time. Formatting the cell differently does not remove the time, it only hides it. Use TODAY() instead
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Data Extraction from another Sheet based on Date

    Thank you Bo_Ry and ChemistB for the TODAY() function. Completely forgot about that. Awesome Thanks Again.

  8. #8
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Data Extraction from another Sheet based on Date

    Dear All, This post has been marked as resolved but I have one more addition, If I need to create a new thread let me know. Based on Bo_Ry answer. I wish to add a check box or value that I mark against the Summary Sheet that will update the Data Sheet.

    The real life scenario is that you can enter a date in Summary and it populates the summary sheet. That now works, I wish the Check box to mark the individual lines off that then updated the data sheet. If a new date is entered then it reflects the current value in Data.

    I have updated the file to explain what i'm after

    Thank you
    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. Extraction of data from one sheet to another - reg
    By bubalan in forum Excel General
    Replies: 6
    Last Post: 07-25-2017, 11:54 PM
  2. Copy Sheet of Data Based On Date Extraction
    By Garold in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2016, 04:29 PM
  3. data extraction by date ina task list
    By excelhelpseeker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2016, 03:15 PM
  4. Data extraction from one sheet to another sheet by expiry date
    By binoos123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2014, 02:12 PM
  5. Data extraction from one sheet into another
    By Navin Agrawal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 08:10 AM
  6. Data extraction -- Date
    By poonw in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-05-2011, 01:00 PM
  7. Data Extraction predicated on Date Ranges
    By bstubbs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2009, 02:46 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