When I add a row, I lose the formula!

I made a simple check register spreadsheet a year ago & when I run out of rows I add more rows by dragging the handle in the lower right of the spreadsheet DOWN. I can also click the handle with the number of the row in the lower left to add just one more row. Or I can select the lower right cell (account balance) & hit enter & it created one more row.
None of these methods preserve my formula! I could swear that dragging the lower right handle in the past has preserved the formula.
What am I doing wrong?
Thanks!

growler62000 wrote:
=IF(AND(ISBLANK(E2),ISBLANK(F2)),"",Beginning Balance :: B2-E2+F2)
A = ref #/ck #
B= Date
C= Description
E=Debit
F= Credit
G=Balance
I assume the above formula is in G2. What's the formula in G3?
If you've created it by filling down, it should be:
=IF(AND(ISBLANK(E3),ISBLANK(F3)),"",Beginning Balance :: B3-E3+F3)
But I suspect it's this:
=IF(AND(ISBLANK(E3),ISBLANK(F3)),"",G2-E3+F3)
...and the difference is what's preventing the formula from being automatically filled into new rows.
My solution DOES work perfectly although I probably explained it poorly.
Yes it does. Your solution was clearly described, and with one formula in column G that's different from the rest, it's also the most efficient one available.
BTW, I wish I could force column B to order the entries by date as sometimes I will 1st enter today's date & then next row I enter yesterday’s date, etc
What messes up sorts is the references to specific cells in the formulas. If you can replace those with references to the appropriate cells wherever the formula actually winds up, the problem is solved.
Two tools that numbers provides that help with this are
1. the ability to reference a cell in the same row using only its column reference
2. the OFFSET function.
Both are used in the example below. The table on the left is a snapshot after data was entered, and before the table was sorted. The one on the right shows the same table after sorting the selected rows.
You'll note that I added a second Header row to allow space for the beginning balance to be placed in a header row on this table. That's to make it possible to have the same formula in every non-header row of column G so that the formula will be automatically entered into new rows as they are added.
Your formula will still work in the first non-header row, should you choose not to make this modification (Just enter the formula below into the row below that and fill down to the bottom row), but I would caution you to not include this first body row in any sort in that case.
Here's the formula in G3 of the example (and filled down to every row below that):
=IF(AND(ISBLANK(E),ISBLANK(F)),"",OFFSET($A$1,ROW()-2,6)-OFFSET($A$1,ROW()-1,4)+ OFFSET($A$1,ROW()-1,5))
Note that the first references to E and F omit the row numbers, and the references to the previous balance, debit and credit cells are through an offset from cell A1.
You can find out more about OFFSET in the iWork Formulas and Functions User Guide.
Regards,
Barry

Similar Messages

  • Osx 10.7.4   safari 6.0  when I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  this just started a few days ago after an update.  Has anyone else noticed this?.

    osx 10.7.4   safari 6.0  When I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  This just started a few days ago after an update.  Has anyone else noticed this?.

    Just for those who are interested, this is what cleared the "bookmark menu"  trbl I had.
    Open System Preferences > iCloud
    Deselect the box next to Bookmarks, then reselect it.
    Quit and relaunch Safari. Try a bookmark again.

  • When I add a watermark and flatten the transparency, it duplicates the file within the file.

    When I add a watermark and flatten the transparency, it duplicates the file within the file.  (a 105 pg file becomes 210pgs)

    After doing so, use the Save As command to save the file under a new name.
    This should optimize it and reduce the file's size, sometimes dramatically.

  • When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder?

    When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder? The endless scrolling technique is far too tedious when trying to add a new bookmark, because the window is simply too tiny. Is there maybe a plug-in that will let me grab the corner of that window and re-size it? Thanks!

    I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
    If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
    Please continue reading about bookmarks and some related extensions at
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
    * http://dmcritchie.mvps.org/firefox/kws.htm
    If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension.

  • To add new row to record the stability sample.

    dear all
                    There is new requirement to add new row to record the stabilty sample in the inspection lot stock tabpage of  QA11 usage decision. As we have configured sample usage row to record the sample which we take for testing purpose 
    and we use to reserves row to record the control samples of the batches which we sell in the domestic and export market.
    I require the solution in this context.
    thanks
    with regards
    Harish Ramachandran

    Thanks for all your help. My problem was that I was using 2 lists to update the table. The problem solve!!!!
    int modelIndex = listWhenScrollStop.size () - 1 - aRow;
    if (modelIndex >= 0) {
    return listWhenScrollStop.get (listWhenScrollStop.size () - 1 - aRow);

  • When I add pictures into MUSE , do the pictures resize for web quality (And so the page loads fast enough) or do I have to do this using an external software like photoshop, etc. ? Thank You

    When I add pictures into MUSE , do the pictures resize for web quality (And so the page loads fast enough) or do I have to do this using an external software like photoshop, etc. ?
    Also is there any way I can change the contact form email for all of my contact forms at once.
    I have over 100 contact forms and i want to make them reach the same email anyway I can do that without going one by one?

    If you have placed the image in Muse using File > Place and then scaled the image down in Muse while editing, then Muse publishes/exports the scaled down/optimized image in final output. When using as a Fill, the output size depends on the Fitting option you setup in the Fill options.
    As for the contact form email, you would need to specify the email address for each form individually. There is no workflow to edit the same for multiple forms at a time.
    Cheers,
    Vikas

  • When I add a title in iMovie, the last title disappears

    Using iMovie 10.0.5 on a Retina 15" running 10.9.5, I have added a series of titles (lyrics) over a music video. Now, suddenly, when I add the next one, the previous one I added disappears. It does allow me to add the new one, which is the sixth or seventh one in the video, each with only a few words. Then, when I add another, the last one disappears again. I am ripping out the last of my hair.
    All I have to do is drag the transition over the tracks area and the new one is gone. If I move on past the tracks area, dragging the new transition over the border, as it were, the previous one reappears.
    Is there a maximum number of titles that can be added over a video?
    Thanks.

    It just displays with a black background in the viewer unless you change it from the default.

  • When I add a stroke, it moves the shape

    When I add a stroke to a shape in AI it shifts the position of the shape down and to the left little by little with each level of stroke thickness that I add. Very odd and knocking off my alignment of objects. Thoughts?

    sounds odder than normal, but possibly select your object and see if 'align to pixel grid' is on in the transform palette

  • When I add a while loop to the vi "niScope EX Multi-Device Configured Acquisition (TClk)" to acquire data for multiple times, it works but it runs very slowly.

    Because I want to acquire the similar data for multiple times and then take an average to increase SNR, I add a while loop to the vi "niScope EX Multi-Device Configured Acquisition (TClk)".  It works but it runs very slowly (about 1 sec for each iteration). I think I had put the while loop at a wrong position, which makes the vi run from the very beginning in each iteration. So I really want to know where should I put the while loop to improve the speed? I have attached all the vi and subvi.
    Thanks very much.
    Attachments:
    Multi-Device External Clocking (TClk).vi ‏1166 KB
    avgWfm.vi ‏15 KB

    Dear Zainykhas,
    Thank you for posting this to the discussion forums and for uploading some sample code.  I took a lok at the issue you have been having, and it is unclear to me as to why you have placed two for loops around the original while loop.  My understanding is that you want to use the original Sample.vi and want to execute this N times where N is the Max Freq divided by Interval so that you can scan for a range of frequencies.
    Why not just put Sample.vi around one for loop and use the increment counter scaled by the interval to count up towards Max Freq and insert the desired Frequency into the cluster using Bundle By Name?
    Kind Regards,
    Robert Ward
    Applications Engineer, NI
    Attachments:
    Modified - RW.vi ‏48 KB

  • DAX error "Formula is invalid" when updating underlying data, but not changing the formula?

    Hello,
    first of all: I use the 64-bit versions of Excel 2010 and PowerPivot on Windows Server 2008 R2.
    I use this formula to calculate the median of my data:
    MINX( FILTER( VALUES( TableName[ColumnName] ),
                  CALCULATE( COUNTROWS( TableName ),
                             TableName[ColumnName] <= EARLIER( TableName[ColumnName]
                  > COUNTROWS( TableName ) * 0.5 ),
          TableName[ColumnName] )
    The data comes from a view on an MS SQL Server and has about 3.5 million rows. With one dataset ("dataset 1"), everything is working out fine and VERY fast ;-). When I change the view on the SQL server to filter for different data ("dataset 2", the result
    set still containing about 3.5 million rows) and update the PowerPivot data and then the pivot table, the status bar reads "Executing OLAP query..." and excel.exe utilizes one CPU core at 100% for a long time and its memory usage increases significantly, but
    nothing happens. If I interrupt that process by pressing Esc, I get the following error (original German text included):
    ============================
    Fehlermeldung: (Error message:)
    ============================
    Ausnahme von HRESULT: 0x800A03EC (Exception from HRESULT: ...)
    Das Median-Feld konnte der PivotTable nicht hinzugefügt werden, weil die Formel ungültig ist. (Could not add the field "Median" to the PivotTable because the formula is invalid.)
    ============================
    Aufrufliste: (Stack trace:)
    ============================
    Server stack trace:
    Exception rethrown at [0]:
       bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       bei Microsoft.Office.Interop.Excel.PivotTable.AddDataField(Object Field, Object Caption, Object Function)
       bei Microsoft.AnalysisServices.Modeler.FieldList.ExcelInterOpUtil.AddToDataFields(ICalculatedMember calculatedMember, Int32 positionIndex, Boolean isSpecialColumnBasedNamedSetPresent)
       bei Microsoft.AnalysisServices.Modeler.FieldList.ExcelInterOpUtil.AddToDataFields(ICalculatedMember calculatedMember, Int32 positionIndex, Boolean isSpecialColumnBasedNamedSetPresent)
       bei Microsoft.AnalysisServices.Modeler.FieldList.GeminiPivot.SetFieldOrientation(FieldLocation location, IGeminiColumn column, Int32 positionIndex)
       bei Microsoft.AnalysisServices.Modeler.FieldList.GeminiPivot.SetFieldOrientation(FieldLocation location, IGeminiColumn column, Int32 positionIndex)
       bei Microsoft.AnalysisServices.Modeler.FieldList.GeminiPivot.AddField(IGeminiColumn column, Int32 index)
       bei Microsoft.AnalysisServices.Modeler.FieldList.FieldListControl.fieldsTreeView_AfterCheck(Object sender, TreeViewEventArgs e)
    ============================
    I have analyzed the two datasets for differences and found the following ones:
    Dataset 2 has also negative values in its ColumnName column, dataset 1 does not. Filtering dataset 2 (by changing the view on the SQL server) so that the column contains only positive values does not help.
    A displayed column contains text with square brackets in it in dataset 2. Changing the SQL view to replace them with an empty string (replace(column2, '[', '')) does not help.
    I do not know what else to try. Can anybody help me? The two datasets are very large, but if anyone can give a recommendation how to export them in a reasonable size, I can make them available.
    Best regards
    Michael

    Hello Javier,
    I use a new measure (button "New Measure" in the toolbar or option in the context menu of the table). Here are the data samples:
    Dataset 1:
    Probability    RThreshold    SThreshold    vector    value
    0    -1    -1    DHTTestApp: Total GET Success Ratio    0.98
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    0.98
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    Dataset 2:
    Probability    RThreshold    SThreshold    vector    value
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.011353711790393
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.20522161505768
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.12309191295875
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.26926457661881
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.1911946574326
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.066699727250186
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.32597014925373
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.11977454203852
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.24751410911045
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.076218041485769
    In both datasets, probability has a range from 0 to 1, both thresholds from -1 to 1. In dataset 1, value has a range from 0 to 1, in dataset 2, it's -1 to 1.
    Thanks for your help!

  • How to add a PERCENTAGE sign to the formula

    I was using %A in a fomula to calculate variance %age.
    Because %A is based on absolute value that eliminates the sign it wont work for us.
    I am planning to do direct calculation without %A to calculate pecent varaince but then I lose the % sign from the cell.
    I am sure you can help.
    I need to calculate %age and then also display % sign in the cell. For example the cell should show 20.00 % not just 20.00.
    If I get a prompt reply not only I will be thankful will also give full credit.

    Hi Ram,
    you can display the % sign in the query report
    In the formula select , instead of using percantage share , I think you can use either try with (%CT) or (%GT) and this will be available in percantage functions
    I have done for one my report and able to display % sign.
    kindly try with the above options if not able to achieve then let me know, I will provide the step by step doc.
    thanks

  • Export .pages with tables and formulas to .doc loses the formulas

    I'm taking a class which is spreadsheet heavy. I've been using Pages to do my homework because it allows me to create tables which contain formulas so that I don't need to also have a Numbers spreadsheet to do the calculations.
    When I export a file like this from Pages to .doc format, all of the formulas do not show up when I open the exported file in MS Word, OO.o, or NeoOffice.
    Is this a bug in Pages or a limitation in the .doc format? Any help much appreciated.

    The second part seems to be a little bit difficult. (pdf_part_2.PDF (4 pages)).
    app.pdfExportPreferences.pageRange = "1-8","9-12" p[i].name;
    This is very wrong but what is the right way?
    pageRange is a string. Strings start and end in double-quotes. Everything goes inside them. Your first example is confused because you have a lingering p[i].name that should not be there. So you want these two:
    app.pdfExportPreferences.pageRange = "1-8";
    app.pdfExportPreferences.pageRange = "1-8,9-12";

  • The content isn't flow down when I add new rows

    Hello folks,
    I've implemented a dynamic rows adding in my PDF form and it's working fine.
    Why the content that resides under the table does not go down after adding new rows to it, but the new rows are on it?
    What should I do in my form?
    Thank you,
    Yair

    Dear Rui, thank you for the quick answer.
    Look, no form in my PDF is defined as flowed content.
    Can you please guide me about how to set my subforms currectly in order to implement the flowing?
    Thank you,
    Yair

  • How do I know which add-ons have been validated as safe? When clicking "Add to Firefox" I get the scary warning window about only using add-ons from trusted

    The scary warning that appears when I click "Add to Firefox" for a certain add-on discourages me from actually installing it.
    "Install add-ons only from authors whom you trust. Malicious software can damage your computer or violate your privacy . . . (author not verified)"
    In particular, I'm interested in the Password Exporter add-on. I want to be especially cautious as this will access all my passwords stored in Firefox. How do I actually know if an add-on is safe or not?

    If you are talking about "Password Exporter 1.2.1", it's safe as I have been using that add-on for years and love it.

  • Add JTable Row Headers At The End Of The Rows(At Right)?

    hi all
    i got this example for adding JTable Row Headers,but it adds the headers at the left(beginning of the row)
    and i want to add the headers at the end of the row(at right),any ideas how to do that?
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.AbstractListModel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListCellRenderer;
    import javax.swing.ListModel;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.JTableHeader;
    * @version 1.0 11/09/98
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
      RowHeaderRenderer(JTable table) {
        JTableHeader header = table.getTableHeader();
        setOpaque(true);
        setBorder(UIManager.getBorder("TableHeader.cellBorder"));
        setHorizontalAlignment(CENTER);
        setForeground(header.getForeground());
        setBackground(header.getBackground());
        setFont(header.getFont());
      public Component getListCellRendererComponent(JList list, Object value,
          int index, boolean isSelected, boolean cellHasFocus) {
        setText((value == null) ? "" : value.toString());
        return this;
    class RowHeaderExample extends JFrame {
      public RowHeaderExample() {
        super("Row Header Example");
        setSize(370, 150);
        ListModel lm = new AbstractListModel() {
          String headers[] = { "Row1", "Row2", "Row3", "Row4"};
          public int getSize() {
            return headers.length;
          public Object getElementAt(int index) {
            return headers[index];
        DefaultTableModel dm = new DefaultTableModel(lm.getSize(), 4);
        JTable table = new JTable(dm);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setRowHeight(18);
        JList rowHeader = new JList(lm);
        rowHeader.setFixedCellWidth(50);
        rowHeader.setFixedCellHeight(18);
        rowHeader.setCellRenderer(new RowHeaderRenderer(table));
        JScrollPane scroll = new JScrollPane(table);
        scroll.setRowHeaderView(rowHeader);
        getContentPane().add(scroll, BorderLayout.CENTER);
      public static void main(String[] args) {
        RowHeaderExample frame = new RowHeaderExample();
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.setVisible(true);
    }

    fixed by:
    list.setBackground(table.getTableHeader().getBackground());here's the full code:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.ComponentOrientation;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.DefaultListModel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListCellRenderer;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.JTableHeader;
    * @version 1.0 11/09/98
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
      JTable table;
      RowHeaderRenderer(JTable table) {
        this.table = table;
        JTableHeader header = table.getTableHeader();
        setOpaque(true);
        setBorder(UIManager.getBorder("TableHeader.cellBorder"));
        setHorizontalAlignment(CENTER);
        setForeground(header.getForeground());
        setBackground(header.getBackground());
        setFont(header.getFont());
      public Component getListCellRendererComponent(JList list, Object value,
          int index, boolean isSelected, boolean cellHasFocus) {
        list.setBackground(table.getTableHeader().getBackground());
        setText((value == null) ? "" : value.toString());
        return this;
    class RowHeaderExample extends JFrame {
      public RowHeaderExample() {
        super("Row Header Example");
        setSize(370, 150);
        setLocationRelativeTo(null);
        DefaultListModel lstModel = new DefaultListModel();
        lstModel.addElement("Row 1");
        lstModel.addElement("Row 2");
        lstModel.addElement("Row 3");
        lstModel.addElement("Row 4");
        DefaultTableModel dm = new DefaultTableModel(lstModel.getSize(), 4);
        JTable table = new JTable(dm);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setRowHeight(18);
        JList rowHeader = new JList(lstModel);
        rowHeader.setFixedCellWidth(50);
        rowHeader.setFixedCellHeight(18);
        rowHeader.setCellRenderer(new RowHeaderRenderer(table));
        JScrollPane scroll = new JScrollPane(table);
        scroll.setRowHeaderView(rowHeader);
        table.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        scroll.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        getContentPane().add(scroll, BorderLayout.CENTER);
      public static void main(String[] args) {
        RowHeaderExample frame = new RowHeaderExample();
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.setVisible(true);
    }

Maybe you are looking for

  • Prefixes in 6.5 Don't work

    I am trying to put a prefix of "seg-" using a rule file in Essbase 6.5.5. It rejects all records. If I remove the prefix, the records load fine. Prefixes worked in version 6.1 and I'm using the same rule file I used in that version.Also, the "Drop Le

  • Nokia 5130XM: Problem with updated software versio...

    i have updated my nokia 5130c  xpress music with version v7.97. after updation i got that my music player's library updation speed get more faster then before but i have lost screen saver option and also lost power saver option. my music player also

  • How to see  genarated AS  files in Flex Builder ?.

    Hi , We will compile  mxml file and then compiler  genaretes  corrosoponding   action script file in    the flex builder. Some where I have  seen that we need to chage some settings for  the compiler and  see in the src  dir. Pleasem  let me  know th

  • HT4528 Why doesn't my phone ring when I call it?

    Can someone help me with this?

  • SQL Server linked servers screens SSMS

    Where in SSMS can you get to the "linked server" screen for configuration details for existing linked servers, as opposed to setting up a new linked server, I want to check the security tab via the software GUI as opposed to running SQL. I cant see w