Calculate daily average

Hi,
I'm trying to have numbers calculating an average based on the actual day of the year.
I have a table with a lot of data for a lot of days within the year and would like to know the current average per day. I think I have to have one cell that gives me the current day of the year and another with the total amount of all the data I enter in the table and a third cell that gives me the average of it.
What would be the easiest salvation?
Thank you

Hi Henning,
My assumptions differ slightly from kharisma's.
I've assumed you want an average based on the days for which there has been activity. For example if this were the average daily sales of a shop open Monday to Friday, there would be no data for Saturdays or Sundays. Similarly, the data table could record the earnings of a casual worker—some days the worker could receive payment from multiple employers, other days he might be unavailable for employment (or remain unhired).
Here's an example. I've made the 'amounts' constant to simplify checking the calculations.
The total and Average per Day calculations have been placed in two Footer rows. this allows using a single letter in the tew formulas to reference wach column, and permits adding rows to the table without revising the formulas.
Formuas:
B17 (the first Footer row): =SUM(B)
B18 (second Footer row): =SUM(B)/MAX(C)
C2, and filled down to C16 (last body row):
=IF(COUNTIF(A$2:A2,A2)=1,MAX($C$1:C1)+1,"")
This presents a running count of the number of distinct dates in Column A. The MAXimum value in the column gives the total number of days recorded, and is used to determine the per day average of the amounts (or other values) in column B.
Column C is a 'working column,' and may be hidden.
Regards,
Barry

Similar Messages

  • Daily average consumption...

    Hi,
    We need to calculate the daily average consumption during the creation of the billing document and bring it at the installation fact level and also use the same for some of the seasonal(Winter)  billing periods as a billable consumption instead of the winter actual meter reads.
    Please suggest the solution with possible variant programs for designing the above RATE steps.
    Sunil

    Hi,
    For consumption try
    comput20
    Quanti09
    Infact06
    In the schemma add a "if" to check for winter.
    If yes then use the qty from the  Installtion fact(New rate similar to the regular consumtion rate)
    You will need a Z variant to fetch the qty from ETTIFN (Check COMPUT97,INFACT06)
    Use a new operand to store this qty (Ignore the operand having the current month qty)
    and use this qty in your calculation.
    John

  • How to calculate an average of YTD measures?

    Hi all,
    I'm working on BPC 10 for NW.
    We use an account-type dimension for Personnel inventory (Personnel to fixed-term contracts, to permanent contracts, number of executives, staff etc.).
    The corresponding ACCTYPE is AST because people are seen as a balance sheet account measure. So the measure, even if we're in periodic in our model, is stored as a YTD value.
    I want to calculate a average with those measures, for instance the average number of contractors from january to the current month, with a member formula. I can't manage to do that with a calculation because I can't add values of YTD measures: when I try a formula like ([ACCOUNT].A1 , [MEASURES].[YTD]) it returns the same value as the periodic value. Whereas the formula works with EXP account type.
    The formula I'd like to have in the end would be something like that:
    iif(isleaf([TIME].currentmember),avg(YTD(),([Measures].[PERIODIC],[ACCOUNT].[G102])),[TIME].currentmember.lastchild),solve_order=5
    This formula works in a previous version of BPC (5.1) but not in BPC 10.
    Any idea?
    Thanks very much,
    Sébastien.

    Assuming the job always starts at mid-might, you can try something like this:
    WITH t AS
    (SELECT to_date('01-JUL-2011 07:25:31', 'dd-mon-yyyy hh:mi:ss') AS end_date
    FROM dual
    UNION
    SELECT to_date('02-JUL-2011 07:10:58', 'dd-mon-yyyy hh:mi:ss') AS end_date
    FROM dual
    UNION
    SELECT to_date('01-AUG-2011 07:16:24', 'dd-mon-yyyy hh:mi:ss') AS end_date
    FROM dual)
    SELECT trunc(end_date, 'mon') AS MONTH,
            trunc(end_date, 'mon') + avg(end_date - TRUNC(end_date)) AS AVERAGE_TIME
    FROM t
    GROUP BY TRUNC(end_date, 'mon');

  • Health app: bug in daily average for sleep in year view?

    I've manually entered sleep time for everyday since August 2014 in the Health app (on iOS 8, on an iPhone 6).
    In Day, Week, and Month view, the daily average seems correct (resp. 7h49, 7h09, 7h09).
    But it is obviously wrong in the Year view (12h36mn).
    Also the graph in the Year view is wrong. (The bar for August is twice as high as the one for October for instance.)
    (I've check -3 times- that these manually entered data were correct.)
    Does anybody experience the same problem?
    Or as any idea what the bars, in the Year Graph, are supposed to represent? (daily average for each month? or total sum of sleep time for the month?)
    Thanks in advance!
    Antoine

    The Health App really serves as a conduit between a variety of other apps that wouldn't ordinarily be able to talk to each other. The App Store has a section for apps that work with Health to be able to sync data.
    You can submit feedback to Apple here:
    http://www.apple.com/feedback
    Don't stress to much if you can't find a section dedicated to Health. Pick something under "iPhone" and just make sure you explain it well.

  • How to calculate the average inventory in ABAP

    Dear All,
    Please find the below formula and this formula how to calculate the Average inventory at value.Please let me know the abap base tables and the corresponding fields.
    Formula
    Inventory Turnover = Cost of Goods Sold (COGS) / Average Inventory at value.
    Thanks
    Regards,
    Sai

    Hi Arivazhagan,
    Thanks for your quick response .
    The field MBEWH from the table is fulfill the average inventory at value.
    For Eg :I want to calculate Inventory Turnover = Cost of Goods Sold (COGS)/
    Average Inventory at value.
    so shall i take Inventory Turnover = Cost of Goods Sold (COGS)/MBEWH
    The above formula will meet my requirement to find the average inventory Turnover.
    Thanks
    Regards,
    Sai

  • How do I calculate the average of ONLY the populated fields?

    I'm working on an Adobe form to streamline the process of summarizing course evaluations.  To protect the anonymity of the students, instructors with 10 or fewer students are given a typed summary of the evaluation results.  On the first half of the evaluation, the students are asked to rate a series of statements from 1-5.  Three of these are highlighted on the summary form with the average response. 
    I've already set up the form with 10 unique boxes for each question and an 11th box which calculates the average.  Each field is named according to the question number and the student's "number" (I arbitrarily gave each student a number so that each field would be unique):
    i.e. #1. Questionquestionquestion.  Q1S1  Q1S2  Q1S3  Q1S4  Q1S5  Q1S6  Q1S7  Q1S8  Q1S9  Q1S10  1AVG
    The problem, of course, is that no matter how many students were actually in the class, the AVG field will always be calculated based on a group of 10...which isn't accurate or fair to the instructor.  I thought about just changing the form and removing the unused fields from the equation each time I make up a new summary, but the point of creating a form was to make it as quick and easy as possible to bang these things out... Plus, some of my coworkers might be using the form from time to time and I'd have to explain what they have to do and if they don't have Adobe Acrobat then they can't actually make the changes and blah blah blah...it just gets ridiculous really quickly!
    So anyway, I tried reading some other posts for similar questions in an attempt to figure out a custom calculation script for myself, but I just couldn't focus on it.
    I was hoping someone could explain how to write a custom calculation script that will omit any fields which are left blank... Or, even better...is anyone willing to write it for me?  At least just an example of the first guy, cause I could probably figure out how to get all the other ones from there.
    Thanks.

    In formcalc the function Avg will calculate the average of only the fields with a value in them. So you would would put in the calcuate event of the average field:
    $ = Avg(Q1S1,Q1S2,Q1S3,Q1S4, etc)

  • Javascript to Calculate the Average of a column

    I have a column of fields in my PDF that I am trying to calculate the average for.
    My problem is that there are 7 fields, but all 7 may not be filled in so I think I need some kind of "if" statement that would only count the number of fields that have values.  Then somehow work that into the rest of my calculation...
    This is what I have so far...
    (function () {
        // Get all of the field values, as numbers
        var v1 = +getField("column.0").value;
        var v2 = +getField("column.1").value;
        var v3 = +getField("column.2").value;
        var v4 = +getField("column.3").value;
        var v5 = +getField("column.4").value;
        var v6 = +getField("column.5").value;
        var v7 = +getField("column.6").value;
        var v8 = +getField("column.7").value;
        // Calculate the result and set this field value
        event.value = (v1 + v2 + v3 + v4 + v5 + v6 + v7) / the number of fields that were filled in;
    I'm pretty new to javascript. Any help would be greatly appreciated! THANKS

    First, I woul write this function withou field references to make it more universial, and then I would make it a document level funcion so it could be used more than once in a PDF and easily brought into another PDF.
    function Avg() {
    // computer average of non-empty passed field names
    var sum = 0; // sum of fields
    var count = 0; // counter for non-blank fields
    for(i = 0; i < arguments.length; i++) {
    var iField = arguments[i]; // get the i element from passed arguments
    var fField = this.getField(arguments[i]).value;
    if(!(isNaN(fField)) ) {
    // field is a number
    if(fField.toString() != '') {
    // field is not null or blank
    sum += Number(fField); // add to sum
    count++; // increment count
    } // end not blank
    } // end number
    } // end loop through arguments
    if(count != 0) {
    // compute average if there is one or more items to average
    return sum / count; // return average
    } else {
    return '';
    } // end no average computed
    } // end Avg function
    Your custom calculation script then becomes:
    event.value = Avg('column.0', 'column.1', 'column.2', 'column.3', 'column.4', 'column.5', 'column.6', 'column.7');

  • Average of monthly daily average adventureworks cube

    I want to be able to create a calculated member which is the average of the monthly daily average. I have tried this using the adventureworks cube with the following MDX:
    with Member Measures.DailyAverage AS
    Avg ( EXISTING
    {[Date].[Date].[Date].Members},
    [Measures].[Internet Order Count]
    Member MonthlyAverageOfDailyAverage AS
    Avg ( EXISTING
    {[Date].[Month of Year].Members},
    Measures.DailyAverage
    select {(DailyAverage),(MonthlyAverageOfDailyAverage)} on columns,
    [Date].[Calendar Year].Members on rows
    from [Adventure Works]
    This doesn't yield the answer I am expecting, Looking just at year 2005, July has 146 internet orders, 31 days with orders, therefore a daily average of 4.709, August has a daily average of 5.2, September = 5.379, October = 5.2, November = 5.2 and December
    = 5.032. I want the average of these daily averages which should be 5.120. The MDX above gives me 5.588. What should my calculated member be to get what I want? Thanks

     Looking just at year 2005, July has 146 internet orders, 31 days with orders, therefore a daily average of 4.709, August has a daily average of 5.2, September = 5.379, October = 5.2, November = 5.2 and
    December = 5.032. I want the average of these daily averages which should be 5.120. The MDX above gives me 5.588. What should my calculated member be to get what I want? Thanks
    Hi,
    Your calculations seems to be correct for July and August only:
    with Member Measures.DailyAverage AS
    Avg ( EXISTING
    {[Date].[Date].[Date].Members},
    [Measures].[Internet Order Count]
    ), format_String="##.000000"
    select (DailyAverage) on 0,
    [Date].[Calendar Year].&[2005] * [Date].[Calendar].[Month] on 1
    from [Adventure Works]
    The average is indeed : 5,5874675 
    Philip,

  • Daily Average Cash Balance

    Hi All,
    I have this report icreated on FISL ODS where I have to define "Daily Average Cash Balance". User is not sure what contitutes this definition. I would really appreciate if somebodt can give me an idea about it.
    Thnx.

    hi did u get the answer for this.... even i have same senario where i have to give a report on cash balance

  • Calculate the average value

    the data I measured changed rapidly, so i want get the average value of the data
    Do not tell me to use mean.vi , i have already know that.
    and i got an idea which is add the data into an array every time, then sum of all the data value and take the result divide by the number of elements
    but i dont know how to achieve that, anyone can build a simple vi to show me ? thank you
    i have attached my vi which is using mean.vi to calc the average value, you can delete it and using in your way ,  thank you !
    Solved!
    Go to Solution.
    Attachments:
    EN-new.vi ‏274 KB

    Hi I got a similar issue for averaging. I used the mean.vi from the math function but the average is rolling when i run it. I am trying to calculate the average for the data i read to the RT FIFO (which is around 40000 lines).I got the writing part working, however, when i am reading the data, I couldn't get it working. I thought i read the data as a 1-D array, and then pass it to the Mean.vi and then got the result. But seems like the mean is only showing the last data in the array.
    Can someone help me with this??
    Attachments:
    FPGA-vi.png ‏242 KB
    RT-vi.png ‏182 KB
    RT-2mod.vi ‏515 KB

  • How to calculate moving average price?

    hi,
    i need someone to explain to me how to calculate moving average price

    Hi,
    Follow the Link,
    Re: moving average price

  • HT6446 My Health Data is showing my total steps for Daily average....

    specs:
    Using Apple Health App, with the Withings Health Mate and My Fitness Pal as the only 2 sources.
    Using an iPhone 5s with  26.7 GB capacity 4.2 GB available
    Model Number NE299LL/A
    OS Version 8.1 (12B411)
    I Updated all my Apps. I have gone into the Health Apps "all Data, and cleared all" this reset my dashboard to 0 steps. then after closing and opening both apps. I am right back to where i started. my "Daily Average" is showing my total steps. (or possibly dividing by 1)

    Well, I have just completed a full restore of my iPhone. It was not smooth at first. The restore froze about 10% through and I ended up having to hard reset the phone and start over. The second restore went smoothly but unfortunately, this did not solve anything.  All 3 iPhone measuresble components (flights climbed, steps and walking + running distance) still show "No data". I always had the option to enter manual data points, but I never actually tried to as I have no way of determining these 3 things.
    I will call Apple support back, but their only option will be to replace the phone. I really don't want to do that, not only because I don't want to have to set up the device for a third time, but I dont want some white box device; I want my brand new, immaculate one. Besides, it's clearly a software issue and likely to happen again with a new device. I guess Apple won't look into this as a software issue until enough people call in about it. That said, please take a few minutes and call Apple about this if you're one of the people affected.
    I will report back after speaking with Apple, but as I said, I doubt they're going to have anything other than a device replacement as a solution.

  • Can anybody explain why my health app tracks my steps accuratly on a daily basis but the weekly and daily averages it provides make no sense to me ?

    Can anyone explain to me why my health app tracks my steps daily accurately but the weekly and daily AVERAGES it provides make no sense to me

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    Once you get a reply, if you click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Calculate the average with respect to time (moving average)

    hello,
    I am desinging a prototype to detect a kind of cardiac illnesses. I am obtaining beats per minute of heart. At the one of stages of project, I want to calculate the running or moving average of beats per minute at every last 10 seconds. For example, the measurement can continue for 10 minutes, but prototype must calculate the average of beats per minute for last 10 seconds. The time interval must be dynamic (as latest) and adjustable. Additionally, I can adjust the time interval, for example last 10 seconds or last 25 seconds. I will be completely grateful for your helps, thank you
    Attachments:
    heart beat final.vi ‏338 KB

    You might want to look at the Mean PtByPt VI.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Calculate NWC (Average for last 4 Month)

    Do someone know how to calculate NWC (Average for last 4 Month) using @AVG?FIX ("2002", Jan)     "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital", "2001"->Oct,"2001"->Nov, "2001"->Dec, "2002"->Jan);ENDFIXIn my case, we split the Year and Month Dim in our outline.Can this script work in under our situation???Thanks

    Try usingFIX ("2002", Jan) "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital"->"2001"->Oct,"Net Working Capital"->"2001"->Nov,"Net Working Capital"->"2001"->Dec,"Net Working Capital"->"2002"->Jan); ENDFIX

Maybe you are looking for

  • Looking for a notetaking app that syncs with PC

    I use playbook for mobility but PC for work.  I am looking for a (simple) note taking app that will allow me to sync with PC - preferably via dropbox. I used to use cintanotes on PC but that doesn't sync to PB.  Looked at Evernote but seems bloated a

  • ...and i keep getting an error saying one file (background: smoke and laser, or some other such ****

    previous reply was to try to install in Compatability Mode....this won't work unless the program is already loaded....now what??? so frustrated as I have two jobs on deadline and need to stamp my logo.... error message 1305 error reading from file c:

  • Security Question Password Re-Set

    Hi we are going through the process of enabling users to change there own password, this is to fall in line with a change in UME source to AD, so we don't have to e-mail hundreds of users with new passwords, we are collecting all the information now

  • Questions about DVD burner

    So I'm shopping for a DVD burner and I see this: "System Requirements Mac 256MB RAM Mac Intel and Power Mac G4 500 Mhz" My computer is 400 Mhz so I can't buy this ? Another burner says: "system requirement: Mac OS 10.3.9 / Linux-based system / Win 20

  • Selection variant for cost element GROUPS

    Community! Is there a way to create a selection variant for cost element groups? Through customizing I can only create them for cost elements but not for groups! Thanks, Bjoern