Automating row grouping for 1200 rows

  • Thread starter Thread starter Jayant Kumar
  • Start date Start date
J

Jayant Kumar

Hi all,
I'm new to excel, so need some help with this.
I have a total of 1200 rows with 10 data items in each row. I need to
group these rows into sets of 2's (1 and 2; 3 and 4; 5 and 6...) and
obtain the average of each of these row combinations.
Then I need to repeat the same procedure for 3 rows at a time.
What is the best way to go about doing this?

TIA,
Jayant
 
Hi
you could use a helper column with a formula like
=INT((ROW()-1)/2)+1
and copy this down

After this you could for example create a pivot table or use an array
formula like
=AVERAGE(IF(B1:B1200=1),A1:A1200))
for the first group (row 1+2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top