hello
I have two files the FILE1 representatives the stock and the FILE2 representatives the process purchasing and selling .
what I would match the columns A,B,C,D together are existed in FILE2 with the FILE1 about the values should compare COL is named NET this should the last column because this COL is a variable every month I issue a new entering then when compare the COL NET in FILE2 as in this case in my picture it should be COL J , finally the expected result also are variable should insert COLS (STOCK,NEGETIVE,POSITIVE,CASE) next to COL NET after matching between two files
keep in your mind (COL NET are a variable in location when you compare ) & also COLS (STOCK,NEGETIVE,POSITIVE,CASE) next to COL NET
note: this a simple data but my real data about 10000 rows just to understand my idea
if any body help with this complicated project I truly appreciate
FILE1
FILE2
I have two files the FILE1 representatives the stock and the FILE2 representatives the process purchasing and selling .
what I would match the columns A,B,C,D together are existed in FILE2 with the FILE1 about the values should compare COL is named NET this should the last column because this COL is a variable every month I issue a new entering then when compare the COL NET in FILE2 as in this case in my picture it should be COL J , finally the expected result also are variable should insert COLS (STOCK,NEGETIVE,POSITIVE,CASE) next to COL NET after matching between two files
keep in your mind (COL NET are a variable in location when you compare ) & also COLS (STOCK,NEGETIVE,POSITIVE,CASE) next to COL NET
note: this a simple data but my real data about 10000 rows just to understand my idea
if any body help with this complicated project I truly appreciate
FILE1
FILE1.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | CODE | DESCRIBE | MODEL | PRODUCT BY | QUANTITY | ||
2 | CAR-1000 | BMW | 2010 | GER | 200 | ||
3 | CAR-1000 | BMW | 2012 | GER | 245 | ||
4 | CAR-1000 | BMW | 2013 | GER | 34 | ||
5 | CAR-1001 | AUDI | 2010 | GER | 234 | ||
6 | CAR-1001 | AUDI | 2014 | GER | 1 | ||
7 | CAR-1002 | FIA | 2011 | IT | 88 | ||
8 | CAR-1002 | FIA | 2013 | IT | 24 | ||
9 | CAR-1003 | MER | 2016 | GER | 56 | ||
10 | CAR-1003 | MER | 2016 | GER | 77 | ||
STOCK |
FILE2
FILE2.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | ||||||||||||||||
2 | CA-1-2021 | CA-2-2021 | ||||||||||||||
3 | CODE | DESCRIBE | MODEL | PRODUCT BY | PURCHASE | SALE | NET | PURCHASE | SALE | NET | STOCK | NEGETIVE | POSITIVE | CASE | ||
4 | CAR-1000 | BMW | 2010 | GER | 220 | 20 | 200 | 200 | 10 | 190 | 200 | -10 | UNMATCHED | |||
5 | BMW | 2012 | GER | 300 | 10 | 290 | 290 | 100 | 190 | 245 | -55 | UNMATCHED | ||||
6 | BMW | 2013 | GER | 34 | 34 | 34 | 34 | 34 | - | - | MATCHED | |||||
7 | LTT | 554 | 30 | 524 | 524 | 110 | 414 | 479 | -65 | - | ||||||
8 | CAR-1001 | AUDI | 2010 | GER | 230 | 230 | 230 | 230 | 234 | -4 | - | UNMATCHED | ||||
9 | AUDI | 2014 | GER | 1 | 1 | 1 | 1 | 1 | - | - | MATCHED | |||||
10 | LTT | 231 | 0 | 231 | 231 | 0 | 231 | 235 | -4 | - | ||||||
11 | CAR-1002 | FIA | 2011 | IT | 100 | 22 | 78 | 120 | 20 | 100 | 88 | - | 12 | UNMATCHED | ||
12 | FIA | 2013 | IT | 48 | 24 | 24 | 60 | 10 | 50 | 24 | - | 26 | UNMATCHED | |||
13 | LTT | 148 | 46 | 102 | 180 | 30 | 150 | 112 | 38 | |||||||
14 | CAR-1003 | MER | 2016 | GER | 100 | 50 | 50 | 100 | 10 | 90 | 56 | - | 34 | UNMATCHED | ||
15 | MER | 2016 | GER | 120 | 3 | 117 | 117 | 117 | 77 | - | 40 | UNMATCHED | ||||
16 | LTT | 220 | 53 | 167 | 217 | 10 | 207 | 133 | - | 74 | ||||||
PUR |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E7:J7 | E7 | =SUM(E4:E6) |
E16:J16,E13:J13,E10:J10 | E10 | =SUM(E8:E9) |
J14:J15,J11:J12,J8:J9,J4:J6,G14:G15,G11:G12,G8:G9,G4:G6 | G4 | =E4-F4 |
Last edited: