abdo meghari
Well-known Member
- Joined
- Aug 3, 2021
- Messages
- 656
- Office Version
- 2019
Hello
I want comparing BRAND column between two sheets .
the result will be in ACTUAL sheet in H:J columns based on DATE (TODAY)
so in ACTUAL sheet should merge duplicates BRANDS after that will subtract merged QTY from QTY for the same BRAND in STOCK sheet .
if there is brand =0 between two sheets when subtract from each other no need show . just if show plus or deficit values.
if there are no brands in ACTUAL sheet and there are in STOCK sheet then should show minus values in ACTUAL sheet.
should show based on date(today)
note: when date(today) is 29/08/2024 then should keep data were date(today) "28/08/2024"
rather than don't delete old dates when populate data for date (today).
result
I want comparing BRAND column between two sheets .
the result will be in ACTUAL sheet in H:J columns based on DATE (TODAY)
so in ACTUAL sheet should merge duplicates BRANDS after that will subtract merged QTY from QTY for the same BRAND in STOCK sheet .
if there is brand =0 between two sheets when subtract from each other no need show . just if show plus or deficit values.
if there are no brands in ACTUAL sheet and there are in STOCK sheet then should show minus values in ACTUAL sheet.
should show based on date(today)
note: when date(today) is 29/08/2024 then should keep data were date(today) "28/08/2024"
rather than don't delete old dates when populate data for date (today).
TGR.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | ITEM | BRAND | QTY | ||
2 | 1 | BS 1200R20 G580 JAP | 200.00 | ||
3 | 2 | BS 1200R20 G580 THI | 150.00 | ||
4 | 3 | BS 205/70R15C R623 THI | 120.00 | ||
5 | 4 | DT 1200R20 DS 50 THI | 100.00 | ||
6 | 5 | BS 750R16 8PR R230 JAP | 200.00 | ||
7 | 6 | BS 750R16 10PR VSJ JAP | 100.00 | ||
8 | 7 | BSJ 1400R20 VSJ JAP | 120.00 | ||
9 | 8 | BSJ 1400R20 R180 JAP | 700.00 | ||
10 | 9 | BS 315/R22.5 R184 THI | 500.00 | ||
11 | 10 | BS 1200R24 G580 JAP | 150.00 | ||
12 | |||||
STOCK |
TGR.xlsm | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | |||
1 | DATE | INVOICE NO | CLIENT NO | BRAND | QTY | ||||||
2 | 28/08/2024 | BSJ1000 | BBBFT-00 | BS 1200R20 G580 JAP | 150.00 | ||||||
3 | 28/08/2024 | BSJ1001 | BBBFT-00 | BS 1200R20 G580 JAP | 20.00 | ||||||
4 | 28/08/2024 | BSJ1001 | BBBFT-01 | BS 1200R20 G580 THI | 160.00 | ||||||
5 | 28/08/2024 | BSJ1001 | BBBFT-01 | DT 1200R20 DS 50 THI | 80.00 | ||||||
6 | 28/08/2024 | BSJ1002 | BBBFT-02 | DT 1200R20 DS 50 THI | 20.00 | ||||||
ACTUAL |
result
TGR.xlsm | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | |||
1 | DATE | INVOICE NO | CLIENT NO | BRAND | QTY | DATE | BRAND | QTY | |||
2 | 28/08/2024 | BSJ1000 | BBBFT-00 | BS 1200R20 G580 JAP | 150.00 | 28/08/2024 | BS 1200R20 G580 JAP | -30.00 | |||
3 | 28/08/2024 | BSJ1001 | BBBFT-00 | BS 1200R20 G580 JAP | 20.00 | 28/08/2024 | BS 1200R20 G580 THI | 10.00 | |||
4 | 28/08/2024 | BSJ1001 | BBBFT-01 | BS 1200R20 G580 THI | 160.00 | 28/08/2024 | BS 205/70R15C R623 THI | -120.00 | |||
5 | 28/08/2024 | BSJ1001 | BBBFT-01 | DT 1200R20 DS 50 THI | 80.00 | 28/08/2024 | BS 750R16 8PR R230 JAP | -200.00 | |||
6 | 28/08/2024 | BSJ1002 | BBBFT-02 | DT 1200R20 DS 50 THI | 20.00 | 28/08/2024 | BS 750R16 10PR VSJ JAP | -100.00 | |||
7 | 28/08/2024 | BSJ 1400R20 VSJ JAP | -120.00 | ||||||||
8 | 28/08/2024 | BSJ 1400R20 R180 JAP | -700.00 | ||||||||
9 | 28/08/2024 | BS 315/R22.5 R184 THI | -500.00 | ||||||||
10 | 28/08/2024 | BS 1200R24 G580 JAP | -150.00 | ||||||||
ACTUAL |