Need help with data autofill when there's previous data above

%3CLINGO-SUB%20id%3D%22lingo-sub-2694829%22%20slang%3D%22en-US%22%3ENeed%20help%20with%20data%20autofill%20when%20there's%20previous%20data%20above%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2694829%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20do%20you%20lookup%20then%20copy%20and%20paste%20data%20when%20there's%20previous%20data%20from%20the%20above%20cell.%20My%20file%20is%20being%20updated%20daily%20so%20there's%20new%20data.%20I%20need%20to%20make%20a%20VBA%20that%20looks%20up%20the%20new%20data%20then%20copy%20and%20paste%20it%20as%20values.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20I%20need%20to%20look%20up%20the%20last%20entry%20on%20Column%20C%20on%20Sheet1%20then%20enter%20the%20data%20on%20Column%20B%20(IFERROR(INDEX(Sheet2!B%3AB%2CMATCH(Sheet1!B%3AB%2CSheet2!A%3AA%2C0))%2C%22%22)%20on%20Sheet2%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Autofill%20data%20until%20the%20last%20row%3C%2FP%3E%3CP%3E3.%20Copy%20and%20paste%20as%20values%3C%2FP%3E%3CP%3E4.%20Run%20again%20once%20there's%20new%20data%20on%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20know%20what%20code%20to%20use%20on%20the%20autofill%20part.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JohnCY_0-1630143137555.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306404i2DA21D7B90D3F8CB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JohnCY_0-1630143137555.png%22%20alt%3D%22JohnCY_0-1630143137555.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2694829%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2694842%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20data%20autofill%20when%20there's%20previous%20data%20above%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2694842%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35679%22%20target%3D%22_blank%22%3E%40Haytham%20Amairah%3C%2FA%3E%26nbsp%3Bplease%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

How do you lookup then copy and paste data when there's previous data from the above cell. My file is being updated daily so there's new data. I need to make a VBA that looks up the new data then copy and paste it as values. 

 

1. I need to look up the last entry on Column C on Sheet1 then enter the data on Column B (IFERROR(INDEX(Sheet2!B:B,MATCH(Sheet1!B:B,Sheet2!A:A,0)),"") on Sheet2 

2. Autofill data until the last row

3. Copy and paste as values

4. Run again once there's new data on 

 

I don't know what code to use on the autofill part. 

 

JohnCY_0-1630143137555.png

 

1 Reply