I am trying to create a macro that automatically copies data from sheet 1 to sheet 2 based on the data in sheet 1.
However, everyday I change the information in sheet 1. So I am trying to create a macro I can run to have the info pull daily.
I want columns C and D to copy over to the cooresponding sheet of the employee. So sheet 1 A2 has Albert with a Q and a P column. I am trying to get B2 and C2 to transfer over to the "Albert" sheet but only if they coorespond with Albert on sheet 1.
However, everyday I change the information in sheet 1. So I am trying to create a macro I can run to have the info pull daily.
I want columns C and D to copy over to the cooresponding sheet of the employee. So sheet 1 A2 has Albert with a Q and a P column. I am trying to get B2 and C2 to transfer over to the "Albert" sheet but only if they coorespond with Albert on sheet 1.
bench(153).xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Albert | ||||
2 | I want this cell to have yesterday's date | This cell should copy the data from Sheet 1 column B but only when column A says "Albert" | This cell should copy the data from Sheet 1 column C but only when column A says "Albert" | ||
3 | Previous Date | Queued | Pended | ||
4 | 1/30/2022 | ||||
5 | |||||
6 | |||||
Albert |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A4 | A4 | =TODAY()-1 |
bench(153).xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | UserID | Q | P | ||
2 | Albert | 126 | 436 | ||
3 | Bradley | 27 | 236 | ||
4 | Conner | 81 | 334 | ||
5 | Deanna | 87 | 315 | ||
6 | Eli | 65 | 81 | ||
7 | Felicia | 46 | 298 | ||
8 | Greg | 142 | 254 | ||
9 | Henry | 22 | 134 | ||
10 | Isacc | 23 | 314 | ||
11 | Jeremy | 84 | 403 | ||
12 | Kyle | 18 | |||
13 | Lawrance | 102 | 151 | ||
14 | Mary | 11 | 359 | ||
15 | Nancy | 49 | 274 | ||
16 | Oscar | 49 | 229 | ||
17 | Peter | 17 | 535 | ||
18 | Quincy | 164 | 285 | ||
19 | Robert | 158 | 149 | ||
20 | Sam | 35 | 78 | ||
Sheet 1 |