Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 148
Default How do I increment from cell to cell by 10?

I have an excel spreadsheet that has 50,000 rows and all info ins in one
column. I would like to consolidate it to 10,000. When I go to B1 and put in
=average(A1:A2500) it averages fine. However when copying this code and
pasting it in B2 the formula turns into =average(A2:A2501). I would like to
have these numbers increment by 10 instead of 1. Is this possible? Please let
me know!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default How do I increment from cell to cell by 10?

So the desired formula in B2 would range from a10:a2510? If you could
post your desired results for b2, b3, b4 we can probably figure out the
right way to go.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 751
Default How do I increment from cell to cell by 10?

=AVERAGE(OFFSET($A$1:$A$2500,(ROW()-1)*10,0))

HTH
Kostis Vezerides


Danny wrote:
I have an excel spreadsheet that has 50,000 rows and all info ins in one
column. I would like to consolidate it to 10,000. When I go to B1 and put in
=average(A1:A2500) it averages fine. However when copying this code and
pasting it in B2 the formula turns into =average(A2:A2501). I would like to
have these numbers increment by 10 instead of 1. Is this possible? Please let
me know!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 148
Default How do I increment from cell to cell by 10?

Thank you so much. It worked perfectly!

"vezerid" wrote:

=AVERAGE(OFFSET($A$1:$A$2500,(ROW()-1)*10,0))

HTH
Kostis Vezerides


Danny wrote:
I have an excel spreadsheet that has 50,000 rows and all info ins in one
column. I would like to consolidate it to 10,000. When I go to B1 and put in
=average(A1:A2500) it averages fine. However when copying this code and
pasting it in B2 the formula turns into =average(A2:A2501). I would like to
have these numbers increment by 10 instead of 1. Is this possible? Please let
me know!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How do I increment from cell to cell by 10?

In B1 enter
=AVERAGE(INDIRECT("A"&1+10*(ROW()-1)&":A"&2500+10*(ROW()-1)))
and copy down the column.
This will average the average ranges
A1:A2500
A11:A2510
A21:A2520
A31:A2530
A41:A2540
A51:A2550

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Danny" wrote in message
...
I have an excel spreadsheet that has 50,000 rows and all info ins in one
column. I would like to consolidate it to 10,000. When I go to B1 and put
in
=average(A1:A2500) it averages fine. However when copying this code and
pasting it in B2 the formula turns into =average(A2:A2501). I would like
to
have these numbers increment by 10 instead of 1. Is this possible? Please
let
me know!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default How do I increment from cell to cell by 10?

Try this non-volatile:

=AVERAGE(INDEX(A:A,10*ROWS(1:1)-9):INDEX(A:A,10*ROWS($1:1)+2490))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Danny" wrote in message
...
I have an excel spreadsheet that has 50,000 rows and all info ins in one
column. I would like to consolidate it to 10,000. When I go to B1 and put
in
=average(A1:A2500) it averages fine. However when copying this code and
pasting it in B2 the formula turns into =average(A2:A2501). I would like
to
have these numbers increment by 10 instead of 1. Is this possible? Please
let
me know!


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default How do I increment from cell to cell by 10?

Hi RD

=AVERAGE(INDEX(A:A,10*ROWS(1:1)-9):INDEX(A:A,10*ROWS($1:1)+2490))


Much nicer solution but I think you may be missing one $ sign

=AVERAGE(INDEX(A:A,10*ROWS($1:1)-9):INDEX(A:A,10*ROWS($1:1)+2490))


--
Regards

Roger Govier


"RagDyer" wrote in message
...
Try this non-volatile:

=AVERAGE(INDEX(A:A,10*ROWS(1:1)-9):INDEX(A:A,10*ROWS($1:1)+2490))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may
benefit !
---------------------------------------------------------------------------
"Danny" wrote in message
...
I have an excel spreadsheet that has 50,000 rows and all info ins in
one
column. I would like to consolidate it to 10,000. When I go to B1 and
put in
=average(A1:A2500) it averages fine. However when copying this code
and
pasting it in B2 the formula turns into =average(A2:A2501). I would
like to
have these numbers increment by 10 instead of 1. Is this possible?
Please let
me know!




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default How do I increment from cell to cell by 10?

That seems to always be my problem ... losing dollars!<bg

Thanks Roger.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Roger Govier" wrote in message
...
Hi RD

=AVERAGE(INDEX(A:A,10*ROWS(1:1)-9):INDEX(A:A,10*ROWS($1:1)+2490))


Much nicer solution but I think you may be missing one $ sign

=AVERAGE(INDEX(A:A,10*ROWS($1:1)-9):INDEX(A:A,10*ROWS($1:1)+2490))


--
Regards

Roger Govier


"RagDyer" wrote in message
...
Try this non-volatile:

=AVERAGE(INDEX(A:A,10*ROWS(1:1)-9):INDEX(A:A,10*ROWS($1:1)+2490))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Danny" wrote in message
...
I have an excel spreadsheet that has 50,000 rows and all info ins in one
column. I would like to consolidate it to 10,000. When I go to B1 and
put in
=average(A1:A2500) it averages fine. However when copying this code and
pasting it in B2 the formula turns into =average(A2:A2501). I would like
to
have these numbers increment by 10 instead of 1. Is this possible?
Please let
me know!





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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


All times are GMT +1. The time now is 04:53 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"