How to total a cost column

How do you add/total an expense column in Numbers?

Wstar,
A Numbers Table has Header and Footer cells and Body Cells. It's possible to address a row or column of body cells in its entirety without mentioning the row numbers. So, if your expenses are listed in column C you can write:
=SUM(C)
Body cells in column C will be summed and Header/Footer rows will be ignored. This is one of the great features of Numbers and will save you a lot of effort in programming and editing.
Each table can have up to 5 Header columns and up to 5 Header Rows and 5 Footer Rows.
Jerry

Similar Messages

  • How to update the COST column using another table's column

    Dear All,
    I have table:
    table parts: pno, pname, qoh, price, olevel
    table orders: ono, cno, eno, received, shipped
    table odetails: ono, pno, qty
    view:orders_view: ono, cno, eno, received, shipped,sum(qty*price)order_costview:odetails_view: ono, pno, qty, (qty*price)cost
    after I update the price in parts, I need to update COST and ORDER_COST too. The orders_view does not have pno, qty, and price, the odetails_view does not have price, how can I update the COST and ORDER_COST. Please help and Thanks in advance!!!
    I wrote the update the price in parts:
    create or replace procedure change_price(ppno in parts.pno%type, pprice in parts.price%type) as
    begin
        update parts
        set price = pprice
        where pno = ppno;
    end;
    show errorsthis procedure works fine.
    I wrote the trigger:
    create or replace trigger update_orders_v
    after update of price on parts
    for each row
    begin
        update orders_view
        set order_cost = sum(parts.(:new.price)*parts.qty)
        where parts.pno = :new.pno;
    end;
    show errorsIt gives me:Errors for TRIGGER UPDATE_ORDERS_V:
    LINE/COL ERROR
    3/5 PL/SQL SQL Statement ignored
    4/22 PL/SQL ORA-00934: group function is not allowed hereplease help!

    You could add the columns to the tables and then you would need a trigger to update those columns. However, you could just as easily select the price * qty to get the cost, without creating an additional column or trigger. I have no idea what you might want to do with a global temporary table. I think you need to explain what your purpose is, before any of us can suggest the best method. Since I have already demonstrated an update with a view, I will demonstrate an update with the cost column added to the odetails table and a trigger as you asked about. Notice that you will need triggers on both tables, the one that has qty and the one that has price.
    scott@ORA92> create table parts
      2    (pno    number(5) not null primary key,
      3       pname  varchar2(30),
      4       qoh    integer check(qoh >= 0),
      5       price  number(6,2) check(price >= 0.0),
      6       olevel integer)
      7  /
    Table created.
    scott@ORA92> create table odetails
      2    (ono    number(5),
      3       pno    number(5) references parts,
      4       qty    integer check(qty > 0),
      5       cost   number,
      6       primary key (ono,pno))
      7  /
    Table created.
    scott@ORA92> create or replace procedure change_price
      2    (ppno   in parts.pno%type,
      3       pprice in parts.price%type)
      4  as
      5  begin
      6    update parts
      7    set    price = pprice
      8    where  pno = ppno;
      9  end;
    10  /
    Procedure created.
    scott@ORA92> create or replace trigger update_cost1
      2    after insert or update of price on parts
      3    for each row
      4  begin
      5    update odetails
      6    set    cost = qty * :new.price
      7    where  pno = :new.pno;
      8  end update_cost1;
      9  /
    Trigger created.
    scott@ORA92> show errors
    No errors.
    scott@ORA92> create or replace trigger update_cost2
      2    before insert or update of qty on odetails
      3    for each row
      4  declare
      5    v_price parts.price%type;
      6  begin
      7    select price
      8    into   v_price
      9    from   parts
    10    where  pno = :new.pno;
    11    --
    12    :new.cost := :new.qty * v_price;
    13  end update_cost2;
    14  /
    Trigger created.
    scott@ORA92> show errors
    No errors.
    scott@ORA92> insert into parts values (1, 'name1', 1, 10, 1)
      2  /
    1 row created.
    scott@ORA92> insert into odetails values (1, 1, 22, null)
      2  /
    1 row created.
    scott@ORA92> -- starting data:
    scott@ORA92> select * from parts
      2  /
           PNO PNAME                                 QOH      PRICE     OLEVEL
             1 name1                                   1         10          1
    scott@ORA92> select * from odetails
      2  /
           ONO        PNO        QTY       COST
             1          1         22        220
    scott@ORA92> -- update:
    scott@ORA92> execute change_price (1, 11)
    PL/SQL procedure successfully completed.
    scott@ORA92> -- results:
    scott@ORA92> select * from parts
      2  /
           PNO PNAME                                 QOH      PRICE     OLEVEL
             1 name1                                   1         11          1
    scott@ORA92> select * from odetails
      2  /
           ONO        PNO        QTY       COST
             1          1         22        242
    scott@ORA92> -- select works without extra cost column or trigger:
    scott@ORA92> select o.ono, o.pno, o.qty, (o.qty * p.price) as cost
      2  from   odetails o, parts p
      3  where  o.pno = p.pno
      4  /
           ONO        PNO        QTY       COST
             1          1         22        242
    scott@ORA92>

  • Poor Response Time- Total on a column for n number of rows

    I have a table with column cost on my custom OAF page.
    When I query for configuration it returns me many rows. so I have set the default rows for table = 10 and then I neatly have next button to go to other rows.
    I have enabled totalling on cost column.
    Row for Total appears showing sum for the costs only on that page( for only 10 rows). I click for next from drop down , and I see total for the costs for the second page.
    Ex:
    table has 17 rows and
    page 1 :
    total row at the end saying 1000.00
    page 2 :
    total = 1500.00
    I want to display Total Cost by summing up the costs for say 300 items returned by the query on all the pages , in above case 2500.00.
    I thought of a way to do it ;
    I added a sumVO with query "select sum(...) from table" .
    Added a new region in my page , added a messageStyleText based on the sumVO, and pulled the total cost in.
    It shows me the right result, but my problem is performance.
    It is getting very slow. I am using the same query as for displaying the results in table, but summing on cost column.
    Can I avoid writing the sum query and do it programmatically in OAF ??
    Thanks in advance.

    Even if you use programmatic approach, what do you think program will do?
    Program has to fetch all the rows in the middle tier and sum it up using for loop. No way its going to solve your problem.
    First find out the reason for the slow performance using Trace option. and fix the query.
    If your not able to fix it, try materialized view for the summation query.
    To take sql trace for OAF page refer this link infor http://prasanna-adf.blogspot.com/2009/01/sql-trace.html
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • SSRS 2008 have 2 colums with amount needs to add Total cost and than total cost column divide by Total qty get avg

    SSRS 2008,  have this report
     Qty Column --------- Est cost column -----    Mark up Cost Column  -   Did add Total cost column
    4 pcs-                       $ 2000.00  --------------$  50.00 --------------- $ 2050.00
    Avg  Cost                                                                                      
    $2050/4=  512.50
    how to write this exp to get value $ 512.50 
    what I did , its not giving me correct result,
    =Sum(Fields!estCOSTAMOUNT.Value+Fields!COSTMARKUP.Value)/(Fields!QTY.Value)
    can some one please advise what I am doing wrong.
    thanks in advance

    I tried both exp, did not work
    may be I was not  clear in the question
    Qty Column --------- Est cost column -----    Mark up Cost Column  -   Did add Total cost column
    4 pcs-                       $ 2000.00  --------------$  50.00 --------------- $ 2050.00
    2 pcs ------------------$ 1500.00  --------------=$100.00 ----------------$1600.00
    Total   qty  6  pcs-----$ 3500.00------------------$150.00---------------$ 3650.00
    Avg  Cost                                                                                      
    $3650..00/6=  608.33
    my field name
    =Sum(Fields!COSTAMOUNT.Value)  +  want to add cost amount and Mark up and divide with qty total
    =Sum(Fields!COSTMARKUP.Value)
    =Sum(Fields!QTY.Value)
    please help how can I write it to get the result

  • How to Calculate Line items Total of Matrix Column

    hai experts,
                  Im facing a problem like
                   1. i have a matrix with a column Labour Costs in that im taking some cost.
                   2. in footer a have a Edit Text like Total Labour Cost
                   3 when i enter amount in matrix column it sholud disply that value in total labour cost and when we add new row ,labour cost it should add to 'total labour cost' in footer.Like Invoice Documents.

    Where do you want to implement this like sapscript / smartforms or adobe forms? please specify.

  • How to Remove totals on few columns from SEM BPS layout

    On SEM BPS layout it has 10 5 charatestics columns
    and 10 key figure columns.
    out of these key figures I want see totals on some
    coulmns and for few columns I do not want to see totals.
    for wxample it does not make sense of seeing total under
    the salary incrase percentage coulmn.
    Please suggest anyway we can remove total for some  
    columns on the layout

    Hey, thanks -- everything worked as you described. It never would have occurred to me that the "put back" button refers to the browser selection not the layout selection, for reasons I give below.
    I think Aperture exhibits some conceptual confusion here. First of all, a "light table" is created by the New > Light Table command, and you add images to the newly created light table just as you would add them to an album. But those images don't go on the light table layout until you drag them from the browser to the layout table. The "put back" button and "remove from light table" contextual menu command both mean remove from the layout. The phrasing of the contextual menu command make it sounds as if it will remove the clicked image from the light table's collection of images, like removing an image from an album -- it would have made more sense to name this command "put back". Furthermore, the "put back" button is above the layout display, not above the browser, which to me implies that it applies to selections in the layout display. To select an image in the browser, and click "put back selected" seems backwards -- if you just selected the image in the browser, your attention is focused on the browser, not the layout; from the browser's point of view, the button should read "bring back" not "put back".
    The documentation didn't really help when I was trying to figure this out. Sometimes the Aperture documentation refers to just a "light table", as on the overview on page 732. On pages 733 and 734, though, it refers to a "light table album". On page 735 of the Aperture manual there is a very brief explanation of how "to add images to the light table" and "to remove an image from the light table". Here, "light table" refers to the layout not the album. The explanation of the "Put Back Selected" button says to select an image then click the button, and the picture shown is of an image selected in the layout, not in the browser.

  • Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Hi Sara,
    Many thanks for your reply.  We just brought Adobe Acrobat XI Pro complete
    with Adobe Forms Central, My manager asked whether I could use the forms
    part to create a summary tracking sheet for all of our contracts.
    Having looked at it I could see how to create a table that in the first
    column deleted costs from a starting fund, and in the last keeps a running
    total of all monies spent.
    I agree, Excel does seem to be much better suited to the task.  I was try
    trying to comply with her request
    Regards,

  • Add cost column

    I am trying to use project to keep track of monthly assessments for a residential building project. Project only makes 10 cost columns available. Does anyone know if it is possible to increase the number of cost columns. I see that it is possible to create
    formulas by using number columns however it is slightly annoying as it does not show the currency.  
    I do wish that Microsoft would recognize the requirement to integrate accounts into project.  

    Pedro,
    I am not sure, from your description, of exactly what you are trying to achieve and how you are going about it.
    However, I have worked on project planning and tracking for many, many construction projects and never have a need to use all of the spare cost fields in order to deal with progress, progress claims and progress payments. I also don't have to resort to spreadsheets.
    Generally, it can all be done in MSP.
    I think that you can achieve what you need by taking a slightly different but more feasible approach.
    I think that perhaps you are saying you need as many cost columns as there are months in the project, so that you can have tasks listed in a column and rows as months, and assign a cost for each month to each task. This is similar to the approach often taken
    when a spreadsheet is used and many columns (256) are available. So, for example, if a project has a duration of 12 months, and a task which takes, say one week and occurs in the first month, might have a cost of $100 in the first column and zeroes in the
    other 11, Other tasks which have duration spread across several months might have some non zero amounts in some columns and zeroes in the rest. Then you could sum the rows for the sub-totals for each task, and then sum the column of sub-totals for the overall
    cost as well as sum each column to get totals for each month.
    But MSP is obviously not a spreadsheet, and it is a mistake to try to use it as one. You will just hit problem after problem if you try.
    You could, however, create recurring milestones representing the monthly costs of other tasks.
    It is difficult to give a definitive answer without seeing what you have or providing an example of what I am suggesting.
    Please let me know if I have interpreted your question correctly and provide some more information (or send the file)

  • How to wrap text for column level field

    Hi,
    In iSourcing module. I have requirement for RFQ response page. I have to wrapt text of table level column.
    Screen have total 6 columns. First column heading is Line. This column displays item description. Length of Item description in VO is 240 characters.
    Presently entire 240 characters are displayed in one line only. Because of this user has to scroll towards the right to see remaining columns.
    Requirement is to wrap this first column contents so that all columns will get visible without scrolling.
    How do I set this wrap functionality on this column through Controller?
    I tried by following ways, but no luck,
    1. In processRequest method
    OAFlowLayoutBean ls_line = (OAFlowLayoutBean)oatablebean.findChildRecursive("Line");
    if(ls_line != null)
    ls_line.setWrapEnabled(true);
    In personalize options of “Line” field there is no option for “No Wrap” property.
    How can I achieve this column wrap functionality?
    Kindly help,
    Thanks in advance.
    Mandar

    Hi Ajay,
    This Flow Layout contains following items,
    1. DocLineNumber(messageStyleText)
    2. ItemDescription(messageStyleText)
    Requirement is to wrap ItemDescription.
    So i tried following code, but still no luck,
    OATableBean oatablebean = (OATableBean)oawebbean.findChildRecursive("BidItemPricesTableVO");
    OAMessageStyledTextBean ls_item_description = (OAMessageStyledTextBean)oatablebean.findChildRecursive("ItemDescription");
    if(ls_item_description != null)
    ls_item_description.setWrapEnabled(true);
    XML file name: ponResponsePG.xml
    File Location: $APPL_TOP/pon/12.0.0/mds/response/creation/webui/ponResponsePG.xml
    I am not able to post ponResponsePG.xml file here(Your message exceeds the maximum length of 30000 characters.
    ), can i have your email id? i will email this file to.
    Thanks and Regards,
    Mandar

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • How to delete the Cost center line item data

    How to delete the cost center line item data of particular cost center and only one cost center is exisiting for that company code.
    Is there any way to delete the line items in that cost center.
    Can data archiving & deleting can help us..........
    does it have any effect over other cost center data....
    any input needed.........
    regards
    rajesh

    Hi,
    i found 2 reports for you:
    1) CO_TOTAL_WRI - Archiving CO Totals Records   
    2) RKCOITW1     - Archiving CO Line Items: Write Program        
    from 2) is a linlk to customize archiv-parameters
    -> start it with transaction se38 / sa38
    A.

  • Hiding the cost column in Billing document

    Hi,
    We have a requirement to hide the COST column in transaction VF01, VF02; VF03.Please let me know if any body has any clues.
    In the current system there are two companies.
    Company 1 Users should not see cost; Company 2 Users has to see the cost.
    I have two options:
    Option One:
    We can hide the cost column by changing the screen variant.
    Impact:
    This is hiding total system so that both the users can not see the cost .
    This is not accepting by IT team.
    Option two:
    We can define new transaction copy of VF01, VF02, and VF03. (Transaction Variant)
    That will be ZVF01, ZVF02, and ZVF03.For this new transaction we can create a screen variant to hide the cost Authorization to assess of VF01, VF02 and VF03 will be removed to Company 1 users.
    Impact:
    If we remove the authorization to VF03 to customer service people.
    Through document flow customer service user cannot see billing document. They need to enter ZVF03 to see billing document.
    This solution is not accepting by Business (Customer service).
    It will be great full if someone can through some light on this.
    Thanks in advance.
    SAV

    Please check follwoing user exits :
    J_3RSINV
    SDVFX001 User exit header line in delivery to accounting
    SDVFX002 User exit for A/R line in transfer to accounting
    SDVFX003 User exit cash clearing in transfer to accounting
    SDVFX004 User exit G/L line in transfer to accounting
    SDVFX005 User exit reserves in transfer to accounting
    SDVFX006 User exit tax line in transfer to accounting
    SDVFX007 User exit: Billing plan during transfer to Accounting
    SDVFX008 User exit: Processing of transfer structures SD-FI
    SDVFX009 Billing doc. processing KIDONO (payment reference numbe
    SDVFX010 User exit item table for the customer lines
    SDVFX011 Userexit for the komkcv- and kompcv-structures
    V05I0001 User exits for billing index
    V05N0001 User Exits for Printing Billing Docs. using POR Procedu
    V60A0001 Customer functions in the billing document
    V60P0001 Data provision for additional fields for display in lis
    V61A0001 Customer enhancement: Pricing
    and also check with RV60* in se38

  • Total Delivery Cost for partial Item delivery

    Hi Guru,
    I have a requirement wherein I have to apply the total delivery cost for partial Item delivery.
    For example: Even if there is partial GR, delievery cost must be paid in full.
    Say PO is for 100 PC and delivery cost is 100 EUR. Now at MIGO if the delivered quantity is 60, the freight vendor must still be paid 100 EUR.
    Is this possible by configuration or do we need to make any changes at code level? If yes, Please guide me on how to do that....

    Create a PO without tick GR-Bsd IV, suppose I have created PO with qty 20 and rate 1 INR and give freight 50 INR (Fixed Amount)..
    Then I have done partial GR for qty 5. My freight amount booked as 12.5 INR (for partial GR)
    Then I have gone for MIRO..
    Here select Goos/Service item + Planned delivery cost.
    Enter the PO, you can see two line items appear..
    One for goods and one for freight...
    Goods will come as qty 5 and amount 5 INR and Freight will come as qty 5 and amount 12.5 INR.
    Just change the freight qty and amount as 20 and 50 INR.
    Then post the MIRO, you can see your total freight will be booked to vendor..
    Now again do GR for qty 2, at that time your freight amount will booked as 5 INR.
    Then when you will go for MIRO, you can see only the GR item, Freight qty and amount will not come at the time MIRO..
    (Note : I have told the scenario as per my previous screen shot)

  • How to include Material Cost in the SD report

    Hi,
    I am working on Cube 0SD_C03 for the Sales and Distribution Report "Sales Contribution - Product Wise u2013 KPI" where I have to show the following information which are given below.
    1. Total Sales Qty.
    2. Total Sales Value
    3. Total Material Cost
    For third one I do not know how to include this in this SD report.
    so please tell me about this if anybody has idea about this?

    Hi Francisco,
    Note:
    your xml should only have
    <URL>http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:1183</URL>
    Show me your sample XML , i can help you.
    What is your expected output ? PDF or HTML ?
    here it is.
    option1:
    If the XML data includes an element that contains a hyperlink , then you can use that element to create dynamic hyperlinks at runtime.
    a. insert hyperlink from word menu
    b. In the Type the file or Web page name field of the Insert Hyperlink dialog box, enter the following syntax:
    c. {ELEMENT_NAME_WHICH_HAS_URL_LINK}
    where ELEMENT_NAME_WHICH_HAS_URL_LINK is the xml data element name
    option2:
    create a form field, you can add it
    <fo:basic-link external-destination="http://www.google..com">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link external-destination="{ELEMENT_NAME}">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link>
    <xsl:attribute name="external-destination"><xsl:value-of select="ELEMENT_URL"/>
    </xsl:attribute>
           <xsl:value-of select="LINK_NAME"/>
    </fo:basic-link>

  • How to see the cost of a batch

    Dear Experts
    How do I see  the cost of a produced batch of material, confirmed from a Process Order?

    When the order is displayed COR3, & then I go through this path: Goto >> Cost >> Analysis, I get a report in this format;
    Cost Elem  Total act.costs Target/actual var Currency
    421303             453,600               453,600                  NGN
    424301          3,600,000-           3,600,000-                NGN
                           3,146,400-           3,146,400-
    The info in the first row is for 261 movement type (goods issue), while the info on the second row is for the 101 (goods receipt)
    From this details kindly tell me what is the cost of production?
    Is 453,600 (which is the monetary value of the total input quantity) the cost of production? or
    Is 3,600,000- (which is the monetary value of the total output quantity) the cost of production? or
    Is 3,146,400- (which is the monetary value of the difference between total input qty and output quantity) the cost of production?
    After process Order confirmation and TECO, what will be the effect when I carry out Order settlement ko88?

Maybe you are looking for