How to fill a column with numbers and maintain when adding or deleting lines?

So far, I've discovered two ways to fill a column with the number:

1. Enter '1' in a single cell, '2' in the one below, select both, and then use the yellow dot to drag down - it will do the rest.

2 create a formula such as 'A2 + 1' and drag also.

However, in both cases it will work if I manually this continues to do for each newly added line at the bottom. Now, that alone would not be that big of a problem if it wasn't for the fact that I'm working with a table where the lines can be added among other rows in the future.

Having said that, could someone please tell me how to create a column with a number that will increase automatically? I mean - if I add a new line between line 56 and 57, I want the new line to have a '57"in it, and the" old 57 "would now be"58"and so on." " I don't want to drag the whole column, which can be hundreds if not more than a thousand lines.

Try to put this in the cells in the column:

= ROW()

In the formula, you can add or subtract a number if necessary to get the starting number that you need.

SG

Tags: iWork

Similar Questions

  • In DataGrid, how to fill a column with zeros (0) records?

    Is there a simple way, in a DataGrid, for fill the records in a column with zeros (0)?

    I have a DataGrid with two columns: colA and colB.  ColA records values from a RemoteObject call.  I need auto-fill (AutoFill) recordings in colB with zeros.  How is that possible?

    Thank you!

    If you need to 0 in the dataprovider, once pass you the loop of result of the data provider and add a dynamic property with value = 0;

    Something like that

    var dp:ArrayCollection = event.result as ArrayCollection collection;

    for (each var item: Object in PD)
    {
    item.demoValue = 0;
    }

    Create a new datagrid column, set demoValue as datafield.

    If it is just for display, add a new column, put an itemrenderer with label = '0 '.

  • Column with numbers filling

    Hello

    I want to fill a column with numbers from 1 to the end of the table. I need to create a function for him?


    THX in advance

    2890953 wrote:

    Hello

    I want to fill a column with numbers from 1 to the end of the table. I need to create a function for this?

    THX in advance

    What of it?

    SQL > create table mytable

    (

    number of N1

    number of n2

    )

    Table created.

    SQL > insert into mytable (n1)

    Select the level of + 1000 - number + 1000

    of the double

    connect by level<=>

    10 rows created.

    SQL > update mytable

    the value of n2 = rownum

    10 lines to date.

    SQL > select * from myTable

    N1 N2

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

    1001 1

    1002 2

    1003 3

    1004 4

    5-1005

    1006 6

    1007 7

    8 1008

    1009 9

    10 1010

    10 selected lines.

    Kind regards.

    Alberto

  • How to make a form with report and a form of inclusion in the same page?

    Hey, guys:

    I was wondering if you could have any link or examples to show how to make a form with report and a form of inclusion in the same page, these two forms are related to the same table. Our customer wants that a user can add a new row to the table in a form and see all lines created by this user in a report, the report should provide link change as well. the problem is: whenever I inserted a new line or change a line or delete a line, and submitted and return to this page, all hidden elements lost their values, this report is empty, and some display only items also lost their values. Could someone give me any suggestions?

    Thank you very much!

    Sam

    So, the problem is essentially with page elements lose their session state values when re-loading of the page. How do you define values for the elements of the hidden page? You have default values defined for those? They are based on the database column? What is the "Source" parameter for these items on the page? It is set to "Always, replace any value in session state"? You have any process of 'Empty the Cache', which is reset these values to null element?

    What is your version of the Apex?

    I would recommend that you have installed for example in apex.oracle.com. This would help to better understand the issue.

    Published by: jaouad khalifi on 13 December 2012 22:11

  • Boxes with numbers and letters show rather than some images on some websites

    Yammer.com and linkedin.com, images of icons, such as those that display along the top of the screen are not displayed. Instead, I see a rectangle with numbers and letters. I've seen several articles on the rectangles with numbers and letters that apply to the characters but none regarding images. I also tried the steps described in the article on the resolution of the images is not properly displayed, and nothing seems to work.

    Thank you!

    Many sites now display icons using a custom font. Firefox could not be download and using this font personalized for two reasons:

    (1) Firefox to use your fonts favorite instead of the police of the page; or

    (2) Firefox configured to do not to download fonts.

    For more information, see this thread: Yahoo mail display - action buttons like reply, delete, before them and the colors are not displayed. The solution to "clear the cache" does not help.

  • How to fill one shape with another shape, but not of models

    Hello

    How to fill one shape with another shape, but not of models. Example of this poster

    Screen Shot 2015-05-18 at 13.41.33.png

    put in a shape of the tree so that it looks like this:

    Heavy_type_tree.jpg

    Select your type with a vector path, which is the subject

    Object > envelope distort > make with top object.

  • How to fill the canvas with lines

    < mx:Canvas id = "b1" x = "10" y = "10" height = "40" width = "300" borderStyle = "solid" borderColor = "black" / >

    When I want to draw lines with difference of 15 pixels to fill the entire canvas I wrote the following

    for (var i: int = b1.x + 15; i < b1.x + b1.width; i = i + 15)
    {
    var line1:UIComponent = new UIComponent();
    var lineThickness1:Number = 1;
    var lineColor1:Number = 0 x 000000;
    var lineAlpha1:Number = 1;
    LINE1. Graphics.LineStyle (lineThickness1, lineColor1, lineAlpha1);
    LINE1. Graphics.MoveTo (i, B1.y);
    LINE1. Graphics.LineTo (i, B1.y + B1. Height);
    this.addChild (line1);
    }

    It works very well

    LLY,

    < mx:Canvas id = "b4" x = "600" y = "200" height = "60" width = "300" borderStyle = "solid" borderColor = rotation "black" = "40" / >

    I have the canvas above with the "b4" id only difference is that this canvas rotation

    How to fill the canvas with lines that I just did above?

    Hope this code will help you,

    for(var i: int = 15; i < b4.width; i = i + 15) {
         var line1: UIComponent = new UIComponent();
         var lineThickness1: Number = 1;
         var lineColor1: Number = 0x000000;
         var lineAlpha1: Number = 1;
         line1.graphics.lineStyle(lineThickness1, lineColor1, lineAlpha1);
         line1.graphics.moveTo(i, 0);
         line1.graphics.lineTo(i, b4.height - 1);
         //Add line in canvas instead of main container
         b4.addChild(line1);
    }
    
    
    
  • Problems with clicking and scrolling when you are using the mouse in IE

    Separated from this thread.

    Original title:

    Problems with clicking and scrolling when you are using the mouse

    I have the same problem.  My touchscreen responds but my touchpad and mouse are unable to save a click in IE.  I need to reboot to rectify.  It seems to be more common when the laptop comes out of fashion 'sleep'.   I tried all the steps above, everything is up-to-date.

    Hello Fred,.

    Thanks for the reply.

    I appreciate your efforts to resolve the issue.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Run the hardware and devices Troubleshooter and check. Please follow these steps:

    a. press Windows + W keys, type Troubleshooting in the search box and press on Enter.
    b. click on 'show all' and then click 'hardware and devices'.
    c. click 'Next' and then follow the on-screen instructions.

    If this does not help, then use method 2.

    Method 2:
    Start your computer in safe mode and check the number.
    Refer to this article:
    Start settings for Windows (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows-8/Windows-startup-settings-including-safe-mode

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How can I read a BLOB column with images and write a directory

    Hello

    I have a few paintings with a Blob column, in the columns there are documents (word, excel, images... etc), I have read the column of table and save a directory



    How can I do


    Version 9.2.08

    LS - ltr/bdados3/repser
    ls - ld /bdados3/

    view the results of above OS commands

  • [8i &amp; 10g XE] How to compare a column with the text of a column with numbers

    This is probably a simple question, but I can't seem to find the answer. I tried variations on use to_number to_char and interpreters, all nothing will do.

    The real problem is that I have a table with a column of numbers in a database 8i (datatype = NUMBER (3)) and a column with the text (datatype = CHAR (3)), and I need to compare two values.

    This table has thousands of lines, but here's an example of the data in these two columns:
    TXT     CHR
    -----------
    001     1
    001     2
    002     2
    XXX     1
    003     3
    What I want to do is select the lines where the TXT and CHR VALUES do not match, then it would be (given my example):
    TXT     CHR
    -----------
    001     2
    XXX     1
    But, I'm having difficulties in comparing two columns, because they are not the same type of data.

    I tried to work on a simplified version of the problem in the 8i database both my 10g XE database:
    SELECT     *
    FROM     (
         SELECT     1.000               AS nbr
         ,     TO_CHAR(1.000,'000')     AS txt
         ,     CAST('001' AS CHAR(3))     AS chr
         FROM     dual
         )
    WHERE     txt = chr
    ;
    But this also returns any line, and it isn't even the "XXX" in the text column to treat in this example.

    Can someone help me understand what it is that I'm missing?

    Thank you!

    Hello

    user11033437 wrote:
    This is probably a simple question...

    Simple if you know the secret; maddening if you do not have.

    ... I tried to work on a simplified version of the problem in the 8i database both my 10g XE database:

    SELECT     *
    FROM     (
         SELECT     1.000               AS nbr
         ,     TO_CHAR(1.000,'000')     AS txt
         ,     CAST('001' AS CHAR(3))     AS chr
         FROM     dual
         )
    WHERE     txt = chr
    ;
    

    Try:

    TO_CHAR (1.000, 'FM000')
    

    By default, TO_CHAR leaves place the beginning of the string to a sign less, in which case he should ever one, TO_CHAR (1,000, '000') returns makes 4 characters, not 3. "FM" in the format said TO_CHAR do not add a space.

    If it does not, after the release of DUMP (txt) for the few lines that you can't match, so that we can see exactly what is in them.

  • TRIGGER - how to auto fill a column with the sequence

    Hello

    I have a table that contains information about the customers... I have bound him to a form of the APEX so that when a user enter information through a form he generates a sequence/trigger number and saves it in the column (named tracking_NO)... I use this tracking_no as key for monitoring purposes.

    My problem is that when the admin will post information from MS access to Oracle, it generates automatically a number for my column 'tracking_No '... Please advice how to use the same trigger Auto Fill a column (tracking_no) when the value is zero.

    Here's my trigger

    CREATE OR REPLACE TRIGGER B.T_CUSTOMER_TRG
    BEFORE THE INSERT OR UPDATE
    ON B.T_CUSTOMERS
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    Start
    If: NEW. "' TRACKING_NO ' is null then
    Select T_CUSTOMER_SEQ.nextval in: NEW. "' TRACKING_NO ' from dual;
    end if;
    end;
    /

    Two copies.
    I really think this is a bug coding causing this duplication.

    Published by: PhoenixBai on December 25, 2010 21:50

  • Fill a column with serial number

    Hello, all seniors... !

    my table has a column empty NWT (number), I would now like to fill with a series of numbers
    for as many records that are also present.

    examples of table data.
      1  SELECT  TXN_DATE
      2  FROM PTXN
      3* WHERE ROWNUM <10
    
    TXN_DATE
    ----------
    18/03/2010
    02/02/2010
    10/02/2010
    05/04/2010
    15/05/2010
    25/01/2010
    03/02/2010
    15/01/2010
    25/04/2010
    
    9 rows selected.
    
    I issue this command;
    update ptxn
    set tno = rownum
    
    With the above Update SQL, the TNO column got filled with the exact number of records. Like this,
    SELECT  TXN_DATE,tno
    FROM PTXN;
    
    TXN_DATE         TNO
    ---------- ----------
    03/02/2010          1
    15/01/2010          2
    02/02/2010          4
    25/04/2010          8
    25/01/2010          3
    18/03/2010          6
    15/05/2010          9
    10/02/2010          5
    05/04/2010          7
    
    9 rows selected.
    what I want actually is to sort my table (ptxn) in the column "txn_date" wise and complete series.
    Like this;
    TXN_DATE NWT
    ---------- ----------
    15/01/2010 1
    25/01/2010 2
    02/02/2010 4
    02/03/2010 8
    02/10/2010 3
    2010-03-18 6
    2010-05-04 9
    2010-04-25 5
    2010-05-15 7


    How can I change my statement Update ot any other solution, please suggest.

    Using PL/SQL:

    SQL> select * from PTXN ;
    
    TXN_DATE         TNO
    --------- ----------
    07-MAR-10
    26-FEB-10
    01-MAR-10
    08-FEB-10
    03-MAR-10
    16-APR-10
    11-APR-10
    08-MAY-10
    14-MAR-10
    18-APR-10
    
    10 rows selected.
    
    SQL> begin
      2   for r in (select rowid i, TXN_DATE, row_number() over (order by TXN_DATE) n from PTXN) loop
      3     UPDATE PTXN p
      4        set TNO = r.n
      5      where rowid = r.i;
      6   end loop;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from PTXN
      2  order by 1;
    
    TXN_DATE         TNO
    --------- ----------
    08-FEB-10          1
    26-FEB-10          2
    01-MAR-10          3
    03-MAR-10          4
    07-MAR-10          5
    14-MAR-10          6
    11-APR-10          7
    16-APR-10          8
    18-APR-10          9
    08-MAY-10         10
    
    10 rows selected.
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/31/le-direttive-di-compilazione-pragma/]

  • Fill a column with Ajax in tabular form

    Hello

    I have the following problem.

    A tabular presentation, created with the wizard and not with apex_item, has a certain LOV column with different values and attributes of the element the following call:

    1 onChange = "javascript:f_getPV(#ROWNUM#,_this)";

    The column that needs to be filled has ID = f10

    2.
    function f_getPV (pRownum, pInput) {}
    get var = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is getPV', 0);
    get.addParam ('x 01', pInput.value);
    gReturn = get.get ();
    $("f10_000"+pRownum).text (gReturn); SPAN id
    }


    The application process (On Demand) looks like:

    3.
    declare
    lv_pv_sk number: = apex_application.g_x01;
    number of lv_cost_amt;
    Start
    Start
    Select dc.cost_amt
    in lv_cost_amt
    Since DC default_cost
    where 1 = 1
    and dc.power_value_sk = lv_pv_sk
    and dc.valid_till is null;

    exception
    When NO_DATA_FOUND then
    lv_cost_amt: = 0;
    When TOO_MANY_ROWS then
    lv_cost_amt: = 0;
    end;
    HTP. PRN (lv_cost_amt);
    end;

    Unfortunately, I don't have any population for the f10 ID column.

    Any ideas?

    Hello

    What HTML tag is than f10? If it is a box entry or text you cannot use jQuery text() function.
    Something like this might work then

    $s("f10_000"+pRownum, gReturn);
    

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • How to fill a datagrid with a web service result which is an array?

    I know how to fill a DataGrid to a CF of the web service that returns a query result. But what happens if I want to my CF component to run a query, then massage the data and back-is not a query - but a picture from the web service.

    Seems my two dimension table because ColdFusion has no column name, I need to create on the CF side name-value pairs or the side Flex. BTW, I prefer to use mx:webservice and not remoteObject.

    Any ideas on the best way to fill a datagrid from an array?

    Thank you.

    (Sorry for the previous double post).

    A colleague found the answer for me. I hope this saves someone else from 5 days of anquish!

    When a ColdFusion component returns an array of structures (not the result of a query), redesign the table as an arrayCollection collection throws an error.

    IT DOES NOT WORK:
    acSpeeds = new ArrayCollection (wsSpeeds.oneNode.lastResult);

    THIS WORKS!
    acSpeeds = wsSpeeds.oneNode.lastResult;

    It seems that a table generated by ColdFusion structures is already a collection arrayCollection 'official '!

    Hope this helps someone.

  • How to display 5 columns with blank lines

    Hi Experts,

    I need to display in the dashboard column 5 with blank lines. After download in excel I need to see the same thing as the names in columns 5 and that it must contain empty lines. It is one of the requirements of the user.

    So how do you achieve...

    Thanks in advance,
    Sitbon

    Next to all the answers of your son, you should see a button 'OK' or 'useful '.
    Helpful = 5pts,.
    Correct = 10pts

    :-)

    Check the sticky thred:
    http://forums.Oracle.com/forums/Ann.jspa?annID=939

    Welcome to the community, pls help others!

Maybe you are looking for