Copy data from one sheet to another and concat and sort data

Copper Contributor

I have excel workbook as attached. This is sample only.  I want to automate the below task using VBA.

I have requirement like below, would highly appreciate any help with the below:

 

Consideration: There might be cells which are blank, but the operation should not count blank cells as the end of data.
The sheet names will be different each time, but we always need to do the data manipulation in sheet 2 and 4.

1. On Test Report Sheet: Paste values only from columns C,D,E,F from Lab Test Sheet to Test Report Sheet ( including column header).
2. On the Test Report Sheet: At Column E on cell E2, put formula =CONCAT(A2,B2,C2,D2) and copy the formula to all cells.
3. On the Test Report Sheet: Copy only the values in column E to column F.
4. On Test Report Sheet: Sort Column F( A-Z) with expand selection option.

==============

1. On Export Report Sheet: Paste values only from Columns F,C,E,D from Export Sheet to Export Report Sheet ( including column header).
2. On the Export Report Sheet: At Column E on cell E2, put the formula =CONCAT(A2,B2,C2,D2) and copy the formula to all cells.
3. On the Export Report Sheet: Copy only the values in column E to column F
4. On the Export Report Sheet: Sort column F (A-Z) with expand selection option.

===============================================================

Compare/Match Column F in Test Report Sheet and Column F in Export Report Sheet and highlight the entire row with different values with
some colour.

 

2 Replies

 

Would appreciate help on the above requirement.

Any advice on the above requirement?