Formula to deduct one cell from another cell - simple equation - cant find the answer, formula to deduct one cell from another cell - simple equation - cant find the answer

Could anyone tell me how to deduct one cell from another cell in the numbers application.
Thank you!

to subtract one cell from another you enter a formula in a cell by:
1) click the cell where you want the result to be
2) click the cell that contains on of the operands
3) type the minus sign ("-")
4) click the other cell with the other operand
e.g.  if cell A1 contains 5, cell B1, contains 2 and you want the difference of those two cells to be in cell C1....
you would click cell C1 and then type: "=A1-B1" then type the enter key OR
click cell C1 and then type "=", then click cell A1, then type "-", then click cell B1, then type the "enter" key

Similar Messages

  • How to move data from one cell/sheet to another

    Hi - Help! I have a spreadsheet with multiple columns & rows for ordering clothes. The first column is  text of each item & it's size. What I want to do is:
    IF D15 has a number in it, I want that number and the text from A15 to populate into another sheet.
    Then I want to re-create this function in all the cells, so that if ANY cell has a number in it, that number and the text in the A column of that row shows up in the new sheet, in the corresponding cell.
    here's a screen shot of my sheet:
    Any help would be great!!
    Kim

    Hi Kim,
    I got the same error message when building the formula—it's easy to get lost in all the parentheses!
    Here's a breakdown of the formula I used.
    =IF(OFFSET(Data :: $A$1,ROW()-1,COLUMN())>0,OFFSET(Data :: $A$1,ROW()-1,COLUMN())&" - "&OFFSET(Data :: $A$1,ROW()-1,0),"")
    The overall stucture is an IF statement:
    IF(test,"Yes","No")
    IF(there is a value greater than zero in this cell's 'partner' on the main table,
      (then) copy that value here and append the label in column A of the main table, separated by a space, a dash, and a second space,
        (otherwise) put an empty text string here)
    Test: OFFSET(Data :: $A$1,ROW()-1,COLUMN())>0
    The 'partner' cell on the main table is the one on the same row and one column to the right of the cell containing the formula. (eg. for Summary::B2, the 'partner cell to be tested is Data::C2, the first data cell for Person 2)
    OFFSET(base,r,c)>0 compares the value in the cell r rows below and c columns to the right of the base cell with the value zero.
    Data::$A$1: A1 is my usual choice for the base cell, as it usually simplifies the calculations for r and c.
    ROW()-1: ROW() returns the row number of the row in which it is located. In B2, it will return 2. '-1' reduces that value to 1, the row offset necessary to get from Data::A1 to Data::b2.
    COLUMN(): COLUMN() returns the column number of the column in which it is located. In B2 it will return 2.  No adjustment is necessary, as 2 is the column offset necessary to get from Data::A1 to Data::C2
    OFFSET returns the value in Data::C2 and compares it with 0 (zero). The value (1) is greater than 0, so the test returns TRUE, and the IF function acts on the "yes" section.
    Yes: OFFSET(Data :: $A$1,ROW()-1,COLUMN())&" - "&OFFSET(Data :: $A$1,ROW()-1,0)
    This section contains two OFFSET statements.
    The first is the same as the one in Test, and returns the value in the tested cell (1).
    The second is the same, except for the third argument (c) which is fixed at 0 (zero). This returns the value in the cell in column A (zero columns to the right of A1) in the same row as the tested cell.
    The two returned values are linked by this expression: &" - "&
    "&" is the concatenation operator, which joins the values left and right of it into a text string. Here, the value returned by the first OFFSET (1) is joined to the text (space-space) contained between the double quotes, and that is joined to the value returned by the second OFFSET function (Item 1)
    No: ""
    If there is no number entered in the Data cell being tested, IF acts on the "no" section of the formula, and inserts an empty string ( "" ) in the cell containing the formula. An empty string displays as 'blank', and is the closest one can get to an 'empty' cell using a formula.
    Regarding your questions:
    "I seem to not understand what I'm supposed to put in the () and " " 's. I copied and pasted it and got the error message "the formula contains an invalid referance". DO i put certain row/cell numbers in somewhere?"
    ROW() and COLUMN() should have no argument entered between the parentheses. Each returns the row or column number of the cell containing the formula.
    The double quotes at the end of the IF statement define a text string with no text. You can put any text between them, but that text will then appear in all cells whose 'partner' cell does not contain a number greater than zero.
    The 'invalid reference' error message usually means a formula is referencing a cell that is not on the table. My guess is that your Summary table includes a copy of column A from your Data table. That would place "Person 1" in column B on both tables, and would require an adjustment of 'COLUMN()' to 'COLUMN()-1' in the first two OFFSET functions.
    Another possibility is a mismatch between the Data table name in the formula and the actual name of the Data table.
    Beyond those possibilities, I'd need to see either the document or screen shots of both tables and a copy of the actual formula as you've entered it.
    Regards,
    Barry

  • How to copy different cells from one sheet to another (automatically)

    Dear community,
    My question is:
    I have a sheet A which contains in a row f.e.
    - date
    - account name
    - amount
    I want to find all rows in A with the account name xy and copy each of this rows to another sheet B.
    in A (automatically):
    1.12.2008 account2 $100,00
    2.12.2008 account9 $200,00
    5.12.2008 account2 $210,00
    7.12.2009 account3 $190,00
    I want to see in B all rows with f.e. account2:
    1.12.2008 account2 $100,00
    5.12.2008 account2 $210,00
    Sheet A is filled/changed manually by user, Sheet B shout "follow" automatically.
    How can I realize this?
    Thank you for ideas
    joves

    In Tableau 1
    column D uses the formula:
    =IF(B=Tableau 2 :: $A$1,ROW(),99999)
    In Tableau 2
    Cell A1 contains the keyword used to select rows
    In column A the formula is:
    =IF(SMALL(Tableau 1 :: D,ROW()-1)>ROWS(Tableau 1 :: C),"",OFFSET(Tableau 1 :: $A$1,SMALL(Tableau 1 :: D,ROW()-1)-1,0))
    In column B the formula is:
    =IF(SMALL(Tableau 1 :: D,ROW()-1)>ROWS(Tableau 1 :: C),"",OFFSET(Tableau 1 :: $A$1,SMALL(Tableau 1 :: D,ROW()-1)-1,2))
    In fact if you read carefully, it's quite the same than the one in column A.
    This is why I used it.
    But you may prefer this simpler one:
    =IF(A="","",OFFSET(Tableau 1 :: $A$1,SMALL(Tableau 1 :: D,ROW()-1)-1,2))
    Yvan KOENIG (from FRANCE jeudi 14 mai 2009 19:40:37)

  • Move info from one cell to another based on a third cell's content

    Okay I'm not sure that this is possible but I thought I would put it out there to see if someone can help me figure this out
    Lets start with the first sheet of data:
    From this sheet I would like to move multiple cell's content to cells on another sheet based on the selection of the "SOLD" column.
    This is the second sheet....
    Basically, lets say that some one would select "Y" for the sold column on sheet one. Once "Y" is selected the text from each respective cell in the row would move to the second sheet. So if row 1 "SOLD" = "Y" then "LAST NAME" would move to "CUSTOMER", "DATE" would move to "DATE", "NEW / USED" would move to "NEW / USED"
    To complicate it further, is there a way that each new set of data that would move over would automatically go to the next clear row? I will try to illustrate what I mean below:
    ...Also I should mention that there are three different sheets that would fill the final recap sheet....
    Sheet 1: "BOB"
    Sheet 2: "SUZIE"
    Sheet 3: "TOM"
    Recap Sheet:
    Know this is a stretch but thank you for any input.

    What I mean is, if the data can't be input in one table (generally an efficient approach) then have several people input it in their own tables (in a standardized format), then consolidate the data into one table (that parts very quick) and use the power of the Numbers interface to look at different views of your data. The sort and filter features are quick and powerful.  Otherwise, you'll have to manage formulas in both the individual input tables and in the data table and you'll need extra "index" columns.  That's doable, but I would guess unlikely to save time in the end.  Unless I've misunderstood your situation.
    SG

  • How do I use the formula = to enter one cell as a % of another cell

    I wish to enter into a seperate cell what one cell is as a % of another cell in numbers. How do I enter this % formula into the required cell.
    Peter

    Jalna,
    In "a separate cell" write: one-cell's-address / another-cells-address.
    Format separate-cell to %.
    Jerry
    Edit: I just noticed that your question is about iOS Numbers. So, the answer for iOS Numbers would probably be something like:
    Click in "a separate cell". Enter formula mode. Click on "one-cell", select  "/" operator, click on "another-cell". Exit formula mode. Format as %.
    Can you tell I'm just guessing?
    J.

  • How can I copy cell formatting from one range to another?

    How can I copy cell formatting from one range to another, including text fonts, colours, borders, etc., so that, for example, I can reuse a formatted reconciliation table again in different parts of a sheet?

    Hi George,
    Wayne found the Spinning Beachball of Death, and you will find it too.
    Numbers is not good at handling large datasets. Might I suggest that you group your data into smaller sets (each month, perhaps?) and save each group in a separate Numbers document. Numbers will not link between documents, but you could have a summary Table within each document. Then comes the "clunky" bit of copying all those summary tables into a master document where you do the final processing of the data.
    Regards,
    Ian.

  • How can I paste a part of a sheet from Numbers in Pages as text, without the formulas.The reason I need this (and was used to in Office) so that I have the freedom to delete something in one cell (in pages document) without causing changes.

    How can I paste a part of a sheet that I copied in Numers in a pages document without the formulas, simply as text. Used this a lot in Office. When I make some changes in the pages document. f.i. deleting a cell, I don't want to change other cells. Also when I copy a part of a sheet from Numbers and one of the cells that is part of the formula is not also copied, when I paste in Pages it shows as an error.
    Hope that You can me help with this.

    Leon,
    There are two solutions to the first question, narrowing to one solution when you have a broken link causing an error.
    Here's the "works always" solution.
    Copy (Command-C) the table or range in Numbers
    Click off the table on the blank canvas of the sheet.
    Edit > Paste Values
    Command-C
    Switch to Pages
    Command-V
    Regards,
    Jerry

  • Is it possible to import the total from one worksheet to appear in a cell in another worksheet?

    Is it possible to import the total from one worksheet into another separate worksheet?

    In Numbers terminology a File (of document) contains sheets.  Sheets contain tables, and graphic elements (circles, text, lines, charts, etc.).
    So...
    if you are asking if you can reference a cell of a table in another table in the same sheet: yes
    if you are asking if you can reference a cell of a table in another sheet: yes
    if you are asking if you can reference a cell of a table in another sheet of another document: no

  • Data from one cell to another

    Hi when I type in one cell can that data automatically appear in another?

    Hello Phij,
    Yours is a very basic spreadsheet question. It would be a good idea for you to download the Numbers User Guide PDF that's available from the Numbers Help Menu. There are sure to be many other similar questions that will also be answered by taking a look at the guide.
    You can cause the content of one cell to appear in another cell by entering a reference to the first cell in the second one. If the first cell is located at B2 (second column, second row), the equation to make the content of B2 appear in another cell is =B2, in the second cell.
    Regards,
    Jerry

  • Drag the component from one cell to another cell within JTable

    Hi All,
    I have one requirement to drag the component from JList to JTable cell. I am able to do it but once if i drag the component from list to table cell, table accepting the drop after this i am unable to move the same component from one cell to another cell within the table.
    Any advice.
    I have used the following logic for JTable and JList is drag enabled.
    DefaultTableModel tableModel=new DefaultTableModel(
                new Object [][] {
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null}
                new String [] {
                    "Title 1", "Title 2", "Title 3", "Title 4","Title 5","Title 6","Title 7"
            JTable table = new javax.swing.JTable(){
                public boolean isCellEditable(int row, int column)
                    return false;
            table.setModel(tableModel);
            table.setDragEnabled(true);
            table.setDropMode(DropMode.INSERT);
            table.setTransferHandler(new TransferHandler(){
                public boolean canImport(TransferHandler.TransferSupport info){
                    if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)){
                        return false;
                    return true;
                public boolean importData(TransferSupport support) {
                    if (!support.isDrop()) {
                        return false;
                    if (!canImport(support)) {
                        return false;
                    JTable table=(JTable)support.getComponent();
                    DefaultTableModel tableModel=(DefaultTableModel)table.getModel();
                    // fetch the drop location
                    JTable.DropLocation dl = (JTable.DropLocation)support.getDropLocation();
                    int row = dl.getRow();
                    int col=dl.getColumn();
                    // fetch the data and bail if this fails
                    String data;
                    try {
                        data = (String)support.getTransferable().getTransferData(DataFlavor.stringFlavor);
                    } catch (UnsupportedFlavorException e) {
                        return false;
                    } catch (IOException e) {
                        return false;
                    calendarTableModel.setValueAt(data, row, col);
                    return true;
            });Thanks & Regards,
    Maadhav.
    Edited by: maadhav on Jun 23, 2009 12:29 AM

    Hi All,
    I fixed this issue with some additional logic which allow me to drag and drop the string component from one cell to another cell within in the JTable.
    I am attaching the new logic here, if any one needs use it.
    DefaultTableModel tableModel=new DefaultTableModel(
                new Object [][] {
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null}
                new String [] {
                    "Title 1", "Title 2", "Title 3", "Title 4","Title 5","Title 6","Title 7"
            JTable table = new javax.swing.JTable(){
                public boolean isCellEditable(int row, int column)
                    return false;
            table.setModel(tableModel);
            table.setDragEnabled(true);
            table.setDropMode(DropMode.USE_SELECTION);
            table.setTransferHandler(new TransferHandler(){
              public int getSourceActions(JComponent c) {
                    return DnDConstants.ACTION_COPY_OR_MOVE;
                public Transferable createTransferable(JComponent comp)
                    JTable table=(JTable)comp;
                    int row=table.getSelectedRow();
                    int col=table.getSelectedColumn();
                    String value = (String)table.getModel().getValueAt(row,col);
                    StringSelection transferable = new StringSelection(value);
                    table.getModel().setValueAt(null,row,col);
                    return transferable;
                public boolean canImport(TransferHandler.TransferSupport info){
                    if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)){
                        return false;
                    return true;
                public boolean importData(TransferSupport support) {
                    if (!support.isDrop()) {
                        return false;
                    if (!canImport(support)) {
                        return false;
                    JTable table=(JTable)support.getComponent();
                    DefaultTableModel tableModel=(DefaultTableModel)table.getModel();
                   JTable.DropLocation dl = (JTable.DropLocation)support.getDropLocation();
                    int row = dl.getRow();
                    int col=dl.getColumn();
                    String data;
                    try {
                        data = (String)support.getTransferable().getTransferData(DataFlavor.stringFlavor);
                    } catch (UnsupportedFlavorException e) {
                        return false;
                    } catch (IOException e) {
                        return false;
                    tableModel.setValueAt(data, row, col);
                    return true;
            });Thanks & Regards,
    Maadhav..
    Edited by: maadhav on Jun 23, 2009 5:26 AM
    Edited by: maadhav on Jun 23, 2009 5:28 AM

  • Need formula to take text from one cell, add that to a serial number with leading zeros

    I'm trying to create a spreasdheet cell that simplifies creating videotape Numbers from a job name in cell and appends a serial number with leading zeros, and that would survive an export to EXCEL.
    The result would look like
     A Column
    Job Name
    B ColumnTape #
    Formula needed for B
    ClientName-TapeType-
    ClientName-TapeType-001
    =
    ClientName-TapeType-
    ClientName-TapeType-002
    =
    I've tried using a custom cell format that had the text in front of the (Integer) drag and drop, with three integers and leading zeros.
    That worked, but requires recreating the custom cell format for each client and tape type.
    So, I've used the formula =A2& in order to play around with different things, but haven't hit on something that adjusts for increased numbers and retains the leading zeros.
    I don't mind doing a starter for the first row and then adding +1 in the formulas for the rows below.
    I've done that using the custom cell formats for the first B cell and then using =Bx+1 in the following cells.  It works, but I'm hoping to find something simpler or that can be copied and pasted in multiple rows on one paste.
    Thanks in advance.
    Suggestions much appreciated!
    Ted

    Ted,
    This expression in B will give you the pattern I believe you are looking for:
    =A&RIGHT("00"&ROW()-1, 3)
    Here's a screen shot...
    Jerry

  • Is it possible to reference one cell from the value of another?

    Is it possible to reference one cell from the value of another e.g.
    value of b1 = value of c(value of a1)
    So if a1 = 3 then b1 = c3, if a1 = 5 then b1 = c5.

    Excellent!
    Thanks Wayne. Just saved me many hours and a headache.
    Works like a dream.
    Thank you for your succinct (and accurate) answer.
    Mark

  • Copy and Paste Formula from One Cell to Multiple (How?)

    I am aware of the "autofill" function by dragging the bottom-right corner of a cell containing a formula.
    However, I cannot possibly do this if I want to copy the formula and paste it into 10,000 cells.
    If I specify a range of cells to paste the copied formula - only the first cell gets it. I have seen this problem in previous iWork for a long time but am surprised Apple has not improved it (or made it obvious enough for me to get it at first sight).
    Thanks!

    Hello
    It's really boring to read several times the same comments: +When I use Autofill on formulae to copy them into empty rows I end up with little red triangles saying it isn't a valid formula. In Excel and Lotus 123 I can just use Ctrl-C and Ctrl-V to copy and paste into as many cells as I want, why not Numbers?+
    Here we are not Apple employees so you are loosing your time and also the time of all of us reading your posts.
    Of course we may let them unread. But as old helpers, we always assume that when someone post something, it's to ask a question to which one of us may give a answer.
    Your flames are perfectly useless.
    If you wish that Apple take care of your opinion, go to "Provide Numbers Feedback" in the "Numbers" menu and describe your wishes.
    Happily, one poster make me laugh when he wrote that "this anomaly is a long time one in iWork".
    I really don't understand how an application which is in version 1.0 or 1.0.1 may contain a "long time" anomaly !!!!
    And the only responce I may give to all of you is: *if you can't live with this feature, stay with E…l.*
    *We will not miss you !!*
    Yvan KOENIG (from FRANCE samedi 20 octobre 2007 19:47:45)

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • Formula to trim off data from another cell after

    Wonder if anyone can help.  Ive got some address columns im editing in Numbers. Unfortunately,( common problem I know!), not all the date in the cells are uniform.  For example: E2 may have  '123 Alphabet Street', whereas E3 might have '123 Alphabet Street, London'.  Im trying to write a quick formula where I can trim off any data after the ',' into another column called Town.
    Im going to continue to scroll through this forum to see if this has been dealt with before, and look on Iwork Help. But in the meantime.. if anyone could give me a pointer that would be ace.
    Thanks

    You'll need two columns, one for each part of the split.
    Original data in column B, Street address in column C, City in column D
    C:   =IFERROR(LEFT(B,FIND(", ",B)-1),B)
    D:   =IFERROR(RIGHT(B,LEN(B)-FIND(", ",B)-1),"")
    Regards,
    Barry

Maybe you are looking for

  • 4:3 Anamorphic into iMovie 08 16:9 without cropping?

    Help! I'm importing 16:9 video from a Panasonic Hard Disk Recorder into iMovie 08 via the S-Video input on a Canopus ADVC300. The picture arrives in 4:3 Anamorphic ratio (according to Canopus) but when I use iMovie to convert this back to 16:9 it cro

  • Java socket streams messing up

    iv wrote a games server and it uses java socket streams to send the messages back and forth between the game clients and the game server it self this all works great but when running and over about 5min its send over 1000 packets BUT it will crash iv

  • Combining all classical albums into one folder

    can i combine my 11 classical albums into one folder or category to remove clutter in my music library?

  • Will the 3300 I Trigue 2.1 3300 Work with An mp3 Player

    I am ordering the 3300 ITrigue and I don'tk now if I can set it up with an mp3 player or not. I know in back of it the subwofer only has an output not and input....if there is a way could someone let me know thatnks Denny

  • Account assignment of billing document

    Hi,   I want to know,  when we create the billing document ref. to sales order which account is updated   for a particular order type  ZOR  and company code M001,  i want to assign a differetn account which is to be updated  and for company code M001