How do I multiply a cell depending on which check box

I have a number in cell C17 and need to multiply by 1 or 2 or 3 depending on whether there's a check in cell C11 (*1), C12 (*2) or C13 (*3)
Can any one tell me how to do this, please?
Also, is it possible to have only one box checked at any one time? So only one of the three can ever be true at any one time.
Many thanks for any help.
G.

Gil,
You can't prevent more than one checkbox from being selected at once, but you can detect that condition. To add that check to Wayne's expression, you could write:
=IF(COUNTIF(C11:C13, TRUE) <>1, "Check 1 only", C17*(IF(C11=TRUE, 1, 0)+IF(C12=TRUE, 2, 0)+IF(C13=TRUE, 3, 0)))
Regards,
Jerry

Similar Messages

  • How to set colors in cells depending the conditions  in alvtree

    Hi All,
    Could you please provide me idea or sample program how to set colors in cells depending the conditions  in alvtree.
    Thanks,
    Suresh

    When running vim in a terminal, it will use whatever colour scheme is defined by the terminal.  You should have a look at this thread:
    http://bbs.archlinux.org/viewtopic.php?id=51818
    Also, check the wiki article on Xdefaults.

  • I keep getting the message: "what should firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    I keep getting the message: "what should Firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    cor-el,
    Thanks for your prompt reply. However, the sources you gave do not seem to apply exactly to my situation. I have attached some screenshots that show what the dialogue box looks like for a pdf download, and what my settings in the Apps panel of Options are. You will note in the first screenshot that I have checked the box to handle this file type automatically; however, the next time I try to download a file of that type, the same dialogue box appears looking exactly like the one shown, so checking the "automatic" option appears to do nothing. The files to be downloaded from my Gmail messages are not generic or altered file types - they are shown as pdf, doc, docx, etc. So while your intent was good, your post did not help. Thanks anyway.

  • How to increase the size (Length and width)  of check box

    Hi All,
    I have to increase the size of ( width and length) of check box, I have revised to check box topic in dev guide but didnt find any clue, i have also tried to use CCStyle class but that is also not working, I would appreciate if some can help me out on this. Thanks in advance , let me know if any clarification required.
    Thanks
    Pratap

    Hi Pratap ,
    I honestly don't know how to increase the size
    But i am giving you an alternate solution : we can create two Images with check box type 1 ) with checked
    2 ) with unchecked . ( you can create image of any size ) and get them displayed on OAF screen dynamically using switcher case .
    Dynamically displaying image will give the illusion of check box being checked and unchecked .
    keep this image moved to following media directory
    eg : /oraapp/mfgtestcomn/java/oracle/apps/media .
    Implement the switcher case , add the fire action to this Image Column , create a transient attribute and attach to this
    column . Depending on the value returned by transient attribute display the image on the column .
    Let me know if its not clear .
    Keerthi

  • How to write the dynamic code for RadioGroupByKey and Check Boxes?

    Hi,
    Experts,
    I have created a WD ABAP application in that i have used RadioGroupByKey and CheckBox Ui elements but i want how to write the dynamic code to that i want to display male and female to RadioGroupByKey and 10  lables to check boxs.
    Please pass me some idea on it and send any documents on it .
    Thanks in advance ,
    Shabeer ahmed.

    Refer this for check box:
    Do check :
    bind_checked property is bind to a node with cardinality of 1:1
    CHECK_BOX_NODE <---node name
    -CHECK_BOX_VALUE <--attribute name of type wdy_boolean
    put this code under your WDDOMODIFYVIEW:
    DATA:
    lr_container TYPE REF TO cl_wd_uielement_container,
    lr_checkbox TYPE REF TO cl_wd_checkbox.
    get a pointer to the RootUIElementContainer
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_checkbox = cl_wd_checkbox=>new_checkbox(
    text = 'WD_Processor'
    bind_checked = 'CHECK_BOX_NODE.CHECK_BOX_VALUE'
    view = view ).
    cl_wd_matrix_data=>new_matrix_data( element = lr_checkbox ).
    lr_container->add_child( lr_checkbox ).
    Refer this for Radiobutton :
    dynamic radio button in web dynpro abao
    Edited by: Saurav Mago on Jul 17, 2009 10:43 PM

  • How can I Maximize a Windows and include a check box into my jtable

    Hi there,
    I have made a program to show a JTABLE it is working well, I'm talking about show information(DATA), my question is related with MAXIMIZE my jframe or window, how can I do that???
    other question is related with include or add a new column to my jtable, the goal here is achive include a check box column to select a recorde from my jtable..
    Some advise...
    here is part of my code
    public static void main(String args[]) throws SQLException {
    JFrame myFrame = new JFrame("Scan cut ");
    Container content = myFrame.getContentPane();
    content.setBackground(Color.white);
    content.setLayout(new FlowLayout());
    SendNotifyB = new JButton("Send Notify");
    content.add(SendNotifyB);
    //content.add(new JButton("Send Notify"));
    //content.add(new JButton("Add O-S-T"));
    SendNotifyB .addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JOptionPane.showInputDialog("Type Odds");
    JOptionPane.showInputDialog("Type Seconds");
    myFrame.getContentPane().add(new AS3());
    myFrame.setVisible(true);
    myFrame.pack();

    public class MyTableRenderer extends javax.swing.JCheckBox
      implements javax.swing.table.TableCellRendererand
    myTable.getColumnModel().getColumn(some value).setCellRenderer(new MyTableRenderer());I'll leave the maximizing and other code up to you as an exercise.
    Message was edited by:
    filestream

  • How to display result set boolean value as a check box

    Hi guys,
    I am getting the data which include boolean from the database, i need to display the boolean values as check box, see my code, its displaying the data into the table with the boolean values as true and false, how to make it in check boxes
    package swing2.org;
    import java.awt.GridBagLayout;
    import javax.swing.JPanel;
    import java.awt.Color;
    import javax.swing.BorderFactory;
    import javax.swing.border.BevelBorder;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Container;
    import java.awt.GridBagConstraints;
    import java.awt.ComponentOrientation;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    public class Panel2 extends JPanel {
         private static final long serialVersionUID = 1L;
         private JScrollPane jScrollPane = null;
         private JTable jTable = null;
          * This is the default constructor
         public Panel2() {
              super();
              initialize();
          * This method initializes this
          * @return void
         private void initialize() {
         //     Panel2.ResultSetFrame();
              GridBagConstraints gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.fill = GridBagConstraints.BOTH;
              gridBagConstraints.gridy = 0;
              gridBagConstraints.weightx = 1.0;
              gridBagConstraints.weighty = 1.0;
              gridBagConstraints.gridx = 0;
              this.setSize(340, 200);
              this.setLayout(new GridBagLayout());
              this.setBackground(new Color(171, 211, 224));
              this.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED), null));
              this.add(getJScrollPane(), gridBagConstraints);
          * This method initializes jScrollPane     
          * @return javax.swing.JScrollPane     
         private JScrollPane getJScrollPane() {
              if (jScrollPane == null) {
                   jScrollPane = new JScrollPane();
                   jScrollPane.setViewportView(getJTable());
              return jScrollPane;
          String[] columnNames = {"Task Description",
                 "Time ",
                 "Pop-up",
                 "Sound",
                 "Delete"};
          * This method initializes jTable     
          * @return javax.swing.JTable     
         private JTable getJTable() {
                      ResultSetFrame oo = new ResultSetFrame();
                      JTable table = new JTable(oo.model);
                      table.setBackground(new Color(195, 217, 230));
                      table.setComponentOrientation(ComponentOrientation.UNKNOWN);
                      table.setShowGrid(true);
                      table.setShowVerticalLines(true);
                      table.setRowHeight(17);
                      table.setShowHorizontalLines(true);
                      return table;
    abstract class ResultSetTableModel extends AbstractTableModel
         public ResultSetTableModel(ResultSet aResultSet)
              rs = aResultSet;
          try
               rsmd = rs.getMetaData();     
          catch(SQLException e)
               System.out.println("Error " + e);
       public String getColumnName(int c)
       {  try
          {  return rsmd.getColumnName(c + 1);
          catch(SQLException e)
          {  System.out.println("Error " + e);
             return "";
       public int getColumnCount()
       {  try
          {  return rsmd.getColumnCount();
          catch(SQLException e)
          {  System.out.println("Error " + e);
             return 0;
       protected ResultSet getResultSet()
       {  return rs;
       private ResultSet rs;
       private ResultSetMetaData rsmd;
    class CachingResultSetTableModel extends ResultSetTableModel
    {  public CachingResultSetTableModel(ResultSet aResultSet)
       {  super(aResultSet);
          try
          {  cache = new ArrayList();
             int cols = getColumnCount();
             ResultSet rs = getResultSet();
             /* place all data in an array list of Object[] arrays
                We don't use an Object[][] because we don't know
                how many rows are in the result set
             while (rs.next())
             {  Object[] row = new Object[cols];
                for (int j = 0; j < row.length; j++)
                   row[j] = rs.getObject(j + 1);
                cache.add(row);
          catch(SQLException e)
          {  System.out.println("Error " + e);
       public Object getValueAt(int r, int c)
       {  if (r < cache.size())
             return ((Object[])cache.get(r))[c];
          else
             return null;
       public int getRowCount()
       {  return cache.size();
       private ArrayList cache;
    class ResultSetFrame 
    {  public ResultSetFrame()
          /* find all tables in the database and add them to
             a combo box
          try
          {  Class.forName("com.mysql.jdbc.Driver");
             con = DriverManager.getConnection("jdbc:mysql://localhost:3306/task","root","nbuser");
                stmt = con.prepareStatement("SELECT * FROM tasky");
                   try
                    String query = "SELECT * FROM tasky";
                    rs = stmt.executeQuery(query);
                    model = new CachingResultSetTableModel(rs);
                    JTable table = new JTable(model);
                    scrollPane = new JScrollPane(table);
                catch(SQLException e)
                     System.out.println("Error " + e);
          catch(ClassNotFoundException e)
          {  System.out.println("Error " + e);
          catch(SQLException e)
          {  System.out.println("Error " + e);
       private JScrollPane scrollPane;
       public ResultSetTableModel model;
       private ResultSet rs;
       private Connection con;
       private Statement stmt;
    }

    add a
    public Class getColumnClass(int col) {
         return getValueAt(0, col).getClass();
    }in your ResultSetTableModel which extends AbstractTableModel.
    A simple example
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.SwingUtilities;
    import javax.swing.table.AbstractTableModel;
    public class SimpleDemo extends JFrame {
        public SimpleDemo() {
            createAndShowUI();
        private void createAndShowUI(){
            String[] columnName = {"CheckBox Column", "Data Column"};
            Object[][] data = {{new Boolean(true), "Data 1"},
            {new Boolean(false), "Data 2"}, {new Boolean(true), "Data 3"}};
            MyModel model = new MyModel();
            model.setData(columnName, data);
            JTable myTable = new JTable(model);
            JScrollPane scrollPane = new JScrollPane(myTable);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            getContentPane().add(scrollPane);
            pack();
            setLocationRelativeTo(null);
        class MyModel extends AbstractTableModel {
            String[] columnName;
            Object[][] data;
            public void setData(String[] colName, Object[][] theData) {
                this.columnName = colName;
                this.data = theData;
                fireTableStructureChanged();
            public String getColumnName(int column) {
                return columnName[column];
            public Object getValueAt(int rowIndex, int columnIndex) {
                return data[rowIndex][columnIndex];
            public int getRowCount() {
                return data.length;
            public int getColumnCount() {
                return columnName.length;
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
        public static void main(String[] args){
            Runnable run = new Runnable(){
                public void run(){
                    new SimpleDemo().setVisible(true);
            SwingUtilities.invokeLater(run);
    }

  • How to make 'always open in ... view' check box actually work?

    What I need is a "Make 'Always open in ... view' check box work" check box.
    Specifically:
    I double click on my hard drive icon to open its window. I press command 3 to make it display in column view. I press command J and check "Always open in column view" and check the further check box, "Browse in column view". Then later on having viewed various windows I double click on the hard drive icon and it opens in some other view than column view. So, how to make the check box do what it actually says it will do?
    Thanks.
    edit: In fact in Panther, and probably other older OS X's, all folders would generally remember (I think) how it was last viewed and use that again. How to make that happen? Thanks.

    Hi,
    For Question #1,
    refer this link.
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • How can I make a field unfillable when a check box or radio box is selected?

    I'm looking to create a rule that makes selected fields un-fillable when one check box is selected, and fillable when another is selected. Is this possible in Adobe Acrobat?

    In that case they are mutually exclusive, or at least should be...
    You can use something like this as the custom MouseUp script for the check-boxes:
    if (event.target.value=="Yes") {
         this.getField("Field1").readonly = true;
         this.getField("Field2").readonly = true;
         this.getField("Field3").readonly = true;
         this.resetForm(["Field1", "Field2", "Field3"]); // this line will clear those fields as well
    } else if (event.target.value=="No") {
         this.getField("Field1").readonly = false;
         this.getField("Field2").readonly = false;
         this.getField("Field3").readonly = false;

  • How can I format a field to have a Check Box in the center.

    I am a new adobe user and I am creating a form in Adobe LiveCycle Designer. Most of what I needed to do I was able to figure out, but I cannot find a way to place a Check Box in the center of a chosen field. Each time I use the Check Box from the library it automatically places the Box in the center-right of the field. Then when trying to format the paragraph, I get no options about where I'd like the box to reside within the field. Is there a simple way to get a Check Box into the center of a Field or will I have to pursue other options. If I do have to pursue other options are there any ways to limit a text to an X and have it either be On or Off?
    Thanks for your aid.

    This behaviors usually happens when you create the fields but  a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field  "company name" printed in each and every page of a multi-page form document.
    Go to the properties fields of each field and make sure  to assign unique form field  names.

  • How to make a textbox editable while clicking  a check box in JSF

    hi all,
    I have a text box and a check box in my JSF.
    My objective is to make the text box editable once i cick the check box.
    Already i have defined the text box property as "Control is Disabled".
    I tried to make the Control of the text box as enabled in my Checkbox listener method.
    but i am not getting the desired output.
    Could you please help me on this regard.

    Hi,
    In the checkbox1_processValueChange method I have the following:
    if(textField1.isReadonly()){
                textField1.setReadonly(false);
            }else
                textField1.setReadonly(true);This works for me.
    Hope this helps you
    Cheers
    Giri

  • How do I select a cell in a multicolum​n list box and use scroll horizontal on th

    From an event structure, how do I select a cell in a multicolumn list box and use scroll horizontal on the front panel at the same time.  I can select a cell from the multicolumn in an event structure, but I cannot move the scroll bar on the front panel when the program is running.
    Solved!
    Go to Solution.

    I'm assuming you're referring to the scrollbar in the multicolumn listbox. What is your code doing when you select a cell? Can you please post your code so we can see the behavior you're describing? It's possible that you're blocking the event structure, as in performing some long operation in the event that's handling the cell selection. In this case the event structure has to wait until the event completes before being able to respond to the next event. You can configure the event to not lock the front panel while waiting for the event to complete.

  • How to display another window by using Check box

    Hi Friends,
    I have one doubt in Webdynpro with java. How to display another window by using Check box?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in Second View. So in Second View I will taken Table that data will displayed in rows. each and every row first check box is available.
    Here Select Check Box of particular row then click Edit button. That row data will be displayed in one popup window.
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    Suppose I have to select check box in First Row Click on EDIT button That row data will be displayed in another popup window here customer will change details depending up requirement click on SAVE Button that update data will saved in ECC System.
    How to display another window by using Check box?
    Regards
    Vijay

    Hi Vijay
    Your question is not clear enough to give an answer. Do you have some difficulties with the code for opening a popup-window? There are many-many examples in the forum how to open/close a popup.
    Or you do not know how to bind the popup opening with clicking a check box? Just put the code in the onSelect event handler of the check box.
    BR, Siarhei
    Edited by: Siarhei Pisarenka on Mar 11, 2010 10:55 AM

  • How to get the "delete" check box back?

    Hi Guys,
    I just used the "Migrate to Interactive Report" feature. After doing so, the check box is gone that is used to indicate rows to delete. A copy of the region is marked as "disabled" and the check box is still there, but it's not in the newly created region. Without that check box, my page has no way to delete rows. How do I add the check box to the new Interactive Report region? I'd rather not re-create the page from scratch.
    Thanks,
    Kim
    P.S. I'm using Apex 4.1 and Oracle 11g xe - all running on Windows 7.

    How about something like this? Instead of a check box add a new column with a delete image, you can use something like delete.gif (#IMAGE_PREFIX#delete.gif). The downside is that will be deleting one at a time, but in my experience this may not be an issue.
    Add a hidden item to hold the ID of the row your want to delete. We'll call it P1_ID.
    The new column with the delete image will need to "branch" to a URL and use this code (ALL in one single line)
    apex.confirm("Are you sure you want to delete?", {
      request:"DELETE_ROW",
      set:{"P1_ID":#ID#}
      });Then add a page process that fires when the request is DELETE_ROW
    Would probably look something like this:
    delete from some_table where id = :P1_ID;
    A similar technique can be used for checkboxes, but it's a little more advanced as you need to loop through the selections.
    Oh and add the column to the IR you don't really need to select anything. Or better yet, you could re-use the ID column of the report if you have one as your delete column. The #ID# on the code above needs to be the name of your column. So if your column is EMPNO the above would be #EMPNO# instead of #ID#.
    Hope this helps.
    -Jorge

  • How to programmatically change the cell color of an ADF table ?

    Hi all,
    I have an ADF table with some fields on it. Depending on the value of a field named, say, "F1", I would like to change its background color.
    So far I can change the field color with this EL expression inside the InlineStyle table column property:
    font-size:medium; background-color:#{viewScope.myBean.setColor};
    where setColor is a bean function, in where I access the field "F1" via binding, parse its value, and return the right value - so far, so good.
    The bad thing is, the InlineStyle affects that field in all the rows of the table, while I would like to change only the field in the rows, which have that specific value in it.
    So for example having the rows:
    F1
    abc#1 ----> currently selected row
    cde#2
    efg#3
    I want to change the background color to all the F1 fields which have a "1" after the '#' and let the other "F1" row cells background color stay unchanged.
    But as you can imagine, the InlineStyle affect the "F1" background color in all the rows (assuming that the first row of the table is selected).
    So the question: how to access a single cell of a row in an ADF table, and programmatically change its background color ?
    So far I can iterate through the ADF table with:
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("aTableIterator");//access the iterator by its ID value in the PageDef file
    RowSetIterator rsi = dciter.getRowSetIterator();
    System.out.println("rsi getrowcount = " rsi.getRowCount());+
    Row row = null;
    +if (rsi.getRowCount() > 0) {+
    row = rsi.getCurrentRow();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    System.out.println("class : " row.getAttribute("F1").getClass().toString());+
    +}+
    +while (rsi.hasNext()) {+
    row = rsi.next();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    +}+
    Regards,
    Sergio.

    Hi,
    I mean a specific cell within a row.
    Here are two pictures that show an ADF table with two rows and some fields on it:
    https://skydrive.live.com/?cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents#cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents
    bild_A is what I have, bild_B is what I would like. Note that:
    in bild_A the first row contain a yellow background color for the field F4 and an orange background color for the field F5. This is correct, because F4 has an "1" at the end of its string value, and F5 has a "3" at the end. So far so good.
    But the second row (again, bild_A) has also the fields F4 with yellow background color, and the field F5 with orange background color, even if the value in both fields is 0.
    What is should be, is shown in bild_B.
    The problem is that the solution provided affects all the cells of the column, while I need to change the background color of a single cell, and leave the other unchanged (see bild_B).
    I hope that clarify a bit :)
    Sergio.

Maybe you are looking for

  • How do I find the music I uploaded from a cd

    Ever since I downloaded the update for itunes i can't find the music I uploaded from a cd...help

  • New Mac Mini, wiped the HD and cannot reinstall Lion

    Hi, I received my new mini that came with Lion, restored from a TimeMachine backup and realised i preferred to start off with a clean slate. I tried to reinstall Lion from scratch (from network recovery) and accidentally deleted even the recovery par

  • EP Authentication through WebService

    Hi all, I need to implement a login module in a .NET standalone application that gets the user profile in EP 6.0 SP2. Next the app will send some SOAP messages to SAP XI. I want to validate the user and password from a .NET login screen and validate

  • Pure Actionscript for Adobe Air 1.5.x - I want to know without mxml...

    Hello guys, I want to learn about advancad programming because i want to know for intelligent like you good workers... Question 1: How does my application create new config file and write config file? - Save currect language! like you life in US. I l

  • LiveCycle Designer 8.0 is the biggest piece of crap I have ever used.

    I have been digitizing some forms for a customer, and this is my first experience with this product. It has not been a good one. I have been using the 30-day trial, and really don't want to buy it now. Here is my list of problems: 1. When you copy an