creating a total which adds 1 days, 2 odd days

I have a spreadsheet of numbers that keeps the total stocks of drugs race which calculates how many pills are left and gives the date they run out.

It is based on a start date and the stock of departure and has always worked fine where the same number of each pill is taken every day.

I now have a complication when a type of pill is issued 1 one day, 2, 1 the next and so on alternately.

I need a formula that lowers the left over stock every day by one or two depending on whether it is an odd day / pair

It should be relatively simple, but I just can't get my head around it.

any help welcome

Without the screenshots, it's hard to guess how you have your document updated in place, but according to your description, you could do something like this:

The table below simply illustrates the push model as you describe.  If that is correct, then the calculations could be as shown in table 1.  The formulas used in column B are shown in column C.

The formula with the ROUND function simply assumes that a pill is given every day then add half (because an additional pill is added every day) and rounded to the nearest integer.

SG

Tags: iWork

Similar Questions

  • Create multiple quizzes which add score

    Adobe Captivate 7

    I created of the three information sections that each contain a quiz after.  I want the total score for each quiz to be added to the last page of the training.  Is this possible?

    Training module

    Material of section 1 and Section 1 Quiz - users must pass the 5-question quiz or review the material and take the quiz again

    Section 2 of the material and Section 2 Quiz - users must pass the 5-question quiz or review the material and take the quiz again

    Material in section 3 and Section 3 Quiz - users must pass the 5-question quiz or review the material and take the quiz again

    Last page is added to their total score of all 3 quizzes

    Within a single CP-file? If you report to an LMS, you have will be aware that SCORM allows only a quiz by file.

    If it's OK, you will need to use advanced actions and user variables to create the total individual scores for the three tests and make decisions on that basis. How you can create these partial results is explained here:

    Intermediate Score slides - Captivate blog

  • I am creating a total field contingent in a PDF form created by me which will only add cost in total ONLY if the box is checked.  Another disadvantage to this is one of the fields (number of monitors), I am eager to multiply by the field notes.

    I am creating a total field contingent in a PDF form created by me which will only add cost in total ONLY if the box is checked.  Another disadvantage to this is one of the fields (number of monitors), I am eager to multiply by the field notes, which is a field required number on there.

    All of them are select___

    Here are all the names of FQDN (towards the bottom):

    Check the boxes:

    • selectiPhone
    • selectSwipe
    • selectMonitor
    • selectDesktop
    • selectLaptop
    • selectiPadCell
    • selectiPad
    • selectPhone

    Fields of costs:

    • CostiPhone
    • CostSwipe
    • CostMonitor
    • CostDesktop
    • CostLaptop
    • CostiPadCell
    • CostiPad
    • CostPhone

    The notes field that will calculate this is "NotesComputer Monitor in notes". -It is a body of numbers forced the inability to put anything else in it.

    Then add them all in TOTAL COST

    Sorry for my ignorance: it's my first time doing a form like this.

    Please see below for the screenshot.

    2015-10-12_1411.png

    Dropbox - conditionalSum.pdf has the answer

  • Named question to create a calculation to add cells to the table three for a total

    I need help to create a calculation to add three tables.  Table, 6, 7 and 8.  The total of all tables must be in the last table where it says altogether.

    I'd appreciate any help.

    Thank you

    If the resultyou find attached will help.

    Steve

    Please post questions for LiveCycle Designer ES in this forum in the future.

  • Which add on that I have to disable in order to open my emails?

    One day, I was unable to open emails in hotmail. After reading some chatter of firefox support, I disabled all add ons and started firefox in safe mode. After that, I was able to open e-mail messages without problem.
    The question I have is: How can I find which adds on is responsible for not allowing me to open my mails in hotmail? I hope there is a solution more simple and faster than the "trail and error"?

    Thank you

    Martin

    Trial and error looks like the only way to solve this problem.
    I recommend trying to disable Flashblock or fast Java extensions first.

    If error not working, reply to this message and we will have to try some combinations.

  • With the help of liquid create a "Total registered" in the basket

    Hello fellow BC users.

    I know using liquid, we are now able to view savings products in small and large product pages, but my question is how we can convert only the shopping cart to create a "Total recorded" is it even possible?

    I tried several pieces of liquid code and even tried to add the value retail Custom1, but of course this is that a 'chain' is so impossible to be treated like a number.

    The website that I am working on http://cctvkits.info, it is a working progress but I would like 1 or 2 items that the customer has added that it would be marked as off sooner rather than later.

    As always help or advice then will be greatly received.

    Thank you

    Hi Tom,

    You will need to use module_data to get additional information for each product in the cart, because you don't have the tags for the retail price in the shopping cart layout.

    1. assign a variable that you will be totalSave.

    2. loop through cart.items and get the retail price for each product

    3. make the difference between that and item.price and multiply by item.quantity.

    4. use of the more filter, add this to totalSave.

    5. output in your page totalSave.

    Let me know if you need more help on this.

    PS You can convert the string customX in a number using the conversion filter

    Stoiky

  • Add 44 days to the current date and display DD mmmm yyyy

    I created a form in Acrobat Pro ms and I need a form field to display the date 44 days from the day that the form is completed.  Searched these forums and responses found that are close but they all seem to calculate the base on another field in the document.  I do not have the date of the day on the form and I'm "challenged" javascript, so cannot get out.

    For example, when the user opens the form today (October 13, 2015) the field must display on 26 November 2015.

    Thanks in advance for your help.

    Another approach would be to use JavaScript getDate() and methods setDate() for the date object.

    Get the current date object.

    var oNow = new Date();

    object of the new date

    oNew var = new Date();

    get the current date of the date object.

    var nNowDate = oNow.getDate ();

    Add 44 days at the time of the day;

    var nNewDate = nNowDate + 44;

    new date of update object;

    oNew.setDate (nNewDate);

    format of the new text string to date object.

    var cNewDate = util.printd ("dd mmmm yyyy", oNew);

    value of the field of play;

    Event.Value = cNewDate;

    show some information;

    Console.Show ();

    Console.clear();

    Console.println ("today is:" + util.printd ("dd mmmm yyyy", oNew));

    Console.println ("today's date is:" + oNow.getDate ());

    Console.println ("current date = 44 days:" + nNewDate);

    Console.println ("44 days now is:" + cNewDate);

    The script could be made more compact by combining several lines of code in one line of code:

    Get the current date object.

    var oNow = new Date();

    Add 44 days at the time of the day;

    oNow.setDate (oNow.getDate () + 44);

    value of the field of play;

    Event.Value = util.printd ("dd mmmm yyyy", oNow);

  • If I go to a website and it Add on of States necessary. How can I find out which add on is necessary

    If I visit the following website http://www.cannonclevelandfunerals.com on my Samsung Galaxy 10.1
    Tablet of the part with the States of photo to an add-on and the portion of the screen with photos
    is empty. How will I know which add-on is required. I added the HTML5 module, and many who have to make the video, but not luck. It still does not work. If I look at the site on my computer, everything is OK. I also installed on my mobile firefox browser to fake.
    Thank you

    SHAKYNOT

    I tried to download, works of nothi, g

  • Word documents: Is there some Word Documents created in Vista which cannot be open in XP?

    Is there some Word Documents created in Vista which cannot be open in XP?

    Following the correct advice of Ken Blake MVP, here is the link for the Office Compatibility Pack Ken Blake MVP mentioned:

    http://www.Microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&DisplayLang=en

    "Open, edit and save documents, workbooks, and presentations in the file formats Open XML, which were introduced in Microsoft Office Word, Excel, and PowerPoint beginning with Office 2007."

    See you soon.

    Mick Murphy - Microsoft partner

  • How to create a macro to add specific text whenever I need?

    How to create a macro to add specific text whenever I need (that is, THIS STATEMENT IS TRUE AND CORRECT)?  Rather than having to type it every time I'm looking for a way to save this macro (or action) then I can save time when inserting this text in a PDF file. Thank you!

    Put the text in a text file. From there, you can copy and paste.

  • Don't vSphere replication create control points which can be selected during the failover?

    Don't vSphere replication create control points which can be selected during the failover?  Or is the latest version of replication, the only option to failover?

    Thank you

    -MattG

    No, this isn't

    You CAN do this with EMC RecoverPoint (although not on a per VM level).

  • I have a total of cells which can go up to any amount.  I also have a Grand total of cells using the total amount of cells, BUT it must be a total which is < = 20

    I have a total of cells which can go up to any amount. I also have a GRAND total of cells using the total amount of cells, BUT it must be a total which is < = 20.  So in other words. He TOTAL = 31 total can only = 20.   If the TOTAL = 8 total would equal 8.

    Thank you!

    Custom calculation script for "GRAND total":

    var total = + this.getField ("TOTAL") .value;

    Event.Value = Math.min (total: 20);

  • When are you going to create a captcha which does not have international bc

    When are you going to create a captcha which does not have international bc

    Hello

    With Adobe Muse CC 20141, reCaptcha and checkbox field can be added to forms.

    Please install our latest update to try out these new features.

    Release notes | Adobe Muse CC

    Thank you

    Sanjit

  • How to create a script which gives all depedencies an object in 11g

    How to create a script which gives all depedencies an object in 11g

    You can use dba_dependencies for this... go through the manual.

    I don't know in this thread, someone will come up with the query for you, but there is another approach is:

    in sqlplus:

    SET SERVEROUTPUT ON SIZE 1000000
    EXEC  dbms_utility. get_dependency ('TABLE','SCOTT','EMP');   -- object_type,user,tablename as parameters
    

    See you soon,.
    Manik.

  • Add 30 days to the output of the date

    Hello, how do you add 30 days to the date in the hidden field.

    Also is there another way to do this?
    Thank you


    1. my query in query page


    < name cfquery = "getdate" datasource = "" #request.dsn # "LignesMax ="1">"
    SELECT
    MyTable_date
    FROM MyTable
    where
    Tcase.case_id = #mainquery.mycaseID #.
    < / cfquery >


    2. my hidden fields in my query on the query page

    subsist = # getdate. MyTable_date #;


    3. my output in the output page
    < cfoutput >
    < td width = "45%" > < date hard >: < facilities > #DATEFORMAT(thedate, "mm/dd/yyyy") #.
    < / cfoutput >

    dateAdd (would be ', 30, live)

Maybe you are looking for