Let's say John Yellow's expense in sheet1 is 50 then the total would be 160, then it should move from List 2 to List 1, right?
Try this:
Sheet2 must be the activesheet when you run the code.
With John Yellow's expense in sheet1 is 50, here's the result:
Excel 2013 32 bit
|
A |
B |
C |
D |
1 |
List 1 |
|
|
|
2 |
ID |
NAME |
DEPARTMENT |
Expenses >150 |
3 |
7099 |
Tony Brown |
Finance |
600.00 € |
4 |
4122 |
Tom Black |
Finance |
500.00 € |
5 |
4456 |
Mary Red |
Finance |
320.00 € |
6 |
2222 |
Tim Purple |
Marketing |
180.00 € |
7 |
1003 |
John Yellow |
HR |
160.00 € |
8 |
4520 |
Sasha Grey |
Marketing |
300.00 € |
9 |
|
|
|
|
10 |
|
|
|
|
11 |
|
|
|
|
12 |
List 2 |
|
|
|
13 |
ID |
NAME |
DEPARTMENT |
Expenses 100~150 |
14 |
2004 |
Jim Green |
HR |
130.00 € |
15 |
7089 |
Sam Blue |
Logistics |
130.00 € |
16 |
3669 |
Fiona Pink |
Marketing |
125.00 € |
17 |
|
|
|
|
18 |
|
|
|
|
19 |
|
|
|
|
20 |
List 3 |
|
|
|
21 |
ID |
NAME |
DEPARTMENT |
Expenses <100 |
22 |
4600 |
Catherine Orange |
Logistics |
45.00 € |
23 |
5002 |
Susan White |
Marketing |
70.00 € |
24 |
6045 |
Orpheus Burgundy |
Logistics |
45.00 € |
25 |
4669 |
Maria Cyan |
HR |
50.00 € |
26 |
9977 |
Solomon Gold |
Finance |
40.00 € |
Bookmarks