Hello,
I am working on a file to detect switched quantities. Here is the problem, I receive goods to a central warehouse from many shops. Each shop declares a quantity sent for each item, when goods arrive at warehouse, quantities are scanned. It can happen that errors are made at the warehouse where some quantities which should be on shop A are assigned to shop B, creating differences.
For example for item A, shop A declared 30 units, shop B declared 10. At warehouse 25 units were declared to shop A and 15 to shop B. Shop A has -5 units and shop B +5 units.
I would like to have a formula (or at worst a macro) which can detect those "perfect" switches and make the correction.
I enclose file with some examples, knowing than in real life I hava hundreds of shops with hundreds of items...
Thanks in advance for help
I am working on a file to detect switched quantities. Here is the problem, I receive goods to a central warehouse from many shops. Each shop declares a quantity sent for each item, when goods arrive at warehouse, quantities are scanned. It can happen that errors are made at the warehouse where some quantities which should be on shop A are assigned to shop B, creating differences.
For example for item A, shop A declared 30 units, shop B declared 10. At warehouse 25 units were declared to shop A and 15 to shop B. Shop A has -5 units and shop B +5 units.
I would like to have a formula (or at worst a macro) which can detect those "perfect" switches and make the correction.
I enclose file with some examples, knowing than in real life I hava hundreds of shops with hundreds of items...
Thanks in advance for help