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
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
Formula:Please Login or Register to view this content.
☚ Click ★ just below left if it helps, Boo?ath?
Thank you very very much boopathiraja
Last edited by thunderspeed; 09-25-2014 at 05:05 AM.
input formula like this way
find attach sheet
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
tRY
Formula:Please Login or Register to view this content.
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
Try something like this if you are not starting it from 1st row
Formula:Please Login or Register to view this content.
=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
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks