Please assist with an automated way either formula or VBA, to remove and place order No to left of ICN no for each order under that order No, and have a sequential list without spaces.
this requires that the items under each order no needs to be identified in turn and matched to the items in the order. An example of what the sheet looks like is given below, this needs to be changed to place the EGU-ORD No next to only the lines with a cat no, ignoring lines that have other data, then sort all the items so that they appear sequentially under the order no, removing data that does not have the order no next to the cat no so should look something like this:
order no ICN Product QTY
EGU-ORD/21-11-1547 6016020 Pethidine 50mg/mL Ampoule [INJ] 400
EGU-ORD/21-11-1551 6200805 Acetazolamide 250mg Tablet [PO] 72
EGU-ORD/21-11-1551 6203655 Allopurinol 300mg Tablet [PO] 200 removing lines containing Total line items, Total lines received, OrderNo once aligned left etc
this requires that the items under each order no needs to be identified in turn and matched to the items in the order. An example of what the sheet looks like is given below, this needs to be changed to place the EGU-ORD No next to only the lines with a cat no, ignoring lines that have other data, then sort all the items so that they appear sequentially under the order no, removing data that does not have the order no next to the cat no so should look something like this:
order no ICN Product QTY
EGU-ORD/21-11-1547 6016020 Pethidine 50mg/mL Ampoule [INJ] 400
EGU-ORD/21-11-1551 6200805 Acetazolamide 250mg Tablet [PO] 72
EGU-ORD/21-11-1551 6203655 Allopurinol 300mg Tablet [PO] 200 removing lines containing Total line items, Total lines received, OrderNo once aligned left etc
ICN | Product | |
EGU-ORD/21-11-1547 | ||
6016020 | Pethidine 50mg/mL Ampoule [INJ] | |
Total Line Items: | ||
Total Lines Fully Received: | ||
EGU-ORD/21-11-1551 | ||
6200805 | Acetazolamide 250mg Tablet [PO] | |
6203655 | Allopurinol 300mg Tablet [PO] | |
6803615 | Aluminium Hydroxide 300mg/5mL Gel [PO] | |
6051013 | Amitriptyline 25mg Tablet [PO] | |
6147016 | Ibuprofen 400mg Tablet [PO] | |
6147084 | Ibuprofen 400mg Tablet [PO] | |
6441816 | Insulin, Soluble And Isophane 30/70%, Brown 100IU/mL Syringe, Prefilled [SC] | |
6441788 | Insulin, Soluble, Fast Acting, Yellow 100IU/mL Syringe, Prefilled [SC] | |
ICN | Product | |
EGU-ORD/21-11-1551 | ||
6441532 | Insulin, Soluble, Fast Acting, Yellow 100IU/mL Vial [SC] | |
6844230 | Lactulose 3.35g/5mL Syrup [PO] | |
6862830 | Liquid Paraffin BP Liquid [PO] | |
6248310 | Loperamide 2mg Tablet [PO] | |
6156056 | Metformin 500mg Tablet [PO] | |
Total Line Items: | ||
Total Lines Fully Received: | ||
EGU-ORD/22-01-1595 | ||
6404430 | Amoxycillin, Clavulanic Acid 1000&200mg Vial [INJ] | |
Total Line Items: | ||
Total Lines Fully Received: |