Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default increment cells in repeating formulas by something other than 1

i want to write a formula that when copied will increment the cell pointer by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so on. in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by only
extracting the odd cell numbers. i currently know no way to increment the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of A2.
from then on the cells would always point to every odd row. i also dont want
to stop at just a +2 increment but would like to increment the pointing cell
by any value.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default increment cells in repeating formulas by something other than 1

One way
In B2: =INDIRECT("A"&ROWS($1:1)*2-1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Retrodog" wrote:
i want to write a formula that when copied will increment the cell pointer by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so on. in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by only
extracting the odd cell numbers. i currently know no way to increment the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of A2.
from then on the cells would always point to every odd row. i also dont want
to stop at just a +2 increment but would like to increment the pointing cell
by any value.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default increment cells in repeating formulas by something other than 1

Hi,

Please try this formula in cell B2

OFFSET(A1,ROW(A1)+1,0,1,1)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Retrodog" wrote in message
...
i want to write a formula that when copied will increment the cell pointer
by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so on.
in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want
the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by only
extracting the odd cell numbers. i currently know no way to increment the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of A2.
from then on the cells would always point to every odd row. i also dont
want
to stop at just a +2 increment but would like to increment the pointing
cell
by any value.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default increment cells in repeating formulas by something other than 1

Here's a non-volatile method:

Entered in B1:

=INDEX(A$1:A$100,ROWS(B$1:B1)*2-1)

Copy down as needed. Adjust for the correct end of the range.

--
Biff
Microsoft Excel MVP


"Retrodog" wrote in message
...
i want to write a formula that when copied will increment the cell pointer
by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so on.
in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want
the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by only
extracting the odd cell numbers. i currently know no way to increment the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of A2.
from then on the cells would always point to every odd row. i also dont
want
to stop at just a +2 increment but would like to increment the pointing
cell
by any value.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default increment cells in repeating formulas by something other than

Thanks, this worked perfectly.

"Max" wrote:

One way
In B2: =INDIRECT("A"&ROWS($1:1)*2-1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Retrodog" wrote:
i want to write a formula that when copied will increment the cell pointer by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so on. in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by only
extracting the odd cell numbers. i currently know no way to increment the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of A2.
from then on the cells would always point to every odd row. i also dont want
to stop at just a +2 increment but would like to increment the pointing cell
by any value.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default increment cells in repeating formulas by something other than


Thank you, this worked great.

"Ashish Mathur" wrote:

Hi,

Please try this formula in cell B2

OFFSET(A1,ROW(A1)+1,0,1,1)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Retrodog" wrote in message
...
i want to write a formula that when copied will increment the cell pointer
by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so on.
in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want
the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by only
extracting the odd cell numbers. i currently know no way to increment the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of A2.
from then on the cells would always point to every odd row. i also dont
want
to stop at just a +2 increment but would like to increment the pointing
cell
by any value.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default increment cells in repeating formulas by something other than


Thank you, this worked great. Its amazing how 3 very differently written
formulas all allowed me to accomplish the same thing.

"T. Valko" wrote:

Here's a non-volatile method:

Entered in B1:

=INDEX(A$1:A$100,ROWS(B$1:B1)*2-1)

Copy down as needed. Adjust for the correct end of the range.

--
Biff
Microsoft Excel MVP


"Retrodog" wrote in message
...
i want to write a formula that when copied will increment the cell pointer
by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so on.
in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want
the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by only
extracting the odd cell numbers. i currently know no way to increment the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of A2.
from then on the cells would always point to every odd row. i also dont
want
to stop at just a +2 increment but would like to increment the pointing
cell
by any value.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default increment cells in repeating formulas by something other than

Welcome, glad it did.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Retrodog" wrote in message
...
Thanks, this worked perfectly.



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default increment cells in repeating formulas by something other than

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Retrodog" wrote in message
...

Thank you, this worked great. Its amazing how 3 very differently written
formulas all allowed me to accomplish the same thing.

"T. Valko" wrote:

Here's a non-volatile method:

Entered in B1:

=INDEX(A$1:A$100,ROWS(B$1:B1)*2-1)

Copy down as needed. Adjust for the correct end of the range.

--
Biff
Microsoft Excel MVP


"Retrodog" wrote in message
...
i want to write a formula that when copied will increment the cell
pointer
by
something other 1.

example
column A contains the numbers 1 in A1 and 2 in A2 and 3 in A3 and so
on.
in
B1 i want the formula (=A1) in B2 i want the formula (=A3) in B3 i want
the
formula (=A5) and so on.

the example tries to compress the data from column A into column B by
only
extracting the odd cell numbers. i currently know no way to increment
the
cell pointer number by anything other than 1.

i know this is not proper syntax but maybe this makes sense as a
fictional
example.

column A still has my numbers 1,2,3,4.... etc
in B1 i have this formula [=a(1+2)]
when i copy this formula into B2 it would then point to A3 instead of
A2.
from then on the cells would always point to every odd row. i also
dont
want
to stop at just a +2 increment but would like to increment the pointing
cell
by any value.






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
Repeating formulas.... DanF Excel Discussion (Misc queries) 2 June 27th 08 08:58 AM
Repeating Formulas Striderider Excel Worksheet Functions 2 May 25th 06 06:15 AM
repeating formulas by the same row or colum increment as the last. Formulas Excel Discussion (Misc queries) 1 February 24th 05 06:55 AM
repeating formulas by the same row or colum increment as the last. Formulas Excel Discussion (Misc queries) 0 February 24th 05 04:55 AM
repeating formulas by the same row or colum increment as the last. Formulas Excel Discussion (Misc queries) 0 February 24th 05 04:51 AM


All times are GMT +1. The time now is 03:38 AM.

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

About Us

"It's about Microsoft Excel"