Need a forula to move data from one spreadsheet to another

ArcticAce

New Member
Joined
Feb 23, 2018
Messages
32
I don't know if I need to use VLOOKUP, INDEX, MATCH or a combination of them. I need to get the employees review dates from Sheet 2 into Sheet 1. The dates on Sheet 2 are in a row, and I need them on Sheet 2 in a column, but I need them in the correct month. So using Sheet 1 A3 as an example, I need the dates from Sheet 2 to populate in the correct month in Sheet 1.


I hope I explained this enough. I am good with basic excel, but now I am needing help with advance formula's.


Is there a way to do get this to work.




Sheet 1

A B C D E
EmployeeJan ReviewFeb ReviewMar ReviewApr Review
Doe, John
Doe, Jane1/5/20182/4/20183/3/2018

<tbody>
</tbody>


Sheet 2

A B

EmployeeReview Conducted On
Doe, John3/2/2018
Doe, John1/2/2018
Doe, Jane2/4/2018
Doe, Jane3/3/2018
Doe, Jane1/5/2018

<tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Is there a reference to the review month on Sheet2?

If Sheet2 was set up with Employee, Review Month, Review Conducted On as header in day cells A1 to C1 you could you MATCH & INDEX to return the Review Conducted On date for each Employee - Review Month combination.
 
Upvote 0
Sam_ExcelVault, so I need to add a Review Month Column? The data in sheet to comes from an automated report, but I can add the column. What would the formula be to get it MATCH & INDEX, also transposed.
 
Upvote 0
I would add a "helper column" onto Sheet2 and use the EOMONTH function in that cell to return the last date of the month for each date in the "Review Conducted On" column. So in your above example, on Sheet2 in Cell C2 you'd have:

=EOMONTH(B2,0)

Then set up your Sheet1 to have the last day of the month in Row1 for each Review Month e.g. Jan Review = 31/01/2018, Feb Review = 28/02/2018. You can use a customer data format to have Excel display Jan Review etc. rather than a date.

Then use this array formula in Cell B2 and drag across for each review month and down for each employee in your list:

=IFERROR(INDEX(Sheet2!$A$1:$C$6,MATCH(Sheet1!$A$2&Sheet1!B$1,Sheet2!$A:$A&Sheet2!$C:$C,0),2),"")

Make sure you commit the formula by pressing CTRL + SHIFT + RETURN to insert as an array formula. It uses the MATCH function to find the particular row that has the employee name and corresponding review month and then returns the actual review date. IFERROR is wrapped around the formula to return a blank value if there isn't a review date for the given employee/month combination.

I hope that makes sense/helps!
 
Upvote 0
Sam_ExcelVault, thank you very much it worked for me. I really appreciated your help. Now, I have one more question, can I do this in a table. If so, can you help me.

 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top