Formula for calculating the average takings for a given day in the week?

I would like to calculate the average takings for each day of the week for a given financial year.

Rick,
I've looked at your document, made some additions and returned it to you. In your document you were not only using AVERAGE, but also MIN and MAX. Unfortunately, MIN and MAX don't have "IF" versions, so they can't be used to selectively operate on data matching criteria in a range.
What I did to accommodate the need for MIN and MAX was to add a column for each criteria, in this case the different days of the week.
In your document you also indicated the need for a Chart to graphically summarize the performance by day of the week. I rearranged your summary stats table to facilitate creating a chart from that table. I chose the mixed category chart with Bars for Min and Max and a Line for Average.
Following are Screen Shots for the modified Data table, the Stats table and the Chart:
The key expressions are:
For Monday receipts:
=IF(WEEKDAY($B)=2, $G, "")
For Monday Minimum:
=MIN(INDIRECT("Ledger::"&CHAR(70+ROW())))
You had pre-filled Column A with 3-letter abbreviations of the Days of the Week. I am not sure this is important, since you could have formatted the Date (Column B) to show the same information, but I didn't like seeing the abbreviations for days that didn't have data entered yet so I replaced the text with an expression...
=IF(LEN(B)>0, LEFT(DAYNAME(WEEKDAY(B)), 3), "")
I seems that you may have filled the table with several months worth of rows of Mon, Tue, etc. Now, if you wish, you can trim the blank rows to just a few and add more as you need them.
Let me know if you have any questions about maintaining the document.
Jerry

Similar Messages

  • How do you find the average bitrate for 1080p movies purchased in iTunes?

    Can anyone point me in the direction of how to find the average bitrate for 1080p movies purchased in iTunes?
    For instance, Sherlock Holmes: A Game of Shadows on Bluray has an average bitrate of 18.523 Mbps.
    Thanks in advance!

    Some titles look great from iTunes Store but over the years I have been very aware of distracting banding issues especially in dark/bright areas for example where you'd expect a smooth gery/black gradient but you get discrete bands of greys to black.
    Many people say they don't see it, but I'm very sensitive to it.
    I'm not convinced it's a pure bitrate problem, more to do with the encoding algorithm. Either way it's a clear disincentive to build a library of this content if you see it.
    AC

  • What is the average speed for the fans? Mine seem really slow.

    What is the average speed for the fans in a MacBook Pro? When my computer is fairly idle, like right now, the fans are at roughly 1000 rpm each. Is that normal? I have seen posts where the fans are 2500-5000 rpm, so mine seem a bit low. That may explain why my computer has been getting hotter more quickly lately - this started happening after Apple replaced my logic board a few days ago.

    I installed smcFanControl2 and according to that program, Apple's defaults are 2,000RPMs and the program will not let you set it any lower than that because of the increased risk of damage.
    My fans are always at 2,000RPMs during normal usage, and then once I fire up a DVD or Photoshop it usually goes up to the 3,000s or so.

  • How do you set repeat events for a given day of the week

    How do you set a repeat event in calender for a given day of the month.  Expample 3rd Wednesday each month?

    Have you read the app store guidelines yet?
    App Store Review Guidelines:
    http://developer.apple.com/appstore/resources/approval/guidelines.html
    Don't go on what you've seen in the store - for every example you spot, there are hundreds that didn't make it in.
    As well, Apple is tightening up on reviews, etc.
    Loads of discussion on this in the iOS Dev Forums, BTW

  • Today (6/1) the "My Usage" shows .7GB used (about 1/4 of my 3GB shaded in the bar-graph), and the solid-green in the bar graph representing only 1 day in the billing cycle.

    Today (6/1) the "My Usage" shows .7GB used (about 1/4 of my 3GB shaded in the bar-graph), and the solid-green in the bar graph representing only 1 day in the billing cycle. I'm trying to make sense of it.  My may statement shows 1.7GB - I think that's the period just ended.... and I can't imagine I've used 1/4 of my data already today before noon?  I'm guessing the 'My Usage" screens are not quite coordinated with the billing cycle - anyone else have ideas?

    ... guess the reply via email method doesn't quite work - I'll re-post here via website
    jejm1975
    Thanks for your message, but I don't believe it applies to the situation I described.
    What is described in my post is information from the Verizon website - My Verizon / View Usage. 
    It is not from my phone (which is not a Galaxy,btw)

  • HT201441 I purchased 2 large bags of cell phones at a surplus/lost and found auction. The owner of this phone lost it, and didn't pick it up at the lost and found within 90 days and the phone was put up at auction. By law I am the new legal owner of the p

    I purchased 2 large bags of cell phones at a surplus/lost and found auction. The owner of this phone lost it, and didn't pick it up at the lost and found within 90 days and the phone was put up at auction. By law I am the new legal owner of the phone. The person who lost it locked their phone but didn't bother going to look for it. Not my problem. I went to the Apple store with my auction receipt and they said they still can't erase the old owner's account from the phone, and I need their receipt and their permission. There has to be some way around that. I legally purchased it after they lost it and neglected to pick it up within the time frame the law gave them to pick it up. Basically the Apple Store employee told me I was **** out of luck and the phone is basically garbage.

    You were correctly informed. You are the new, legal owner of a beautiful paper weight. There is no way around it. This is a security protection to prevent people who steal them from getting value from the stolen item.

  • What do you think is the problem of my macbook, few days ago, the fan is not working its 000rpm, early this morning, it is working already. what suppose is the problem?

    what do you think is the problem of my macbook, few days ago, the fan is not working its 000rpm, early this morning, it is working already.

    What did the prompt look like? Did it look like the image here? http://support.apple.com/kb/TS3742

  • Formula For Calculating An Average

    I have the below formula in a group footer (Group Footer #1) that is suppose to calculate the average between the accumlated number of days (i.e. {@Days Taken}) divided by the number of records (i.e. Count (). The value for the number of days is correct and the value for the record count is correct. For some reason the value for the average is not correct.  The average is not re-calculating when there is a new group.  The average is repeated for each group.  Is there anything wrong with this formula ?
    Sum ({@Days Taken})/Count ()

    Lenell,
    You need to tell it to divide the sums per group.
    So;
    Sum ({@Days Taken},)/Count (,)
    Replace with the field that you are grouping on.

  • Query for calculating raw material requirements for the remaining quantities in sale order.

    Dear SAP Experts,
    Clients requirement :
                                         Client wish to know the quantities of raw materials needs to run the production order inorder to complete the remaining quantities in sale order.
    Need Clarification:
                                  I"m using the below query for this requirement. I wish to know whether this query suits for my clients requirement or not. If its so, I need to know how to group by T4.[Code] (Raw material Name)   and need to get the sum of    T4.[Quantity]  (BOM quantity)      and  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY under each raw material group
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode],T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity] as salesorderQty , T1.[OpenQty], T2.onhand, T4.[Code] as Raw material Name,T4.[Quantity] as BOMQTY,  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] INNER JOIN OITM T2 ON T1.[ItemCode] = T2.[ItemCode] INNER JOIN OITT T3 ON T2.[ItemCode] = T3.[Code] INNER JOIN ITT1 T4 ON T3.[Code] = T4.[Father] WHERE  T0.[DocStatus] ='o' 

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • What's the average time for a User Tip to get published?

    Hello fellow Discussions members.
    I have posted [a tip in the User Tips Contributions Forum concerning the interworking of Apple Mail and Gmail IMAP|http://discussions.apple.com/thread.jspa?threadID=1692982] on 3rd of September 2008 and in a follow-up post announced that it's ready for publication the same day. I never got any feedback, complaints or objections, so I assume the tip is ok. I followed the given directions on the procedure word-for-word.
    Now, if you enter the User Tips Contributions Forum you can read the following concerning the process of publication (step 4):
    *Approximately 5 days* after you announce that your tip is completed (if there is no objection from another user), a Host will lock the thread and either move your completed tip to the User Tips Library or edit the existing tip. (My emphasis)
    So, obviously, the 5 day period is by now long exceeded and I was just wondering if my post will ever get published... Don't get me wrong, it's ok if it takes more than a month for a tip to get published - as long as potential contributors get informed that way. *What I find irritating is the statement about the 5 day period as it's obviously misleading.* Either my tip is inappropriate (in which case I expect a notification) or it is all right and gets published during the stated period. Neither happened up to this day. So, what gives?
    I'd appreciate any feedback concerning this. Thanks in advance for your replies.
    floba

    a brody, thanks for your quick reply. Although you might get a different impression from my post, I am patient All I ask for is to honestly state the time a publication may take. I come to the conclusion that the talk about "approximately 5 days" is complete eyewash!
    floba

  • I came to noticed that my power [on/off] button "sunk" and barely useable anymore. i'm afraid that if the button is useless in few days in the future. it's an old iPhone 4 coz i still can't afford a new one, but can i send it for repair?

    when i woke up this morning, and i press the power button and i realized that it's almost useless. can i send it for repair? or just buy a new one?

    Hello antoniovivaldi,
    Sorry to hear about your iPhone Sleep/Wake button.  You can review iPhone repair pricing at the following link (you can update the country to your location once you access the link):
    Service Answer Center - iPhone
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Pricing conditions for the articles are getting triggered one day before the actual activation date to 3rd party systems through job WPMU.

    Hi SAP Guru´s,
    Currently we are sending the pricing, promotions & article master data delta load to 3rd party system from SAP ECC via SAP XI through IDOCS using daily scheduled batch jobs WPMU. IDOC segment - WP_PLU.
    Here the issue is the promotion & pricing data are sent to 3rd party system one day before the actual start date.
    Eg: Promotion 123456 which has start date as 15/05/2014 & ending on 30/05/2014 & was created & activated on 13/05/2014.
    This promotion 123456 is getting triggered from SAP ECC through batch job on 14/05/2014 morning & 3rd party system receives the data on 14/05/2014 & the promotion are getting activated at 3rd party system end on 14/05/2014 itself which actually gets active from 15/05/2014.
    Same in the case for Standard Pricing data which needs to be active from 31/05/2014 once the promotion 123456 ends on 30/05/2014.
    The standard pricing data gets triggered from SAP ECC on 30/05/2014 through batch job & reaching 3rd party system on 30/05/2014 & getting activate on 30/05/2014 itself.
    This creates more issues at the store end as well as affecting business.
    We checked at 3rd party system end & they replied that their system considers the updated time stamp & date to activate the prices & it does not considers the actual active from & active to date. They need the data to be sent from SAP ECC on the effective date of the pricing & promotions.
    Can any one help me how to change the pricing conditions beign triggered through batch job in SAP ECC based on the actual promotion & pricing conditons start date or is there any other process to trigger the data through the batch job on the actual promotion & pricing data activation date.
    Thanks in Advance.
    Thanks & Regards,
    P.P.Shankar

    Hello Shankar,
    Change the lead time in the POS Outbound Profile. You can't put less than 2 days there so data for today and tomorrow will be transferred which also means you need to adjust your batch timing accordingly.
    Sales and Distribution -> POS Interface -> Outbound -> Maintain Profile for POS Outbound.
    See if it helps. The best option would still be that the 3rd part system considers the activtion date.
    Kind Regards
    Kaizad

  • Calculating a percentage of change from one day to the other

    I'm working on a report that is grouped by date. What I'm trying to is calculate the difference between one day to the next. But when I try to do the formula it's thinks it's calculating against itself...
    Group by Date: 9/1 = $100
                           9/2 = $80
    Subtotal =              =0.20%

    Please give the formula details to check.  I think you are not multiplied with 100 in your formula.
    Regards,
    Sastry

  • How to Compute the average six months of customer orders excluding the first orders

    Hi all
    I am writing some basic sql to generate some measures from a postgres database table that are going to be inserted into a SQL SErver table.
    I have to two tasks where I am supposed to generate the average 6 months spend and average 1 year spend using the customer data but excluding the first time orders.
    I have some sample data below:
    CREATE TABLE orders
      persistent_key_str character varying,
      ord_id character varying(50),
      ord_submitted_date date,
      item_sku_id character varying(50),
      item_extended_actual_price_amt numeric(18,2)
    INSERT INTO orders VALUES ('01120736182','ORD6266073','2010-12-08','100856-01',39.90);
    INSERT INTO orders   VALUES('01120736182','ORD33997609','2011-11-23','100265-01',49.99);
     INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','200020-01',29.99);
     INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','100817-01',44.99);
     INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200251-01',79.99);
     INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200269-01',59.99);
     INSERT INTO orders VALUES('01011679971','ORD89332495','2012-12-05','200102-01',169.99);
    INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','100907-01',89.99);
     INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200840-01',129.99);
     INSERT INTO orders VALUES('01120736182','ORD125155068','2013-07-27','201443-01',199.99);
     INSERT INTO orders VALUES('01120736182','ORD167230815','2014-06-05','200141-01',59.99);
     INSERT INTO orders VALUES('01011679971','ORD174927624','2014-08-16','201395-01',89.99);
     INSERT into orders values('01000217334','ORD92524479','2012-12-20','200021-01',29.99);
    INSERT into orders values('01000217334','ORD95698491','2013-01-08','200021-01',19.99);
    INSERT into orders values('01000217334','ORD90683621','2012-12-12','200021-01',29.990);
    INSERT into orders values('01000217334','ORD92524479','2012-12-20','200560-01',29.99);
    INSERT into orders values('01000217334','ORD145035525','2013-12-09','200972-01',49.99);
    INSERT into orders values('01000217334','ORD145035525','2013-12-09','100436-01',39.99);
    INSERT into orders values('01000217334','ORD90683374','2012-12-12','200284-01',39.99);
    INSERT into orders values('01000217334','ORD139437285','2013-11-07','201794-01',134.99);
    INSERT into orders values('01000827006','W02238550001','2010-06-11','HL 101077',349.000);
    INSERT into orders values('01000827006','W01738200001','2009-12-10','EL 100310 BLK',119.96);
    INSERT into orders values('01000954259','P00444170001','2009-12-03','PC 100455 BRN',389.99);
    INSERT into orders values('01002319116','W02242430001','2010-06-12','TR 100966',35.99);
    INSERT into orders values('01002319116','W02242430002','2010-06-12','EL 100985',99.99);
    INSERT into orders values('01002319116','P00532470001','2010-05-04','HO 100482',49.99);
    Using the data, this is what I have done:
    SELECT q.ord_year, avg( item_extended_actual_price_amt )  
    FROM (
       SELECT EXTRACT(YEAR FROM ord_submitted_date) as ord_year,  persistent_key_str,
              min(ord_submitted_date) as first_order_date
       FROM ORDERS
       GROUP BY ord_year, persistent_key_str
    ) q
    JOIN ORDERS o
    ON q.persistent_key_str  = o.persistent_key_str and 
       q.ord_year = EXTRACT (year from o.ord_submitted_date) and 
    o.ord_submitted_date > q.first_order_date AND o.ord_submitted_date < q.first_order_date + INTERVAL ' 6 months'
    GROUP BY q.ord_year
    ORDER BY q.ord_year
    Can someone help me look into my query and see whether I am doing it the right way.
    Thanks,
    Ion

    This more looks like a mysql code. Please try posting the question in mysql forums
    http://forums.mysql.com/
    This is one way of doing this in T-SQL
    CREATE TABLE orders
    persistent_key_str varchar(100),
    ord_id varchar(50),
    ord_submitted_date date,
    item_sku_id varchar(50),
    item_extended_actual_price_amt numeric(18,2)
    INSERT INTO orders VALUES ('01120736182','ORD6266073','2010-12-08','100856-01',39.90);
    INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','100265-01',49.99);
    INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','200020-01',29.99);
    INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','100817-01',44.99);
    INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200251-01',79.99);
    INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200269-01',59.99);
    INSERT INTO orders VALUES('01011679971','ORD89332495','2012-12-05','200102-01',169.99);
    INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','100907-01',89.99);
    INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200840-01',129.99);
    INSERT INTO orders VALUES('01120736182','ORD125155068','2013-07-27','201443-01',199.99);
    INSERT INTO orders VALUES('01120736182','ORD167230815','2014-06-05','200141-01',59.99);
    INSERT INTO orders VALUES('01011679971','ORD174927624','2014-08-16','201395-01',89.99);
    INSERT into orders values('01000217334','ORD92524479','2012-12-20','200021-01',29.99);
    INSERT into orders values('01000217334','ORD95698491','2013-01-08','200021-01',19.99);
    INSERT into orders values('01000217334','ORD90683621','2012-12-12','200021-01',29.990);
    INSERT into orders values('01000217334','ORD92524479','2012-12-20','200560-01',29.99);
    INSERT into orders values('01000217334','ORD145035525','2013-12-09','200972-01',49.99);
    INSERT into orders values('01000217334','ORD145035525','2013-12-09','100436-01',39.99);
    INSERT into orders values('01000217334','ORD90683374','2012-12-12','200284-01',39.99);
    INSERT into orders values('01000217334','ORD139437285','2013-11-07','201794-01',134.99);
    INSERT into orders values('01000827006','W02238550001','2010-06-11','HL 101077',349.000);
    INSERT into orders values('01000827006','W01738200001','2009-12-10','EL 100310 BLK',119.96);
    INSERT into orders values('01000954259','P00444170001','2009-12-03','PC 100455 BRN',389.99);
    INSERT into orders values('01002319116','W02242430001','2010-06-12','TR 100966',35.99);
    INSERT into orders values('01002319116','W02242430002','2010-06-12','EL 100985',99.99);
    INSERT into orders values('01002319116','P00532470001','2010-05-04','HO 100482',49.99);
    /*SELECT q.ord_year, avg( item_extended_actual_price_amt )
    FROM (
    SELECT EXTRACT(YEAR FROM ord_submitted_date) as ord_year, persistent_key_str,
    min(ord_submitted_date) as first_order_date
    FROM ORDERS
    GROUP BY ord_year, persistent_key_str
    ) q
    JOIN ORDERS o
    ON q.persistent_key_str = o.persistent_key_str and
    q.ord_year = EXTRACT (year from o.ord_submitted_date) and
    o.ord_submitted_date > q.first_order_date AND o.ord_submitted_date < q.first_order_date + INTERVAL ' 6 months'
    GROUP BY q.ord_year
    ORDER BY q.ord_year
    with cte as
    (select *, row_number() OVER( partition by persistent_key_str order by ord_submitted_date) RN from orders )--where ord_submitted_date between dateadd(month,6,getdate()) and getdate())
    SELECT year(cte.ord_submitted_date),avg(cte.item_extended_actual_price_amt) FROM cte
    where rn<>1
    group by year(cte.ord_submitted_date)
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • Finding the Weekend dates if its starting day of the week

    Hello FOlks,
    I have this requirement where if the sysdate is monday i need to get the Data from Friday until Sunday i.e. sysdate -3 to sysdate -1
    Otherwise i need to get the previous day data. How can we acheieve that for below query based on created date??
    select c.client_code,
    e.created_date,
            c.client_name,
       from event_client_field ecf, event e, client c
      where e.event_id = ecf.event_id(+)
        and e.client_id = c.client_id
        and trunc(e.created_date)
       = trunc(sysdate - 1)Edited by: user11961230 on Feb 1, 2011 10:01 AM

    Hi,
    So, you want to do one thing if today is a Monday, and you want to do something else if today is not Monday.
    That sounds like a job for CASE:
    select c.client_code,
    e.created_date,
            c.client_name,
       from event_client_field ecf, event e, client c
      where e.event_id = ecf.event_id(+)
        and e.client_id = c.client_id
    --  Nothing above this line was changed; everything below was changed
        and e.created_date >= TRUNC (SYSDATE) - CASE  TO_CHAR ( SYSDATE
                                                               , 'DY'
                                         , 'NLS_LANGUAGE=ENGLISH'     -- If necessary
                                     WHEN  'MON' THEN  3
                                     WHEN  'SUN' THEN  2     -- If wanted
                                                ELSE  1
                                 END
        AND e.created_date < TRUNC (SYSDATE)
    ;Whenever you have a condition, try to use the raw column from your table as one of the operands instead of expressions based on the column. That is, try to say
    AND e,.created_date < ...   rather than
    AND TRUNC (e.created_date) < ...   That way, the optimizer can use an index on e.created_date, and it could be much faster.

Maybe you are looking for