Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Anant
 
Posts: n/a
Default Formula Question...PLEASE PLEASE help!

Hi everybody,
I am new to Excel and have a simple question about patterns in formulas. I
have a column like this:

=A2
=A4
=A6

How can I simply do a drag or something to continue that forumla pattern all
the way throughout the spreadsheet? I know if you just had A2 and dragged it
from the lower right corner, you'd see A3, A4, A5 below it. Also, I have a
column like this:

=RANK(C2,C:C)
=RANK(C4,C:C)
=RANK(C4,C:C)

Again, how can I simply continue this pattern for many rows? Thanks!!!
  #2   Report Post  
Max
 
Posts: n/a
Default

One way ..

To get:

=A2
=A4
=A6


in successive cells when copying down

Put in the starting cell, say B2:

=INDIRECT("A"&ROWS($A$1:A1)*2-2+2)

B2 will return the same as: =A2

Copy B2 down to return in successive cells
(B2, B3, etc):

=A4
=A6
etc

Similarly, applied to:

=RANK(C2,C:C)
=RANK(C4,C:C)
=RANK(C6,C:C) [corrected]


Put in the starting cell, say D2:

=RANK(INDIRECT("C"&ROWS($A$1:A1)*2-2+2),C:C)

D2 will return the same as: =RANK(C2,C:C)

Copying D2 down returns in successive cells:
(D2, D3, etc):

=RANK(C4,C:C)
=RANK(C6,C:C)


Adapt this part: ... ROWS($A$1:A1)*2-2
in the starting cell's formula to suit the interval

If you want to skip 3 cells instead of 2,
i.e. get =A2, =A5, =A8, etc

just change it to: ROWS($A$1:A1)*3-3

Change the last number: ... +2)
to : ... +1)
if you want to begin in the starting cell
with: =A1 instead of : =A2
(the "+2" is just an arithmetic adjustment)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Anant" wrote in message
...
Hi everybody,
I am new to Excel and have a simple question about patterns in formulas. I
have a column like this:

=A2
=A4
=A6

How can I simply do a drag or something to continue that forumla pattern

all
the way throughout the spreadsheet? I know if you just had A2 and dragged

it
from the lower right corner, you'd see A3, A4, A5 below it. Also, I have a
column like this:

=RANK(C2,C:C)
=RANK(C4,C:C)
=RANK(C4,C:C)

Again, how can I simply continue this pattern for many rows? Thanks!!!



  #3   Report Post  
Max
 
Posts: n/a
Default

Typo correction:

(B2, B3, etc):
(D2, D3, etc):


should read as:

(B3, B4, etc):
(D3, D4, etc):

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Anant wrote:
Hi everybody, I am new to Excel and have a simple question about
patterns in formulas. I have a column like this:

=A2 =A4 =A6

How can I simply do a drag or something to continue that forumla
pattern all the way throughout the spreadsheet? I know if you just
had A2 and dragged it from the lower right corner, you'd see A3, A4,
A5 below it.


Supposing that you want every 2nd value from column A, starting with A2,
in column B from B2 downwards...

In B2 enter & copy down as far as needed:

=INDEX(A:A,CELL("Row",$A$2)+(ROW()-ROW(B$2))*2)

Also, I have a column like this:

=RANK(C2,C:C) =RANK(C4,C:C) =RANK(C4,C:C)

Again, how can I simply continue this pattern for many rows?
Thanks!!!


Supposing that you want to rank every 2nd value from column C, starting
with C2...

In D2 enter & copy down as far as needed:

=INDEX(C:C,CELL("Row",$C$2)+(ROW()-ROW(D$2))*2)

In E1 enter:

=LOOKUP(2,1/ABS($D$2:INDEX($D:$D,MATCH(9.99999999999999E+305,$ D:$D))0),

ROW($D$2:INDEX($D:$D,MATCH(9.99999999999999E+305,$ D:$D))))-CELL("Row",$D$2)+1

In D2 enter & copy down:

=IF(ROW()-ROW(D$2)+1<=$E$1,RANK(D2,$D$2:INDEX(D:D,$E$1+CELL( "Row",$D$2)-1)),"")


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Question Qaspec Excel Discussion (Misc queries) 2 January 10th 05 03:59 AM
Formula Question.....PLEASE PLEASE help! Anant Excel Discussion (Misc queries) 4 January 7th 05 09:30 AM
Lookup/Index formula question. Barbara Excel Worksheet Functions 2 December 7th 04 04:45 PM
Parsing Data w/ a Formula (another question) carl Excel Worksheet Functions 2 December 3rd 04 06:51 PM
Formula Question John Excel Worksheet Functions 6 November 13th 04 05:05 AM


All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"