Formula that multiplies the value in each cell in a column with another cell

Hello

is it possible to do a simple way?

I need a formula that will multiply each cell in a column, one by one, with another cell. And then a way to fill the 32 raws and 12 columns.

That's how I explain what I need simplified.

G1 = ((chaque cellule de B1:B32, un par un) * E1) + (( B1:B32each cell, one by one) * E2) +...

and then that again and again for coulumn 12.

G1 to G12.

G2 would be = ((chaque cellule de C1:C32, un par un) * E1) + ((each cell c1:C32, one by one) * E2) +... and so on...

It would take weeks to do this manually.

It is, for me, very complicated and my brain can not understand.

very grateful for the help with this one.

Thank you

/Joakim

Hello

I can't imagine the structure of your table according to your descriptions, but formulas would be very simple if you calculate:

G1 = (B1*E1 + B2*E1 + ... + B32*E1) + (B1*E2 + B2*E2 + ... + B32*E2) + ...
   = (B1 + B2 + ... + B32) * (E1 + E2 + ...)

For example,.

Table 1 (excerpt)

A1 
A2 
A3 
A4 
   
B1  =RANDBETWEEN(0,5)
B2  =RANDBETWEEN(0,5)
B3  =RANDBETWEEN(0,5)
B4  =RANDBETWEEN(0,5)
   
C1  =RANDBETWEEN(0,5)
C2  =RANDBETWEEN(0,5)
C3  =RANDBETWEEN(0,5)
C4  =RANDBETWEEN(0,5)
   
D1 
D2 
D3 
D4 
   
E1  =RANDBETWEEN(0,5)
E2  =RANDBETWEEN(0,5)
E3  =RANDBETWEEN(0,5)
E4  =RANDBETWEEN(0,5)
   
F1 
F2 
F3 
F4 
   
G1  =SUM(B1:B32)*SUM(E)
G2  =SUM(C1:C32)*SUM(E)
G3 
G4 

* Table is designed with numbers v2.

Kind regards

H

Tags: iWork

Similar Questions

  • multiple-join: get the value of each participant

    In the multiple join, the studio and independent do not allow to define the inside interactive activity can be suspended. Is there another way to put it can be suspended?

    If the instance has 5 copies and each is sent to different participants, how to get the value of each user?

    Quantity of copies to wait to release the default value is 0. What it means?

    Forget not the only multiple makes copies. The main forum is a copy, it remains as it was before the Multiple. And the join does not know how to merge magically all the data of each copy in the main forum. It takes that code as well in the join. Otherwise, your main instance will remain intact.

    If I understand your example, you're not updating the values of the instance variables of your main instance, only copies.

    If you want to get a number that corresponds to the sum of all values sent by all participants in the Multiple, you must make the amount inside the join:

    This.var2 = this.var2 + copy.var1;
    (don't forget to initialize var2 in the primary instance)

    In this way, whenever a copy arrives at the join, var2 is added the value typed in the participant of this particular copy.

    I hope that helps!

  • I've created a form that uses the value field text to fill the text of another field.  Does not take into account changes

    I've created a form that uses the value field text to fill the text of another field.  However, if I need to change the text, the second field does not update this change.  Instead of reset the form each time, is the Javascript code to update the fields if they have been modified?

    For example I Text1 and Text2.

    When I type in Hello in Text1 I see Hello in Text2.

    Later, if I decide to change to Goodbye Text1, Text2 remains Hello.

    The shape of the hoe can recognize this change?

    Thank you

    Edit: I think I have misunderstood the situation.

    If you want to both fields have the same value, just to give them the same name.

  • formula to subtract the value of the fixed number field

    I'm new to javascript and have been unsuccessfully trying to complete what I know is a very simple task.  I have a form with 12 fields containing a sum in dollars.  "C1" field has a formula that counts the number of 12 fields contain a value.  This formula works correctly.  I want the "c2" field to display the number of fields without value.  I thought it would be simple subtract the value of "c1" of 12 to get the value of "c2", but I can't make it work.  The formula below is what I currently have in the custom calculation script window.  Any help with the drafting of a code that works would be greatly appreciated!

    var a = 12;

    var b = this.getField ("c1");

    var c = this.getField ("c2");

    c.Value = a.value - b.value;

    You must make sure that b.value is a number, not a string with a number.

    var a = 12;

    var b = this.getField("c1").value;

    this.getField("c2").value = a - b;

  • Do stuff to PL/SQl that returns the value and redirect to modal page by setting this value

    Hello

    a button click Page1 I would perform a PL/SQL procedure that returns a value in P1_ITEMVAL and then redirect to a page 2 (modal page) and the value of an item on this page with the value previously returned. To do the same thing with a normal page is quite easy:

    Button action is present, then process of PL/SQL that returns the value in the P1_ITEMVAL element and, finally, a branch at page 2 that sets P2_ITEMVAL with P1_ITEMVAL. I really have no idea how to do the same thing when the target is a modal page.

    I created a unit test on https://apex.oracle.com/pls/apex (application 1554 - redir_to_modal)

    Workspace: tests

    USER: supporter

    PWD: supporter1234

    Any help would be much appreciated.

    Kind regards

    Pavel

    Pavel

    If you prepare a URL using the value calculated in the PLSQL of DA part you can then use a subsequent stage of javascript to set the location of the window.

    This will jump to the top of the page of the modal dialog box

    : P1_URL: = apex_util.prepare_url)

    ' f ? p ='|| : APP_ID - Application id

    |': 2' - Page id

    ||': ' || : APP_SESSION - Session id

    ||':'                      -- Request

    ||':NO'                    -- Debug

    : ': ' - Clear Cache

    : ': ' - Settings

    ||' P2_ITEMVAL'

    : ': ' - Parameter values

    || (: P1_ITEMVAL);

    then in the action of javascript

    Window.Location.Replace ($v ('P1_URL'));

    Hope this is of some use

    Concerning

    Kelvin

  • SQL query to display the sum of the values of each June and December

    Hello having problems of construction of a query to the list SQL query to display the sum of the values of each June and December each year.

    My Table;

    TABLE name: MONTH_TERM

    Fields with values:

    TERM_KEYMONTH_ACTUALMONTH_DATE
    8250001/11/2015 0:00
    8245001/12/2015 0:00
    8240501/01/2016 0:00
    8240001/02/2016 0:00
    8245001/03/2016 0:00
    8242501/04/2016 0:00
    8243501/05/2016 0:00
    8241006/01/2016 0:00
    8240901/07/2016 0:00
    8241501/08/2016 0:00
    8242009/01/2016 0:00
    8242210/01/2016 0:00
    8243611/01/2016 0:00
    8255601/12/2016 0:00
    8256801/01/2017 0:00
    8262402/01/2017 0:00

    What I would like to see in a query result:

    TERM_KEYMONTH_ACTUALMONTH_DATETotal of 6 months
    8250001/11/2015 0:00
    8245001/12/2015 0:00950
    8240501/01/2016 0:00
    8240001/02/2016 0:00
    8245001/03/2016 0:00
    8242501/04/2016 0:00
    8243501/05/2016 0:00
    8241006/01/2016 0:002525
    8240901/07/2016 0:00
    8241501/08/2016 0:00
    8242009/01/2016 0:00
    8242210/01/2016 0:00
    8243611/01/2016 0:00
    8255601/12/2016 0:002658
    8256801/01/2017 0:00
    8262402/01/2017 0:00

    ---

    Here's my query:

    Select

    "TERM_KEY,"

    "MONTH_ACTUAL,"

    to_char(MONTH_DATE,'MM/YYYY') MONTH_DATE,

    DEAL to_char (MONTH_DATE, 'MM')

    WHEN '06' THEN (SELECT SUM (MONTH_ACTUAL)

    OF MONTH_TERM

    WHERE the to_char (MONTH_DATE, 'MM') between 1 and 6

    AND term_key = 82)

    WHEN '12' THEN (SELECT SUM (MONTH_ACTUAL)

    OF MONTH_TERM

    WHERE the to_char (MONTH_DATE, 'MM') between 7 and 12

    AND term_key = 82)

    ELSE null

    END as SIX_MO_CUMM,

    of MONTH_TERM

    where term_key = 82

    It's my results:

    TERM_KEYMONTH_ACTUALMONTH_DATETotal of 6 months
    8250001/11/15 0:00
    8245001/12/15 0:003608
    8240501/01/16 0:00
    8240001/02/16 0:00
    8245001/03/16 0:00
    8242501/04/16 0:00
    8243501/05/16 0:00
    8241001/06/16 0:003717
    8240901/07/16 0:00
    8241501/08/16 0:00
    8242001/09/16 0:00
    8242210/01/16 0:00
    8243601/11/16 0:00
    8255601/12/16 0:003608
    8256801/01/17 0:00
    8262401/02/17 0:00

    Any ideas on how to fix would be great

    Select term_key,

    month_actual,

    month_date,

    case mod (to_char (month_date, 'mm'), 6)

    When 0 then sum (month_actual)

    During)

    term_key partition

    order of month_date

    between the previous month '5' interval and the current line

    )

    end '6 MONTHS in TOTAL'

    from tbl

    order of term_key,

    month_date

    /

    TERM_KEY MONTH_ACTUAL MONTH_DAT 6 MONTHS TOTAL
    ---------- ------------ --------- --------------
    82 500 NOVEMBER 1ST, 15TH
    82 450 1 DECEMBER 15 950
    82 405 1 JANUARY 16
    82 400 1 FEBRUARY 16
    82 450 1ST MARCH 16
    82 425 1ST APRIL 16
    82 435 1 MAY 16
    82 410 2525 1 JUNE 16
    82 409 1 JULY 16
    82 415 1ST AUGUST 16
    82 420 16 - SEP - 01

    TERM_KEY MONTH_ACTUAL MONTH_DAT 6 MONTHS TOTAL
    ---------- ------------ --------- --------------
    82 422 1 OCTOBER 16
    82-436 NOVEMBER 1, 16
    82 556 2658 1 DECEMBER 16
    82 568 1 JANUARY 17
    82 624 1 FEBRUARY 17

    16 selected lines.

    SQL >

    SY.

  • get the length of each string in a column

    Hi all

    Is there a way to get the length of each string in a column:

    for example:

    If the table contains lines like below:

    Select 'test test1 test31' col1 of double

    Union of all the

    Select 'sectest1 sectest234' double col1

    The output should be as below:

    col1

    ------------

    4 5 6

    8 10

    That is to say get the count of each separated from the chain of space in a column. Is this possible using regexpr_substr?

    Thanks in advance.

    Roy.

    Try the below

    SELECT LISTAGG(val1,' ') IN ONE GROUP)

    New_val ORDER BY lvl)

    Of

    (SELECT LENGTH (REGEXP_SUBSTR (col1,'[^] +', 1, LEVEL)) val1,)

    RN,

    LEVEL lvl

    Of

    (SELECT col1,

    ROWNUM rn

    Of

    (SELECT 'test test1 test31' col1 OF double)

    UNION ALL

    SELECT 'sectest1 sectest234' double col1

    )

    )

    CONNECT BY LEVEL<= regexp_count(col1,'="">

    AND PRIOR rn = rn

    AND PRIOR DBMS_RANDOM. VALUE IS NOT NULL

    )

    GROUP BY rn;

    OUTPUT:-

    =======

    col1

    ----

    4 5 6

    8 10

    Thank you

    Ann

  • Set the value of a checkbox in a column of a tree control

    Hello

    I couldn't ' find the feature set/get the value of a checkbox in a column of a tree control.

    Thank you for your help

    Bertrand

    Hi Bertrand, this discussion should help you in this task.

  • Can I change the icon of the cursor when hover over one active link with another?

    Can I change the icon of the cursor when hover over one active link with another?

    Muse does not natively support, but all you need to do to make it work is on your page, add properties in the head content:

    Where "value" is the cursor you want for example for a cross-shaped cursor...

  • How to create a formula that highlights the cell that contains the same data that I type in another cell

    Hi, can someone help me make a formula which detects and highlights the value of the cell that contains the items of data that I entered in another cell? Thank you

    resolved to myself

  • Help with a script that detects the content in a cell and apply the cell style to line

    Hello


    I am trying to add an article to my table formatting script that is a cell with the word 'Budget' (but this can be written as ' Budget:' or ' Budget: (E) "- but without the speech marks) and apply the cell Style - SponsorCells - to all the cells of the whole line. I currently have on what it will, but it does not work:


    function checkWhichTable()
    {
    // ensure the user made a selection
    if (app.selection.length != 1)
    return null;
    var currentTable = app.selection[0];
    if (currentTable.hasOwnProperty("baseline"))
    {
    currentTable = app.selection[0].parent;
    }
    while (currentTable instanceof Cell || currentTable instanceof Row || currentTable instanceof Column)
    currentTable = currentTable.parent;
    if (!(currentTable instanceof Table))
    {
    // No table selected
    return null;
    }
    return currentTable;
    }
    app.doScript(checkUserSelection, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Process Table");
    
    
    function checkUserSelection ()
    {
    var a_table = checkWhichTable();
    if (a_table == null)
    {
    if (confirm("No table selected. Do you want to process *all* tables?") == false)
    return;
    allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for (aTable=0; aTable<allTables.length; aTable++)
    {
    processTable (allTables[aTable]);
    }
    } else
    {
    processTable (a_table);
    }
    }
    function processTable(table)
    {
    // do something here!
    
    
    //Set 1st Row Height
    table.rows[0].height = "30mm";
    
    
    //Find Text in Cell and apply Cell Style to Row 
    var  
      myCellText=['Budget', 'Budget:', 'Budget: (E)'];  
     var myRegEx = new RegExp("^("+myCellText.join("|")+")$");
      for (i=0; i<table.cells.length; i++)
      {
        if (table.cells[i].texts[0].contents.match(myRegEx))
          table.cell[i].appliedCellStyle = "SponsorCells";
      }
    
    
    //end - do something here!
    }  
    


    I can get the script to apply the cell style to "SponsorCells" for each cell that contain the word 'Budget' etc, but I need cell ever on this line to have the cell style applied. I tried to re-write line 56 which applies the style to a cell, but I can't seem to make it work. Any help would be great.


    Separate on this issue, I would like to have a line of code similar to the 46 line, which sets the 1st height of lines, but I would like to say "If a cell has 'A cell Style' and then applies the value height 10 mm". If someone could result as a help of bonuses, things would be great double.


    Thanks in advance!

    But that could be painfully slow. To speed things up, follow these steps:

    var cells = table.cells.everyItem().getElements();
    for (var i=0; i
    

    It is faster, because it creates an array of cells with a call to table.cells, which is several times faster than calling table.cells. And before assigning to line 12mm height is useful to check if it is already 12 mm. checking things in InDesign and do things only when it is necessary is much more effective than simply doing things even if they are not necessary.

  • Dynamic MessageChoice based on the value of each line

    Hi all

    I'm trying to implement a requirment, don't know how I can acchive this in the OPS.
    I appriciate any person that makes me in the right direction


    How to have a dynamic messageChoice in OAFTable.

    My scenario is like this,


    OAFTable [UI Table]
    ========================================
    | Name | xxx movies | MessageChoice values.
    ========================================
    | 12-A | xxx movies | Apple, Airport |
    | 15-B | xxx movies | Ball, box |
    | 20 S | xxx movies | Singapore |
    =======================================|


    VALUE_TABLE [table DB]
    =======================
    | Letter | Value |
    =======================
    | A     | Apple |
    | S     | Singapore |
    | A     | Airport |
    | B | Ball |
    | B | Box |
    =======================

    (There is a messageChoice column in my third OAFTable represented above column).
    the values for this messageChoice must be filtered on the 'Name' column in each snippet of it IE row letter and use this value to filter the values of VALUE_TABLE.

    Where clause for each message lines choice should change dynamically as

    Rank 1: select the value in VALUE_TABLE where letter = "A".
    Rank 2: select the value in VALUE_TABLE where letter = 'B '.
    Rank 3: select the value from VALUE_TABLE where letter = 'C '.

    Since the messageChoice EVENT is generated only after the exchange of value, I cann which allows to change the place where the clause of the VO.

    Is there a feature in OAF WHERE clause of that VO modifyes for each line?


    What will be the ideal approach to acchive. Surely someone would have solved this kind of scenario...

    Thanks for your suggestions in advance :)

    Srinath

    Hello

    Yes there is an available standard approach

    Consider a container, such as a table that has two columns. A column is a Department, while the
    another column shows all employees of this Ministry in a poplist. The view object used for the poplist
    (The view definition list pick) needs the number of Department (the "Deptno" of the container field) destined for bind
    variable: 1. This can be done with the following sample code in the processRequest of the controller method:
    Table OATableBean =...
    OAMessageChoiceBean = empPoplist
    (OAMessageChoiceBean) table.findChildRecursive ("EmpName");
    empPoplist.setListVOBoundContainerColumn (0, / * bind index * /)
    table, "Deptno");
    Copy the following lie the first index of (0th) bind to the view of poplist object used to the displayed value by the
    column named Deptno in the table.
    The setListVOBoundContainerColumn method can be called multiple times if the query used for the poplist
    several bind variables. Note that this approach actually simulates a BC4J link, except that it relies on
    the table columns of the user interface for bind rather than object attribute values values view directly.

    Thank you
    Gerard

  • Formula that checks the dropdown list, then add

    I have a table with a dropdown menu with two values: ' $' and 'Hr' (cell called "PTapez").  There is a cell called 'Project' that contains numeric data. The table is dynamic and may have more cells inserted via a button in the row.  I have a section total I want for a total of the SUM of 'Project' if the value 'PTapez' is ' $'.  I don't know what type of instruction will allow me to write this.

    For now, my solution was a hidden column with the cell simply indicates:

    If (PTapez == ' $') then
    Proposed
    endif

    Then, in the section, I summarized this hidden column because a value outside of ' $' returns '0' and will not affect my SUM.

    I'm looking for a formula I can write for it, within the total cell instead of having two cells.

    Thank you

    Mallard27

    Here's my opinion on the matter.

    Form1.Page1.Subform1.table.footer.sum::calculate - (JavaScript, client)

    var total = 0;

    for (i = 0; i< form1.page1.subform1.table._row.count;="" i++)="">
    If (table.resolveNode ("row [" + i + "].")) (Proposed") .rawValue) {}
    If (table.resolveNode ("row [" + i + "]..")) (RawValue PType') == ' $') {}
    Total = total + parseFloat (table.resolveNode ("row [" + i + "]..")) Proposed RawValue"));
    }
    }
    }

    this.rawValue = parseFloat (total);

    Steve

  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • I would like to summarize the values returned by a formula similar to the 'search', but for ranges or entire columns

    Thus,.

    I have three values in column K - 'A', 'B', 'C '. Column I is numeric values.

    I am trying to create a formula that selects all rows in the K column with a specfic value (in this case 'A' 'B' or 'C'), then grab the corresponding value (on the same line) of column I, then add up all the results for a total.

    IF rows in column K returns 'A', THEN take the VALUE of corresponding column I, and THEN SUM all the values returned.

    Or something like that.

    You can try something like this:

    The formula in B2, filled to the bottom, is:

    SUMIF (table 1::K, A2, table 1::L)

    SG

Maybe you are looking for