+ Reply to Thread
Results 1 to 4 of 4

find date that matches date on my sheet and copy from table below.

  1. #1
    Registered User
    Join Date
    05-06-2015
    Location
    England
    MS-Off Ver
    2014
    Posts
    71

    find date that matches date on my sheet and copy from table below.

    Hi, I have a spreadsheet that I need help with, basically I have a few tables on sheet 1 that collate information for the weeks during the year, and on sheet 2 I want to just collate information from that 1 week that we are currently on. I would like a formula to find the date on sheet 1 that matches the date on sheet 2 (cell b1) then copy the date from the cells in the table below. I have attached a sample and any help would be appreciated!

    Thanks

    Katy
    Last edited by k1989l; 06-07-2016 at 08:06 AM.

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

    Re: find date that matches date on my sheet and copy from table below.

    You can use a formula like this, say in D1, to find where the date occurs in column B of the main sheet:

    =IFERROR(MATCH(TEXT($B$1,"dd/mm/yyyy"),'sheet 1'!B:B,0),"")

    Then you can use these formulae in the cells stated:

    B9: =IF($D$1="","",INDEX('sheet 1'!C:C,$D$1+3))

    B10: =IF($D$1="","",INDEX('sheet 1'!C:C,$D$1+4))

    and copy these across for the other days.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-06-2015
    Location
    England
    MS-Off Ver
    2014
    Posts
    71

    Re: find date that matches date on my sheet and copy from table below.

    Quote Originally Posted by Pete_UK View Post
    You can use a formula like this, say in D1, to find where the date occurs in column B of the main sheet:

    =IFERROR(MATCH(TEXT($B$1,"dd/mm/yyyy"),'sheet 1'!B:B,0),"")

    Then you can use these formulae in the cells stated:

    B9: =IF($D$1="","",INDEX('sheet 1'!C:C,$D$1+3))

    B10: =IF($D$1="","",INDEX('sheet 1'!C:C,$D$1+4))

    and copy these across for the other days.

    Hope this helps.

    Pete
    Thanks, genius!!!!

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

    Re: find date that matches date on my sheet and copy from table below.

    Thanks for the rep.

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

    Pete

+ 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. Copy columns between spreadsheets if date matches
    By sandy1977 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-19-2016, 10:56 AM
  2. [SOLVED] Macro to match date in data table and copy cell range containing date.
    By 54ed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2014, 04:52 AM
  3. [SOLVED] Cells.Find xlDate does not find first date in sheet unless date format is dd/mm/yyyy
    By AtTheControls in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-07-2013, 12:35 PM
  4. Search for a value if it matches find closest date
    By pedrojoin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2013, 08:36 AM
  5. Find date and copy names to other sheet
    By cascao in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-08-2013, 12:29 PM
  6. [SOLVED] Find the date and copy the values from the colum of the date find and paste to other sheet
    By nizzcmzph in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-20-2013, 10:03 AM
  7. VBA to lookup data in another sheet if date matches.
    By chris_waldie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2005, 04:42 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