I would appreciate some help identifying and quantifying available bins that medications are stored in.
My spreadsheet is 22k rows, so I need an easy way to find drawers that are underutilized. I'm ultimately looking to add a column in each row that show #bins available in that drawer by %, so I can sort and find the ones that are more empty, unless someone can think of an easier way.
I have the following report, which displays drawer/bin use in the following way:
medication cabinet name (omni_stid)
cabinet section (cabinet)
zone (zone)
drawer number(drawer_num)
So in this example, you can see that the first 24 rows is a 24 bin drawer (draw_desc). The (omni_stid), (cabinet, zone), and (draw_num) all match, so that is one drawer, and the second drawer continues below with a "2" in the (draw_num) column. You can see if the respective bin in each drawer is utilized, by whether there is a medication name there in the (rx_name) column.
If a bin does not have an assigned medication, it will read "(Available)" in the (rx_name column). You can also see that final column (qty_onhand) shows the quantity currently loaded in that bin. I don't care how many are in the bin, only whether it has a medication assigned and quantity on hand.
In this example, there would be 0% available for the drawer Cabinet PB1W, cabinet 0, zone 1, drawer 1.
Thanks in advance for any help generating a formula to display bin availability!
My spreadsheet is 22k rows, so I need an easy way to find drawers that are underutilized. I'm ultimately looking to add a column in each row that show #bins available in that drawer by %, so I can sort and find the ones that are more empty, unless someone can think of an easier way.
I have the following report, which displays drawer/bin use in the following way:
medication cabinet name (omni_stid)
cabinet section (cabinet)
zone (zone)
drawer number(drawer_num)
So in this example, you can see that the first 24 rows is a 24 bin drawer (draw_desc). The (omni_stid), (cabinet, zone), and (draw_num) all match, so that is one drawer, and the second drawer continues below with a "2" in the (draw_num) column. You can see if the respective bin in each drawer is utilized, by whether there is a medication name there in the (rx_name) column.
If a bin does not have an assigned medication, it will read "(Available)" in the (rx_name column). You can also see that final column (qty_onhand) shows the quantity currently loaded in that bin. I don't care how many are in the bin, only whether it has a medication assigned and quantity on hand.
In this example, there would be 0% available for the drawer Cabinet PB1W, cabinet 0, zone 1, drawer 1.
Thanks in advance for any help generating a formula to display bin availability!
omni_stid | cabinet | zone | draw_num | draw_desc | omni_bin | bin_number | rx_name | qty_parlvl | qty_onhand | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33656 | 1 | CARVEdilol 6.25mg tab | 10 | 9 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33657 | 2 | phenyTOIN ER 100mg cap | 16 | 12 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33658 | 3 | morphine IR 15mg tab | 10 | 8 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33659 | 4 | lactobacillus acidophilus tablet | 15 | 13 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33660 | 5 | metoprolol succinate XL 50mg tab | 10 | 11 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33661 | 6 | fludrocortisone 0.1mg tab | 5 | 12 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33662 | 7 | pregabalin 75mg cap | 10 | 6 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33663 | 8 | rivaroxaban 20mg tab | 5 | 3 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33664 | 9 | diazePAM 5mg tab | 5 | 11 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33665 | 10 | HYDROcodone-aceta 10mg-325mg tab | 15 | 16 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33666 | 11 | HYDROcodone-acetam 5mg-325mg tab | 30 | 16 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33667 | 12 | methocarbamol 500mg tab | 12 | 10 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33668 | 13 | acetaminophen-ox 325mg-7.5mg tab | 10 | 20 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33669 | 14 | HYDROmorphone 4mg Tab | 10 | 10 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33670 | 15 | linagliptin 5mg tab | 5 | 3 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33671 | 16 | losartan 50mg tab | 5 | 8 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33672 | 17 | NIFEdipine ER/XL 90mg tab | 4 | 7 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33673 | 18 | amoxicillin-clav 875mg-125mg tab | 6 | 4 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33674 | 19 | glipiZIDE 5mg tab | 6 | 10 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33675 | 20 | DULoxetine 30mg cap | 10 | 13 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33676 | 21 | NIFEdipine 10mg cap | 10 | 13 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33677 | 22 | atenolol 50mg tab | 8 | 6 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33678 | 23 | ezetimibe 10mg tab | 8 | 6 | |||||||||||||||||||||||
PB1W | 0 | 1 | 1 | 24 Bin Locking | 33679 | 24 | folic acid 1mg tab | 8 | 10 | |||||||||||||||||||||||
PB1W | 0 | 1 | 2 | 24 Bin Locking | 33616 | 1 | metoclopramide 10mg tab | 10 | 9 | |||||||||||||||||||||||
PB1W | 0 | 1 | 2 | 24 Bin Locking | 33617 | 2 | metaxalone 800mg tab | 9 | 8 | |||||||||||||||||||||||
PB1W | 0 | 1 | 2 | 24 Bin Locking | 33618 | 3 | cyancobalamin 1000mcg tab | 10 | 11 | |||||||||||||||||||||||
PB1W | 0 | 1 | 2 | 24 Bin Locking | 33619 | 4 | diltiaZEM CD 180mg cap | 5 | 6 | |||||||||||||||||||||||
PB1W | 0 | 1 | 2 | 24 Bin Locking | 33620 | 5 | traMADol HCL 50mg tab | 20 | 19 | |||||||||||||||||||||||
PB1W | 0 | 1 | 2 | 24 Bin Locking | 33621 | 6 | zolpidem 5mg tab | 8 | 7 | |||||||||||||||||||||||
PB1W | 0 | 1 | 2 | 24 Bin Locking | 33622 | 7 | amiodarone 200mg tab | 16 | 15 | |||||||||||||||||||||||