Keeping formulas intact when deleting rows in Numbers '09

In a Numbers spreadsheet, how do I delete (or add) rows in the body of the spreadsheet, without affecting lower rows which contain a formula?

Depends what you mean by "without affecting lower rows which contain a formula."
Formulas with cell references will adjust those references to fit the new circumstances.
Example: D9 contains =C3
Row 2 is selected and Table > Add Row Above is used to insert a new row (now row 2) above. Row 2 becomes Row 3, Row 3 becomes Row 4 etc. and the formula in D9 (now D10) adjusts to remain pointed to the same cell (what was C3) in its new position (C4). The formula changes to =C4
Rows 6 and 7 are then selected and deleted, which makes no change to row 4 and the current position of the target cell (C4), but does change  the position of D10 to D8. The formula remains pointed at the same cell, still in the same position: =C4.
If Row 4 is then deleted (or if Row 3 was deleted in stead of Row 2 at the first step) a problem is created. The formula originally in D9 and most recently in D8 is now referencing a cell which is no longer part of the table, and will present an error triangle and the message "invalid reference".
Formulas with fixed cell references show the same results, indicating the "fix" is to the cell itself, not to the cell's address. Same table, same steps, but this time the formula in what starts out as D9 is =$C$3
D9 becomes D10, C3 becomes C4. The formula again changes to refer to the same cell: =$C$4
D10 becomes D8. C4 remains C4. The formula remains pointed to the same cell: =$C$4
Row 4 is deleted. C4 is removed from the table. D8 becomes D7 and returns the "invalid reference" error message.
But I suspect this is not what you are looking for. If that's the case, some clarification to the question would help.
Regards,
Barry
PS: Is there a Winnipeg that's not in Canada? Google maps doesn't appear to be aware of one.

Similar Messages

  • How do I delete rows in Numbers for iPad?

    I am new to numbers for iPad. How do I delete rows in Numbers for iPad? I am able to delete the data in the rows/cells but I can't delete/move up the rows so I can move data in it's place.

    I havn't got Numbers so I can't check it, but is what is on this page any help http://help.apple.com/numbers/ipad/1.4/#tan72717a35 ?

  • Deadlock when delete rows with blob.

    Hello
    I have the following issue. I try to clean a table that contains a BLOB column.
    To do this I use SQLDBC I create a statement that contains the LOB column, I fetch the line, load the Blob. and before fetching the next line, I send a delete request. and I fall in the deadlock.
    If I fetch the next line before sending the delete request there is no deadlock, there is also no deadlock if i do not request le LOB column in the select.
    In fact when I made select with LOB, there is the follwing line in DOMAIN.LOCKS
    SESSION;TRANSCOUNT;PROCESS;USERNAME;DATE;TIME;TERMID;LASTWRITE;LOCKMODE;LOCKSTATE;APPLPROCESS;APPLNODE;SCHEMANAME;OWNER;TABLENAME;TABLEID;ROWIDLENGTH;ROWIDHEX;ROWID;
    295513;                4290;438;ESKDBADM;2010-06-17;12:05:46;ly-delorme-u..1674;?;tab_share;?;5748;LY-DELORME.esker.corp;?;?;?;0000800000046919;0;?;?
    when i send the delete request the following lock appears in DOMAIN.LOCKS. A exclusif lock on the column I want to delete. It's ok
    SESSION;TRANSCOUNT;PROCESS;USERNAME;DATE;TIME;TERMID;LASTWRITE;LOCKMODE;LOCKSTATE;APPLPROCESS;APPLNODE;SCHEMANAME;OWNER;TABLENAME;TABLEID;ROWIDLENGTH;ROWIDHEX;ROWID;
    295521;                4287;167;ESKDBADM;2010-06-17;12:05:49;ly-delorme-u..1674;         5;row_exclusive;write;5748;LY-DELORME.esker.corp;ESKDBADM;ESKDBADM;DBM350_AUTOTESTXML;0000000000000934;5;00C51133800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
    BUT there is a dead lock , I think because of the following entry in DOMAIN.LOCK_WAITS
    TABLENAME;TABLEID;H_TERMID;H_PROCESS;H_APPLPROCESS;H_APPLNODE;H_ROWIDHEX;H_ROWID;H_LOCKMODE;H_DATE;H_TIME;H_LOCKTIMEOUT;R_TERMID;R_PROCESS;R_APPLPROCESS;R_APPLNODE;R_ROWIDHEX;R_ROWID;R_REQMODE;R_DATE;R_TIME;R_REQTIMEOUT;
    ?;0000800000046919;ly-delorme-u..1674;438;5748;LY-DELORME.esker.corp;?;?;tab_share;2010-06-17;12:05:46;?;ly-delorme-u..1674;167;5748;LY-DELORME.esker.corp;?;?;tab_exclusive;2010-06-17;12:05:49;      3585
    The database request a tab_exclusive lock on tableid 0000800000046918 but there is already a tab_share lock on this.
    Do you why there is a lock on the table :  tableid 0000800000046918 ?
    How to avoid this lock using SQLDBC ?
    Thanks for you help.
    Yann.

    this is the same reply as previous reply, this carriage return. I hope.
    Hello,
    Here is code that explain my issue.
    I create a table like this :
    create table "ESKDBADM"."DBM350_AUTOTESTXML"( "MSN" INTEGER not null, "DIST_FILE" BLOB, constraint SYSPRIMARYKEY primary key ("MSN"))
    And then I try to delete row with the following program. I do not understand why the request SELECT Msn, DIST_FILE FROM DBM350_AUTOTESTXML set a share lock on the tableid : 000080000004691D.
    I do not find this tableid in the "SYSINFO"."FILES" table.
    SESSION;TRANSCOUNT;PROCESS;USERNAME;DATE;TIME;TERMID;LASTWRITE;LOCKMODE;LOCKSTATE;APPLPROCESS;APPLNODE;SCHEMANAME;OWNER;TABLENAME;TABLEID;ROWIDLENGTH;ROWIDHEX;ROWID;
    295697; 5220;172;ESKDBADM;2010-06-21;11:01:40;ly-delorme-u..1CDC;?;tab_share;?;7388;LY-DELORME.esker.corp;?;?;?;000080000004691D;0;?;?
    // SQLDBC.cpp : Defines the entry point for the console application.
    // YOU MUST CHANGE CONNECTION SETTINGS.
    #include "stdafx.h"
    #include <stdio.h>
    #include <tchar.h>
    #include <comdef.h>
    #include <iostream>
    #include "SQLDBC.h"
    using namespace SQLDBC;
    static void parseArgs(int argc, wchar_t **argv);
    static SQLDBC_Connection *connectDB(SQLDBC_Environment * env = NULL);
    static char* convertToUCS2(char *src);
    static void usage();
    SQLDBC_Environment *g_env;
    typedef struct ConnectArgsT {
      bstrt username;
      bstrt password;
      bstrt dbname;  
      bstrt host;    
      bstrt request;    
    } ConnectArgsT;
    ConnectArgsT connectArgs;
    void exitOnError(SQLDBC_ErrorHndl &err);
    int _tmain(int argc, _TCHAR* argv[])
       parseArgs(argc, argv);
       SQLDBC_Connection *conn = connectDB();
       //* Create a new statment object and execute it.
       SQLDBC_PreparedStatement *stmt = conn->createPreparedStatement();
       // FREEZE
       if (connectArgs.request.length() == 0)
               connectArgs.request = "SELECT Msn, DIST_FILE FROM DBM350_AUTOTESTXML";     
       /* NO FREEZE
       if (connectArgs.request.length() == 0)
               connectArgs.request = "SELECT Msn FROM DBM350_AUTOTESTXML";
       char command = (char)((LPCWSTR)(connectArgs.request));
        //* Executes the UNICODE encoded SQL command.
       SQLDBC_Retcode ret = stmt->prepare((const char*)command, SQLDBC_StringEncodingType::UCS2Swapped);
       exitOnError(stmt->error());
       stmt->execute();
       exitOnError(stmt->error());
       // * Get the resultset.  
       SQLDBC_ResultSet *result;
       result = stmt->getResultSet();
       exitOnError(stmt->error());
       // * Fetch the row from the resultset.     
       result->next();
            SQLDBC::SQLDBC_RowSet* pRowset =  result->getRowSet();
         ret = pRowset->fetch();          
       exitOnError(result->error());
       wchar_t szString[30];
       SQLDBC_Length ind;
    Get a string value from the column.
       result->getObject(1, SQLDBC_HOSTTYPE_UCS2_SWAPPED, szString, &ind, sizeof(szString)); // Retreive MSN.
       // Delete de line.
       // Create a new connection for delete
       SQLDBC_Connection *conn2 = connectDB(g_env);
       //* Create a new statment object and execute it.
       SQLDBC_PreparedStatement *stmt2 = conn2->createPreparedStatement();
         std::wstring st = L"DELETE FROM DBM350_AUTOTESTXML WHERE MSN=";
         st +=  szString;
         stmt2->prepare((char*)st.c_str(), SQLDBC_StringEncodingType::UCS2Swapped);
        //* Executes the UNICODE encoded SQL command.
         ret = stmt2->execute();
       exitOnError(stmt->error());
       printf("%s\n", szString);
       return 0;
    static char *convertToUCS2(char *src)
      int len = strlen(src);
      wchar_t w=(wchar_t)calloc(len, sizeof(wchar_t));
      int nc = mbstowcs(w, src, len);
      if ((size_t)-1 == nc) {
        fprintf(stderr, "Conversion to UCS2 failed. Execution stopped.\n");
        exit(1);
      short s=(SQLDBC_Int2)calloc(nc+1, sizeof(SQLDBC_Int2));
      int i;
      for(i=0; i<nc; i++) {
        s<i> = w<i>;
      free(w);
      return (char*)s;
    static char* strupper(char *str)
        char *p=str;
        while(*p) {
            p=toupper(p);
            ++p;
        return str;
    static wchar_t *argv0;      
    #ifdef WIN32
    #define STRICMP _stricmp
    #else
    #define STRICMP strcasecmp
    #endif
    SQLDBC_Connection *connectDB(SQLDBC_Environment * env)
      char errorText[200];
      SQLDBC_Retcode rc;
      if (g_env == NULL)
    Every application has to initialize the SQLDBC library by getting a
    reference to the ClientRuntime and calling the SQLDBC_Environment constructor.
           SQLDBC_IRuntime *runtime;
           runtime = SQLDBC::GetClientRuntime(errorText, sizeof(errorText));
           if (!runtime) {
              fprintf(stderr, "Getting instance of the ClientRuntime failed %s\n", errorText);
              usage();
           env = new SQLDBC_Environment(runtime);
           g_env = env;
    Create a new connection object and open a session to the database.
      SQLDBC_Connection *conn = env->createConnection();
      printf("Connecting to '%s' on '%s' as user '%s'\n",
             (char)connectArgs.dbname, (char)connectArgs.host, (char*)connectArgs.username);
      rc = conn->connect(connectArgs.host, connectArgs.dbname,
                         connectArgs.username, connectArgs.password);
      if(SQLDBC_OK != rc) {
        fprintf(stderr, "Can't connect to '%s'.\nERROR: %d:'%s'\n",
                connectArgs.dbname, conn->error().getErrorCode(), conn->error().getErrorText());
        exit(1);
      return conn;
    static void parseArgs (int argc, wchar_t **argv)
      argv0 = wcsdup(argv[0]);
    setting defaults for demo database
      connectArgs.username = "ESKDBADM";
      connectArgs.password = "DELORME";
      connectArgs.dbname = "EDP350";
      connectArgs.host = "ly-delorme";
    use values from command line
      if (argc > 5) {
        connectArgs.request = argv [5];
      if (argc > 4) {
        connectArgs.host = argv [4];
      if (argc > 3) {
        connectArgs.dbname = argv [3];
      if (argc > 2) {
        connectArgs.password = argv [2];
      if (argc > 1) {
        if (!wcsicmp(argv [1], L"-h"))
          usage();
        else {
          connectArgs.username = argv [1];
      strupper(connectArgs.username);
      strupper(connectArgs.password);
    void exitOnError(SQLDBC_ErrorHndl &err)
      if(err) {
        fprintf(stderr, "Execution stopped %d:'%s'", err.getErrorCode(), err.getErrorText());
        exit(1);
    static void usage()
      wchar_t *s = wcsrchr(argv0, L'/');
      if (!s)
        s = wcsrchr(argv0, L'
      if (s)
        *s = '\0';
      printf("Syntax: %s [-h] | [<connect_options>]\n"
             "\tconnect_options :: \n"
             "\t\t[ <username> \n"
             "\t\t[ <password>\n"
             "\t\t[ <database_name>\n"
             "\t\t[ <database_server> ]]]]\n"
               "\t\t[ <request> ]]]]\n"
             "\tCalling %s without any arguments will use user '%s','%s'\n"
             "\t\ton database '%s' at server '%s'\n",
             argv0, argv0,
             connectArgs.username, connectArgs.password,
             connectArgs.dbname, connectArgs.host);
      exit(1);

  • Records added into the DB when deleting row in List

    I have a list with an add button at the bottom. Every entry has a delete button on the left.
    Whenever I create new entries and then delete some rows, the newly created entries are automatically saved.
    How can I solve this? Deleting calls getOADBTransaction.commit(), is there a way to isolate deleting form saving?

    Hi,
    When do some operations on Records from OAF page it maintains a list of state of entity, and on the basis of this state it performs the DML operations like insert/Update and Delete.
    Your case is no exception if you are inserting some records OAF will mark these for insertion, deleted records will marked for deletion and on commit data will be posted to DB accordingly.
    Still if you don't want to save the data, explictly change the VO Row status as Initialize(same as we do while inserting new record STSTUS_INITIALIZED) then OAF will not consider this row for insertion.
    Hope this will give you some clue.
    Regards,
    Reetesh Sharma

  • Deleting rows in Numbers without resorting?

    I have about ten thousand items in a Numbers spreadsheet. In one column, I have a formula that, in the third column, writes "Same" if the numbers being compared in the first two columns for a row are the same, and "Different" if they're different. I want to remove all of the "Same" rows, but I don't want to lose my current sort order. If anyone can help me achieve this, I would be very grateful. Thank you!

    Unfortunately "fill down" doesn't do it. For that many rows, enter one formula of =ROW() . Select that cell and copy it. Select the entire column (headers and all, just click on the column letter) and Paste. While the column is still selected, Copy/Paste Values to replace the formulas with the actual numbers.

  • Page not found error when deleting row in multirow form

    I have a tabular form and when I try to delete one or more rows from the tabular section, I get the confirmation box pop-up window and then this error:
    "The requested URL /apex/wwv_flow.accept was not found on this server"
    I checked other postings and found instructions to generate a trace so here is what I think shows the error :
    wwv_flow.accept(P_FLOW_ID=>:P_FLOW_ID,P_FLOW_STEP_ID=>:P_FLOW_STEP_ID,P_INSTANCE=>:P_INSTANCE,P_PAGE_SUBMISSION_ID=>:P_PAGE_SUBMISSION_ID,P_REQUEST=>:P_REQUEST,P_ARG_NAMES=>:P_ARG_NAMES,P_T01=>:P_T01,P_T02=>:P_T02,P_T03=>:P_T03,P_T05=>:P_T05,P_T06=>:P_T06,P_T07=>:P_T07,P_T08=>:P_T08,P_T09=>:P_T09,F04=>:F04,F05=>:F05,F08=>F08,F06=>:F06,F07=>:F07,F02=>:F02,F03=>:F03,FCS=>:FCS,F01=>:F01,P_MD5_CHECKSUM=>:P_MD5_CHECKSUM);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    :db_proc_time__ := dbms_utility.get_time - start_time__;
    end;
    Embedded PL/SQL Gateway: /apex/wwv_flow.accept HTTP-404 ORA-06550: line 6, column 44:
    PLS-00103: Encountered the symbol "WITH" when expecting one of the following:
    := . ( @ % ; not null range default character
    Embedded PL/SQL Gateway: (wpu.c,626) longjumping back to the beginning
    Embedded PL/SQL Gateway: (wpu.c,488) cleaning up before longjmp
    Embedded PL/SQL Gateway: (wpu.c,492) doing a rollback
    Embedded PL/SQL Gateway: (wpcs.c, 76) Executed 'rollback' (rc=0)
    Any ideas why this is happening?
    Thanks

    I kept looking into the trace file and a before the text in the initial posting I found this:
    Embedded PL/SQL Gateway: (wppr.c,1021) lcase(procname): wwv_flow.accept
    Embedded PL/SQL Gateway: (wppr.c,1302) The CALL block: len=2881, bind_count=37
    declare
    rc__ number;
    start_time__ binary_integer;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    F08 FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2t with the difference of 11 months apart.^M
    2 For some of them calculate the AWT that includeFLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2tas setup.^M
    For some of them include the AWt monotribuista code to be calculated.^M
    3. Some oFLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2led.^M
    The error says "ORA-06550: line 6, column 44: PLS-00103: Encountered the symbol "WITH" "
    so it points to the following line in the code:
    "F08 FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2t with the difference of 11 months apart.^M"
    So... can anyone give me a clue why the code is built this way (looks like the variable definition is truncated)
    Thanks in advance for your help!

  • Emails keep coming back when deleted and marked as spam

    I've got iPhone and iPad, both upgraded to iOS 7.1.2
    I'm using several IMAP email accounts and on all of them I'm getting a very annoying problem.
    When I delete or mark as SPAM an email, then it keeps reappearIng in the Inbox.
    As far as I read on the Web, this is a well known and unsolved problem that many users experienced for the last 2-3 years.
    How the **** is possible that Apple is unable to fix this bloody bug?!?
    Did someone find a solution?
    Many thanks in advance

    Apple does not monitor these USER-TO-USER support forums
    All support comes from other users like you
    Usually when a post gets no response no one knows the answer, or there isn't enough information provided to make a guess, or the question has been asked and answered so frequently that a simple search would find the answer
    Insulting the people who volunteer their time to help other users is not a strategy that would encourage anyone to respond.

  • Keep transitions intact when importing mult. iPhoto images into iMovie HD?

    Is it possible to import a completed iPhoto album show with hundreds of images with random transitions between each into iMovie while still keeping the random transitions between the iPhoto images intact?
    If not, is there a way to select random transitions between the still images in iMovie once they get there rather than select and create each and every one of the transitions myself?
    Thanks!

    Because iMovie and iPhoto serve different purposes, each has features not found in the other. There is no way in iMovie to automatically add random transitions to slideshows, for example, while iPhoto offers that feature. (In iMovie, the assumption is the user wants absolute control over such features, wants to control each frame of the slideshow.)
    That doesn't prevent you from having your cake and eating it too, however. Remember, many of the iLife apps allow you move stuff around between them.
    For example, you can create a slideshow containing random transitions in iPhoto, export it to a QuickTime movie, import that movie to iMovie, add titles and songs, add some video from a video camera, add a voiceover narration, add some Chapter Markers, add an iMovie theme to introduce each chapter, then send the iMovie project off to iDVD to burn a DVD that plays on a TV.
    So, check out the File > Export command in iPhoto. Set the exported movie to 640x480. The command will export your iPhoto slideshow to an MPEG-4 type QuickTime movie. Create a new MPEG-4 type iMovie project and import that movie to it. (Use the disclosure arrow towards the bottom of the window where you name the new iMovie project to select the MPEG-4 project type.)
    Karl

  • IPhone keeps locking up when deleting e-mail messages

    I have been doing some mass deletions of e-mails on my iPhone this morning and the thing keeps locking up.
    I am pushing that "edit" button than the "-" symbol then "delete" next to each message in the list view. I'm doing it pretty quickly deleting one message at a time as fast as I can. (BECAUSE I CAN'T MASS DELETE MESSAGES!!!!)
    Anyways, it keeps freezing on me. I have to hold the home button for like 5 seconds to make the iPhone come back to life each time. It's really annoying.
    Is there a faster way to mass delete e-mails? Or, I am too fast for the phone and am I locking it up?

    I was having some wacky behavior with email, and it got better after I rebooted. I held the power/main buttons for 8 seconds until the Apple logo appeared on the screen,

  • Keeping Exif intact when exporting to Jpeg?

    Howdy -
    What setting do we need to avoid - so that Exif can be displayed when exporting to jpeg?
    example - posting jpegs on a photo forum
    thank-you ~

    If you want EXIF data to be available, do not check "minimize Metadata" upon export.
    Beat Gossweiler
    Switzerland

  • Delete Row In Matrix

    Hello All,
    I have a UDO and a form for it. The UDO has a child table, which is binded to a matrix in the form. Everything works well except Delete Row in the matrix.
    If I don't do anything when Delete Row menu is clicked, the row is deleted. But as soon as Update button is clicked, a new empty row gets added to the matrix and the underlying table.
    The same happens even if I catch the delete row event, do the delete myself and then set the bubbleevent to false.
    Is this the default behaviour. What is the workaround to avoid this addition of new empty row.
    Following is the code I am using for deleting the row. I've used various combinations of this code to the same affect.
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim RowIndex As Integer
            Try
                If oForm.Mode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                    oMatrix = oForm.Items.Item("AC_MX01").Specific
                    RowIndex = oMatrix.GetNextSelectedRow
                    If RowIndex <= 0 Then
                        Exit Sub
                    End If
                    oForm.DataSources.DBDataSources.Item("@AC_SMP1").RemoveRecord(RowIndex - 1)
                    oMatrix.DeleteRow(RowIndex)
                    'oMatrix.FlushToDataSource()
                    'oMatrix.LoadFromDataSource()
                Else
                    Exit Sub
                End If

    Hi Rahul
    Try this code
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim RowIndex As Integer
            oMatrix = oForm.Items.Item("AC_MX01").Specific
            For RowIndex = 1 To oMatrix.RowCount
                 If oMatrix.IsRowSelected(RowIndex) = True Then
                     oMatrix.DeleteRow(RowIndex)
                     oMatrix.FlushToDataSource()
                     If form.Mode = 1 Then form.Mode = BoFormMode.fm_UPDATE_MODE
                     Exit For
                 End If
           Next
    Hope this helps....
    Kind Regards
    Arun TB

  • Delete row in OO ALV grid toolbar

    Hello;
    I am using OO ALV grid to display data. On the standard toolbar when delete row button is activated the relevant row is removed from the screen. The program catches this event only when Enter is pressed. Is it possible to catch it as soon as delete row is pressed?
    Thx in advance.
    Ali

    Hi Ali,
            You have to handle standard ALV toolbar. Even you can use Custom Toolbar. But you can handle it from Standard toolbar user command. Register events..
    Thanks and Regards,
    Sampath

  • Numbers 09 continuing formulas when adding rows

    Numbers 09 - I have a checkbook template but when adding rows at the bottom the formulas do not continue. I have tried adding rows from the last row "Add row below" and also while in the last cell hitting return. Neither of these work. Any suggestions?

    Hi jc,
    The rule is quite explicit: "If all the body cells in a column above the new row contain the same formula or cell
    control, the formula or cell control is repeated in the new row."
    So far there's been some information necessary to solving the problem missing from your posts. Please do the following, and supply the requested information:
    Unhide ALL rows. There are two ways to do this, depending on what was done to hid them.
    a. Click on the Reorganize button. If the checkbox beside "Show rows that match..." is checked, uncheck it.
    b. If the checkbox is unchecked, or if there are still rows hidden after unchecking it, go to the Table menu and choose Unhide all Rows.
    Click on any cell on the table to activate the table and show the Column and Row reference tabs. Hover the mouse over the tab for Row 1, then click the triangle that appears to open the local row menu. Repeat with rows 2, 3, 4, 5 and 6 until you find the first row whose menu starts with the item shown below. Which row has this menu item on your table?:
    Now click on cell G2 (the first cell containing a balance).
    Select and Copy the whole formula from this cell. Paste it into your reply to this message.
    Repeat step 3 with the formula from cell G3. Paste it directly below the formula from G2, using the example below as a guide:
    G2: (paste formula)
    G3: (paste formula)
    Regards,
    Barry

  • How can I label my rows on numbers so I can keep a running count? Dave

    How can I label my rows on numbers so I can keep a running count?
    i would like to number from 1 to 150  by highlighting and use a function command
    Dave
                   Name               Address          Email
    Ex      1
              2
              3
              4
              150

    Add a column to the left of column A (it will become column A).
    Assuming you want to start with the first "name" in Row 2 (and NOT number the header row):
    Two methods:
    1.
    In cell A2, enter =ROW()-1
    Grab the Fill Handle (small circle, bottom right of the selected cell) and drag down to fil the formula into the rest of the cells in the column.
    If the formula is placed in ALL non-header row cells in the column, it will automatically fill into any rows added to the table.
    If rows are inserted or removed, numbers below the inserted/removed row will be automatically adjusted.
    2.
    In cell A2, enter a 1
    In cell A3, enter a 2
    Select both cells.
    Grab the Fill Handle and drag down to the rest of the cells in the column.
    These are fixed numbers. They will not be automatically filled into new rows added to the table, nor will they automatically update when rows are inserted into the table or removed from the table.
    To add more numbers, select the last two cells currently containing numbers, drag the Fill Handle down.
    Regards,
    Barry

  • Database, Dataset, Table Adaptors Error "Unable to load, Update requires a valid DeleteCommand when passed DataRow collection with deleted row"

    Microsoft Visual Basic 2010 Express.
    I am new to Visual Basic programing and i am trying to understand the relationships between Datasets, database, table Adaptors. I have to following code that is is giving me the following error" Unable to load, Update requires a valid DeleteCommand
    when passed DataRow collection with deleted rows". 
    I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    It seems that i can delete the data on the DataGridView Table and it only displays the correct data. but my database is not updating, even though the data grid displays differently.I can determine this because, when i save the offset database, i have all
    the previous uploads and all the rows that i wanted to delete are still there.
    My final goal is to be able to import offset data from a CSV file, save this data on the pc, send a copy of this data to a NuermicUpDown so the customer can modify certain numbers. From here they download all the date to a controller.  IF the customer
    needs to modify the imported data, they can go to a tab with a data grid view and modify the table. They will also have to option to save the modified data into a csv file.  
    Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    CODE:
    Private Function LoadOffSetData()
            Dim LoadOffsetDialog As New OpenFileDialog 'create a new open file dialog and setup its parameters
            LoadOffsetDialog.DefaultExt = "csv"
            LoadOffsetDialog.Filter = "csv|*.csv"
            LoadOffsetDialog.Title = "Load Offset Data"
            LoadOffsetDialog.FileName = "RollCoaterOffset.csv"
            If LoadOffsetDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then  'show the dialog and if the result is ok then
                Try
                    Dim myStream As New System.IO.StreamReader(LoadOffsetDialog.OpenFile) 'try to open the file with a stream reader
                    If (myStream IsNot Nothing) Then 'if the file is valid
                        For Each oldRow As MaterionOffsetDataSet.OffsetTableRow In MaterionOffsetDataSet.OffsetTable.Rows
                            oldRow.Delete()                       
    'delete all of the existing rows
                        Next
                        'OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        Dim rowvalue As String
                        Dim cellvalue(25) As String
                        'Reading CSV file content
                        While myStream.Peek() <> -1
                            Dim NRow As MaterionOffsetDataSet.OffsetTableRow
                            rowvalue = myStream.ReadLine()
                            cellvalue = rowvalue.Split(","c) 'check what is ur separator
                            NRow = MaterionOffsetDataSet.OffsetTable.Rows.Add(cellvalue)
                            Me.OffsetTableTableAdapter.Update(NRow)
                        End While
                        Me.OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        MainOffset.Value = OffsetTableTableAdapter.MainOffsetValue          'saves all the table offsets
    to the offset numericUpDown registers in the main window
                        StationOffset01.Value = OffsetTableTableAdapter.Station01Value
                        StationOffset02.Value = OffsetTableTableAdapter.Station02Value
                       myStream.Close() 'close the stream
                        Return True
                    Else 'if we were not able to open the file then
                        MsgBox("Unable to load, check file name and location") 'let the operator know that the file wasn't able to open
                        Return False
                    End If
                Catch ex As Exception
                    MsgBox("Unable to load, " + ex.Message)
                    Return False
                End Try
            Else
                Return False
            End If
        End Function

    Hello SaulMTZ,
    >>I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    This error usually shows that you do not initialize the
    DeleteCommand object, you could check this
    article to see if you get a workaround.
    >> Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    If you are working CSV file, you could use OleDB to read it which would treat the CSV file as a Table:
    http://www.codeproject.com/Articles/27802/Using-OleDb-to-Import-Text-Files-tab-CSV-custom
    which seems to be easier (in my opinion).
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How to delete a local file in the presentation server.

    Hi All, How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let m

  • Error while trying to search in advanced table with hide/show region

    Hi I have search region and a results table with a hide.show in it.I did a search initially and got the results.I clicked on the hide/show region to see the details. I put another search criteria in the search region and tried to do a search. I am ge

  • Pop up screen not coming for import PO at the time of MIGO

    Hi, I am doing Migo for import PO and not getting Pop-up screen to put commercial IV no., while MIRO is done for custom duties, Pls help me out and tell me the settings related to the same.

  • Ora-00932 "expected number got -"... error comes and goes

    We have several procedures in a package which get called by an asp.net application. The procedures return a sys_refcursor as an out param, by going OPEN param FOR big complicated query. There are about seven procedures which encapsulate different que

  • Setting the global Font color for an application

    Hi, Can anyone tell me how I can set the default font colour for an application. I understand it involves using the UIManager class to somehow get/set the defaults but im stumped after that. Thanks in advance