How can I sum prices multiplied by a unity when it is checked?

Hi
In this shopping list example I've got a situation where the Total should return $ 3.00.
Does anyone knows a formula that will return the total cost of the price multiplied by the unity only if it is checked?
Thanks in advance.

Hi Alex,
Here's are two examples. The first calculates the amount for each item only if it is checked.
If "Unity" is equivalent to "Quantity", then the checkboxes are redundant. The second example dispenses with the checkboxes, and uses the Quantity column to trigger the calculation when an entry is made in that column.
Formulas:
Example 1
E2 and filled down: =IF(B,C*D,"")
E10 (Footer row): =SUM(E)
Example 2
D2 and filled down: =IF(LEN(B)<1,"",B*C)
D10 (Footer row): =SUM(D)
The bottom row, containing the total, must be defined as a Footer row to keep it separate from the column named as the column to SUM. Header rows and Footer rows are excluded from functions such as SUM, preventing the self reference error that would occur if this formula were placed in a non-header, non-footer row in the column being summed.
Constructed in Numbers '09.
Regards,
Barry

Similar Messages

  • How can I sum all the amount per line?

    HI,
    How can I sum all the amount per line?
    EXAMPLE:
    [code]
                                             TOTAL:
    1,000         2,000     5,200            $8,200
      400         1,200     6,000             7,600
    [/code]
    THANKS!!

    If you are sure of the number of columns that you are gonna get then you can add them to a variable and display.
    total = itab-col1 + itab-col2 + itab-col3.
    If you dunno how many columns will come , you have to use field symbols.
    Say the datatabse table has 16 columns which will contain your price and you have to calculate the sum of all those , then assign them to field symbols and calculate.
    Have a look at the following code.
    FORM GET_VALUES_FROM_COSS .
      FIELD-SYMBOLS: <FS1> TYPE ANY.
      DATA: V_COMPONENT1 TYPE I.
      V_COMPONENT1=31.  " your field of table from which amount field starts
    Cumulate the posting values of all the 16 period buckets as to get
    total production order cost. This is to handle the partial posting of
    production order values in different periods.
      DO 16 TIMES.
        ADD 1 TO: V_COMPONENT1.
        ASSIGN COMPONENT V_COMPONENT1 OF STRUCTURE COSS TO <FS1>.
        IF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR1.
          ADD <FS1> TO I_FINAL-PL_LABCOST.
        ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR1.
          ADD <FS1> TO I_FINAL-ACT_LABCOST.
        ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR2.
          ADD <FS1> TO I_FINAL-PL_MATCOST.
        ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR2.
          ADD <FS1> TO I_FINAL-ACT_MATCOST.
        ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR3.
          ADD <FS1> TO I_FINAL-PL_OPCOST.
        ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR3.
          ADD <FS1> TO I_FINAL-ACT_OPCOST.
        ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR4.
          ADD <FS1> TO I_FINAL-PL_FACCOST.
        ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR4.
          ADD <FS1> TO I_FINAL-ACT_FACCOST.
        ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR5.
          ADD <FS1> TO I_FINAL-PL_LABCOST.
        ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR5.
          ADD <FS1> TO I_FINAL-ACT_LABCOST.
        ELSEIF COSS-WRTTP EQ '05'.
          ADD <FS1> TO I_FINAL-OTHER_PL_COST.
        ELSEIF COSS-WRTTP EQ '04'.
          ADD <FS1> TO I_FINAL-OTHER_ACT_COST.
        ENDIF.
      ENDDO.
    ENDFORM.                    " GET_VALUES_FROM_COSS
    Let us know if u need more inputs

  • How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = "Living Room" on sheet 2

    How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = “Dinning Room” on sheet 2
    For Example:
    SHEET 1
    A
    B
    $50
    Dinning Room
    $800
    Dinning Room
    $300
    Kitchen
    $1,000
    Master Bedroom
    $100
    Dinning Room
    SHEET 2
    Display the total SUM amount of each Project based on Sheet 1
    Project Name
    Total Cost
    Dinning Room
    $950
    Kitchen
    $300

    Would be a good idea to open iWork Formulas and Functions User Guide and search for the description of the function named SUMIF
    The Guide is available for every user thru the Help menu.
    Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:32:42
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can I sum numbers in a pdf? And, sum a partial list of numbers?

    How can I sum a list (or partial list) of numbers in a pdf?

    Thanks for your answer.  I have Adobe Acrobat 7.0 Professional.  If you
    can help me further by listing the necessary steps that would be great.
    Thanks.
    Barry Baker

  • How can I sum up raws? the sum function seems to work for columns only and right now I have to create a separate formula for each raw

    How can I sum up raws? the Sum function seems to work only on columns. Right now I have to create a separate formula for each raw

    Hi dah,
    "Thanks, but can I do one formula for all present and future raws? as raws are being added, I have to do the sum function again and again"
    You do need a separate formula for each group of values to be summed.
    If the values are in columns, you need a copy of the formula for each column.
    If the values are in rows, you need a copy of the formula for for each row.
    If you set up your formulas as SGIII did in his example (shown below), where every non-header row has the same formula, Numbers will automtically add the formula to new rows as you add them.
    "Same formula" in this context means exactly the same as all the formulas above, with one exception: the row reference in each formula is incremented (by Numbers) to match the row containing the formula.
    Here the formula looks like this in the three rows shown.
    B2: =SUM(2)
    B3: =SUM(3)
    B4: =SUM(4)
    That pattern will continue as rows are added to the table.
    Also, because the row token (2) references all of the non-header cells in row 2, the formula will automatically include new columns as they are added to the table.
    Regards,
    Barry

  • How can I decide the size of HANA server when using DMO of SUM ?

    Hi expert,
    I want to execute DB migration from MS SQL to SAP HANA by using DMO of SUM.
    So I have a question.
    How can I decide the size of HANA server when using DMO of SUM ?
    Now I have MS SQL in windows server.
    But in order to use HANA , I have to prepare Linux server.
    I want to know How can I decide the size of this Linux server.
    Can I expect the function of data compression in HANA ?
    Thanks in advance .
    Kazuki.

    Kazuki,
    Please take attetion:
    Your linux box already created = Application server:
    Application Server
    Based on the measurements SAP doesn't expect any changes concerning CPU, memory and network requirements for the ABAP application server. This means that the existing hardware and network infrastructure can still be used. Please check the PAM (www.service.sap.com/pam) for further details.
    SAP HANA Appliance ( porvided by your hardware partner)
    Consider SAP Note recommendation for HANA Main Memory, HANA CPU and HANA Disk Space.
    Regards,
    Edinaldo Junior

  • How can i sum the columns by condition?

    ID    Type    QTY
    1      A         20
    2      A         20
    3      B         20
    I want to some QTY group by A but I also need the ID column to identify the order of  row.
    How can I sum QTY group by A and the result is sort by ID ?
    Thanks you 

    Whats your expected output?
    Is this the below?
    Create Table test(id int,[Type] char(1), QTY int)
    Insert into test Values(1,'A',20),
    (2,'A',20),
    (3,'B',20)
    SElect *,SUM(qty)Over(partition by Type) From test Order by id
    Drop table test

  • How can we settle price diff. in profit center valuation to COGS acc?

    Dear All,
    We have activated multiple valuations/transfer prices.
    We do perform cross company code material sale. We have assigned each profit center at company code level.
    We have set transfer price variant in t.code 8kez and have customized  accounts in Controlling-Profit Center Accounting-Transfer Prices-Settings for Internal Goods Movements -Define Account Determination for Internal Goods Movements.
    We had got posting logic described in http://help.sap.com/erp2005_ehp_05/helpdata/en/eb/13811243c411d1896f0000e8322d00/frameset.htm
    Now after actual costing run price differences in profit center valuation were not transferred to next level as we expected.
    They have stayed as not distributed at sender  (company code) profit center level.
    How can we distribute price differences in profit center valuation to COGS account of sender profit center defined due to
    http://help.sap.com/erp2005_ehp_05/helpdata/en/eb/13811243c411d1896f0000e8322d00/frameset.htm?
    With best regards,
    Kamila.
    Edited by: Kamilana Zhakenova on Dec 25, 2011 10:56 AM

    Dear Gurus,
    There is an addition to post above.
    Transfer price was defined in SD module in Sales and Distribution-Basic Functions-Pricing-Pricing Control-Define Condition Types.
    Now it is taken during cross company code sale from scheduling agreement and invoice.
    (Please, do not take into account that we have customized transfer prices in 8kez)
    But the issue is price differences in profit center valuation settlement.
    They do settle to the next level  for receiver company code  like in group valuation.
    We need to settle them to COGS account at company code sender side.
    How we can do that?
    With best regards,
    Kamila.
    Edited by: Kamilana Zhakenova on Dec 26, 2011 11:37 AM

  • How can we setup "price before discount" in foreign currency?

    Hi all,
    Hopefully someone can help.How can we setup "price before discount" in foreign currency?   Can someone also please tell me the proper Variable Number (No.) for that?
    Look forward to your reply,

    IHi,
    Thanks for your help..i will give good feedback to you all.
    Just to let you know in pro forma invoices we have got Unit Price in GBP (example: 7.4000 GBP )  but Total line, Total Before Discount, Total (document) are in Euro.We have already changed that to 88->87 and 91->93 so those fields are correct apart Unit Price?
    Any advice please ?

  • How can I sum durations in Numbers 3.1?

    How can I sum durations in Numbers 3.1?

    "For some crazy reason, that worked!"
    The "crazy" reason was that 0h 0m can'r be mistaken for the time part of a Date and Time value. If you give Numbers values that are clearly durtations, no matter what format the cell is set to, then Numbers will interpret those value correctly.
    Regards,
    Barry

  • How can i disable imessage from automatically starting up when i turn on macbook air?

    how can i disable imessage from automatically starting up when i turn on macbook air? i dont know my imessages to pop up on my laptop when it turns on. But i dont want to disable imessage totally on my macbook.

    Welcome to the Apple Support Communities
    First of all, check that Messages is closed when you turn off your MacBook. This is so important because, by default, OS X will reopen all opened apps the next time you start your Mac.
    Apart from that, when you go to  > Shut Down, or  > Restart, in the window you see to restart or turn off your MacBook, unmark "Reopen windows when logging back in". This will avoid that your Mac opens all opened apps the next time you start the MacBook, so Messages won't start automatically at startup

  • How can I locate my iTunes library files. When I click on my itunes icon the message appears, "The file iTunes Library.itl." cannot be found because it was created by a newer version of iTunes."

    How can I locate my iTunes library files?  When I click on my iTunes icon rather than my iTunes files I receive, " The file iTunes Library.itl." cannot be read because it was created by a newer version of iTunes."  I have already tried to update my iTunes program.

    Had same problem and solved it without having to reinstore any music or movies:
    1. Delete old Library file
    2. Go to the 'Previous iTunes Libraries' folder and copy one of the earlier files - note, they have a date extension, e.g. 'iTunes Library 2011-11-01'.
    3. Paste this file in your iTuners folder and rename file by removing the date extension -  'iTunes Library'
    You should have all your music and paylists in tact, unless it was a really old previous file.

  • How can I set the page that will open, when I open a new tab, to be the same as the homepage?

    How can I set the page that will open, when I open a new tab, to be the same as the homepage?
    An app changed it to some other search engine, before installing the app, I the tab that would open was the homepage I set.
    In my case it is Google, and I want my new tabs to open on Google like they did before the installation.
    thank you,
    Asaf Privman.

    You can middle-click or Ctrl left-click the Home button on the Navigation toolbar to open the Home page in a new tab.
    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/

  • How can I install adobe flash on my firefox when it keeps opening automatically in Chrome?

    How can I install adobe flash on my firefox when it keeps opening automatically in Chrome?

    Flash Player Plug-in (All other browsers)
    That's the installer, regardless of what browser you download it with.

  • How can I remove computers from my itunes account when I no longer have the computers?

    How can I remove computers from my itunes account when I no longer have the computers?

    De-authorise all, then authorise the one you still have.

Maybe you are looking for

  • No UDA Found for Dimension XYZ

    We are loading metadata into Planning using outline load utility. The command we are using is as follows: C:\Hyperion\products\Planning\bin\OutlineLoad -f:%scripthome%\EncPassword.txt /A:NFR /U:%Essid% /M /C /-F /I:C:\Data\NFR_Customer_Dim.csv /D:Ent

  • Calling Reports from Forms, and creating Reports objects

    Hello I'm trying to create a Form which lists and launches all of our Reports. In our Client/Server set up we just have a Form which is based on a lookup table of Reports. When the user selects a report on the Form RUN_PRODUCT is used to call the rep

  • Unicode How-To

    Hi, to convert a Solaris 10 SPARC + Oracle 10.2 + ECC 6.0 box to Unicode... where can I find docu and/or how-to guide ? Regards. Ganimede Dignan.

  • Can't click desktop icons

    Sometimes after sleep all the desktop icons (disks, folders, documents, etc...) are unresponsive and the only way to fix it is to restart. This doesn't happen on my other machines. Anyone else experience this issue and know a possible fix?

  • SQL Report error

    Hi,  I have the following query: select                docnum as ' ' ,               cardcode as ' ' ,               cardname as ' ' ,               docdate as ' ' ,               docduedate as ' ' from                opor UNION ALL select