+ Reply to Thread
Results 1 to 10 of 10

how to make this sequence on excel

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    alex
    MS-Off Ver
    2010
    Posts
    17

    Red face how to make this sequence on excel

    I want to make a sequence of the following in a certain column :

    -1
    1
    -1
    1
    -1
    1

    how can I do that by dragging it down because I need 256 cells in the column to be like that

    thanks in advance

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: how to make this sequence on excel

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  3. #3
    Registered User
    Join Date
    09-25-2014
    Location
    alex
    MS-Off Ver
    2010
    Posts
    17

    Re: how to make this sequence on excel

    Thank you very very much boopathiraja
    Last edited by thunderspeed; 09-25-2014 at 05:05 AM.

  4. #4
    Forum Contributor
    Join Date
    07-10-2012
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: how to make this sequence on excel

    input formula like this way

    find attach sheet
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-25-2014
    Location
    alex
    MS-Off Ver
    2010
    Posts
    17

    Re: how to make this sequence on excel

    So if I want to make another column of a simillar sequence of -1s and 1s but in that way :

    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    its a 2^8 negative ones followed by 2^8 ones then again followed by 2^8 negative ones and so on , what modification to the line you gave me should I make to achieve so ?
    thanks again

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: how to make this sequence on excel

    tRY
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-25-2014
    Location
    alex
    MS-Off Ver
    2010
    Posts
    17

    Re: how to make this sequence on excel

    Its still has a problem , if i type : =IF(MOD(QUOTIENT(ROW(),2^4),2)=0,1,-1)
    it gives :
    1
    1
    1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    1
    so there are 3 ones at the beginning that I don't want in the sequnce , I need it to start right away from 16 negative ones then 16 ones and so on
    Thanks in advance

  8. #8
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: how to make this sequence on excel

    Try something like this if you are not starting it from 1st row
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to make this sequence on excel

    =IF(iseven(CEILING(ROWS($A$1:A1)/2^3,1)),-1,1)
    or
    =IF(iseven(CEILING(ROWS($A$1:A1)/2^3,1)),1,-1) depending whether you want to start with - or +
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  10. #10
    Registered User
    Join Date
    09-25-2014
    Location
    alex
    MS-Off Ver
    2010
    Posts
    17

    Re: how to make this sequence on excel

    Thank you martindwilson very very much it worked great with the sequence, there is only a small error message with this green label on the cell , but values of sequence of negative and positive ones is totally right . So can I take the value of any cell and work with it and I think I shouldn't bother my self with this error .

    thanks again , you rock

+ 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: 6
    Last Post: 07-06-2013, 12:50 AM
  2. [SOLVED] Creating a sequence based on numbers in one column and adding "01,02..." to a new sequence
    By JCR1968 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2013, 08:06 AM
  3. Replies: 0
    Last Post: 12-12-2012, 06:39 PM
  4. Make a countdown sequence with random intervals
    By Orthobill13 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-12-2012, 09:38 AM
  5. add a sequence of pictures in excel
    By SPaMx182 in forum Excel General
    Replies: 2
    Last Post: 01-26-2008, 07:01 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