+ Reply to Thread
Results 1 to 8 of 8

Formula to copy information to the correct date?

  1. #1
    Registered User
    Join Date
    02-20-2017
    Location
    Blackpool, England
    MS-Off Ver
    2013
    Posts
    9

    Question Formula to copy information to the correct date?

    My boss gave me a tough one today. I have 2 documents, one has our data on it next to dates where we made sales, the other has every date of the year with a column next to it ready to be populated.

    As the data I'm copying across has less dates in total (as it only shows dates we sell) compared to where it needs to go which has every date of the year, I can't simply copy across.

    You still with me here?

    So I was hoping there's a kind sir / madam out of you guys who could help me acquire a formula which can check the dates match, then copy the data between 2 other cells if they do match.

    I know I'm asking a lot, but I hope you can help.

    I look forward to reading any responses/help.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Formula to copy information to the correct date?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize (remove any confidential) the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Formula to copy information to the correct date?

    use index match formula.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Formula to copy information to the correct date?

    Try

    =INDEX(Sheet2!$B$2:$B$1000,match(Sheet1!$A2,Sheet2!$A$2:$A$1000,0))

    Dates in Column A on both Sheets

    Data required in Column B of Sheet2

    Output on Sheet1

  5. #5
    Registered User
    Join Date
    02-20-2017
    Location
    Blackpool, England
    MS-Off Ver
    2013
    Posts
    9

    Re: Formula to copy information to the correct date?

    I hope this helps, so we need to check the date from A matches E. Then if it does copy B to F.
    Thank you for your reply.

    Edit: Also, upon further consideration it may be better to skip it looking into a separate document and just getting the formula to successfully copy the correct data, if possible.
    Attached Files Attached Files
    Last edited by JackMWhit; 02-20-2017 at 07:27 AM. Reason: Updating

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Formula to copy information to the correct date?

    Try

    in F3

    =IFERROR(INDEX($B$3:$B$6,MATCH($E3,$A$3:$A$6,0)),"")

    Copy down: you will get blanks where there is no match.

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Formula to copy information to the correct date?

    Why don't we use sumifs function simply.

    Try

    F3=SUMIFS(B:B,A:A,E3) and drag down
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  8. #8
    Registered User
    Join Date
    02-20-2017
    Location
    Blackpool, England
    MS-Off Ver
    2013
    Posts
    9

    Re: Formula to copy information to the correct date?

    That's absolutely perfect. I can sort this out now and adapt it for the real document. Thank you very much for all your help sir. I really appreciate it!

+ 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] Need to copy information from one sheet to another based on date.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2016, 04:37 PM
  2. [SOLVED] Formula to automatically return date in correct cell based on date given
    By MichelleD75 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2016, 01:29 PM
  3. [SOLVED] Formula to pull specific information from a list in the correct order
    By Sleepyshy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-05-2012, 11:36 AM
  4. [SOLVED] I want to insert a row and copy the formula with the correct formating
    By Turtleman10 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-30-2012, 03:39 PM
  5. Copy row based on date and then insert into a new worksheet in the correct section
    By calmlaunch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2011, 01:19 AM
  6. how to copy formula in correct way
    By sunwordelite in forum Excel General
    Replies: 0
    Last Post: 10-05-2009, 02:14 PM
  7. Copy cells into the correct date column
    By Mat K in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2005, 07:47 PM

Tags for this Thread

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