+ Reply to Thread
Results 1 to 6 of 6

entering cells in sequence

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    entering cells in sequence

    please help!! I have a column of values, and I want a column next to it that shows the value in every second cell in the first column, but right underneath. See below for an example of what I am trying to achieve. The actual column is 17000 cells so I cant do it manually. please can someone help me. thank you,

    1 2
    2 4
    3 6
    4 8
    5 10
    6 12
    7
    8
    9
    10

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: entering cells in sequence

    try below and drag down
    =INDEX(A:A,(ROW($A2)-1)*2)

    where A:A represents your column you can replace A:A with your column in which data is present
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: entering cells in sequence

    Hi Hemesh,

    thanks for the reply. I have tired this and I think I might be doing something wrong because it didn't work. the first cell has this formula - =INDEX(A1:A26;(ROW($A2)-1)*2)
    and the following happens;

    1 2
    2 5
    3 8
    4 11
    5 14
    6 17
    7 20
    8 23
    9 26
    10 0
    11 0
    12 0
    13 0
    14 #REF!
    15 #REF!
    16 #REF!
    17 #REF!
    18 #REF!
    19 #REF!
    20 #REF!
    21 #REF!
    22 #REF!
    23 #REF!
    24 #REF!
    25 #REF!

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: entering cells in sequence

    syntax for index is =index(range, row number , column number)
    as per of your requirement you need data of each second row means first time it is 2 then it 4 and so on

    try below
    =INDEX($A$1:$A$26,(ROW($A2)-1)*2) or use =INDEX($A$1:$A$26,(ROW($A1)*2)
    row(A1) means 1 then as you go down it becomes Row(A2) means 2 and each time it is multiplied by two producing a series of 2,4,6,8,10,12 and so on

    with your version
    =INDEX(A1:A26,(ROW($A2)-1)*2) as you drag the formula to 2nd row the formula will become =INDEX(A2:A27,(ROW($A2)-1)*2) and will keep incrementing by as you go down ! means formula is not referring to correct range!

    error is coming because at number 14 it will become 14*2 means 28 and for it will be =index($A$1:$A$26,28) but range here is small than the asked row number
    Last edited by hemesh; 03-12-2014 at 07:00 AM.

  5. #5
    Registered User
    Join Date
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: entering cells in sequence

    perfect!! works like a dream. thanks for the explanation. makes sense to me now.

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: entering cells in sequence

    Thanks for the feedback !
    If your query is resolved then mark thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-12-2012, 06:39 PM
  2. Entering in data in specific cells using range protect or locking the cells
    By howard101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2008, 11:05 AM
  3. Sequence number cells >0
    By b.johnson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2007, 03:42 PM
  4. Replies: 3
    Last Post: 10-09-2005, 01:05 AM
  5. How to sum cells with a certain letters sequence
    By Michal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1