synchronizing my medication orders

Stumpped

New Member
Joined
Dec 3, 2009
Messages
36
Office Version
  1. 2019
I am a little stimied here. Trying to figure out what I would need to do to be able to have all my medications ordered on the same day of the month eventually. I built a spreadsheet and now I am looking for advice as to where my calculations need to go from here. I usually order my medications every month, but since they have changed my meds over the year, none of my medications are ordered on the same day and are not even anymore. I can order my medications as soon as every 25 days and up to 30 or more days, depending on the amount of supplied medication I have on hand.
Here is the spreadsheet I have right now. The columns are the pills I have in my pill box, the pills I have in bottles, and the total pills. Then there are the number of pills per week I take for each medication and the number of pills per day I take. One pill I only take 1 pill 3 times a week, so the pills per day looks a little screwy. The last column is the number of days I have before I run out. Next, is the days left before running out, and the last column is the days between orders. So I can order every 25 to 30 days.

days left beforedays between
running outorders
MEDICATION NAME:Pills in pill boxPills in bottleTotal Pillspills per weekpills per dayhow many days until I run outto order
medication 16697514237.57 to 12 days25 to 30
medication 212247259142129.57 to 12 days25 to 30
medication 36354171417 to 12 days25 to 30
medication 43273030.428571429707 to 12 days25 to 30
medication 56485471547 to 12 days25 to 30
medication 65303571357 to 12 days25 to 30
medication 76122128142647 to 12 days25 to 30
medication 86232971297 to 12 days25 to 30
medication 96374371437 to 12 days25 to 30
medication 1012354714223.57 to 12 days25 to 30
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
first since you only want to reorder once a month, I don't think your weekly usages matter.
second, you don't say how many pills are in each prescription. But here is my attempt at it.
It highlights the months that you will run out if you don't reorder. The value in the month is assuming you will reorder the first of that month:

mr excel questions 22.xlsm
ABCDEFGHIJKLM
12023-01-012023-02-012023-03-012023-04-012023-05-012023-06-012023-07-012023-08-01
2presciption sizebufferdosage daily sizestart3128313031303131
3DrugA5071155851443780736659
4DrugB3030.3333333201714113835322926
5DrugC4001421008672458444430416402388
6DrugD500284250222194166138610582554526
7
Stumped
Cell Formulas
RangeFormula
F1F1=DATE(2023,1,1)
G1:M1G1=EOMONTH(F1,0)+1
F3:M6F3=(E3-$C3)+ IF((E3-$C3)<$D3*IF(AND(MOD(YEAR(F$1),4)=0,MONTH(YEAR(F$1)=2)),29,F$2),$B3,0)
D4D4=1/3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:M6Expression=F3>=E3textNO
 
Upvote 0
I appreciate your attempt at solving this issue. You are correct, I did not provide you with enough information to be able to solve it, but I was also unaware that I should have given that information in the first place. Like you said I didn't think about how many pills I received in each prescription bottle. I was able to solve this by a brute-force method. I took the list of medicines and added 30 days which is a standard prescription date refill time. Then I either kept the refill dates at every 30 days and then subtracted up to 5 from each prescription until I ended up in August with all my medications being ordered on August 30th.
 
Upvote 0
Solution
I'm glad you figured that out.

The solution i offered does what you just wrote. It works for a prescription with what ever number of pills is appropriate for the monthly dosages. The formula also takes into consideration that some months have more, less, or equal to 30 days, as well as using a buffer of 7 days, I guess you chose 5, which is your choice.
 
Upvote 0

Forum statistics

Threads
1,215,316
Messages
6,124,228
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top