I'm very new to trying use python with my work,
here's an excel worksheet I got:
- A as product name in July,
- B as product Qty in July,
- C as product name in Aug,
- D as product Qty in Aug
I needed to get the result of difference between them:
- find exactly sold Qty in next month
- calculated the subtract
|A | B|C | D|
|SRHAVWRQT | 1|SRHAVWRQT | 4|
|SCMARAED3MQT| 0|SCMARAED3MQT| 2|
|WVVMUMCRQT | 7|WVVMUMCBR | 7|
...
...
I know how to solved this in excel like what I did,
with INDEX + MATCH and the difference:
=G3-INDEX(B:B,MATCH(F3,A:A,0))
than I would having the result as I need The original data
but how am I would perform it in python? and which tool would be use? (e.g. pandas? numpy?)
with other answer I'd read, but it seems just performed only INDEX/MATCH function and/or they are trying to solve the calculation between Multiple Sheet but I just need the result of 2 columns.
How to perform an Excel INDEX MATCH equivalent in Python
Calculate Match percentage of values from One sheet to another Using Python
https://focaalvarez.medium.com/vlookup-and-index-match-equivalences-in-pandas-160ac2910399
Or there's just will be a completely different way of processing in python