Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default average values and reduce and simplify the worksheet

I have a Excel2003 worksheet containing 2 columns and more than 20,000 rows.
Column €œB€ lists the names of objects and column €œA€ lists the values of
repeated measurements for each object. The repeating times of measurement
vary from object to object. I will need to average the measurement values for
each object, and reduce the table to one object with one average value. Could
somebody tell me how to do this? Thanks.

Example:
From:
A B
1.8099 aa
1.8685 aa
1.8081 aa
2.0376 aa
1.4996 aa
1.984 aa
0.4723 bb
0.3107 bb
0.4174 bb
0.2281 cc
0.3621 cc
0.3618 cc
0.1087 cc
0.2929 cc
2.5983 dd
2.1616 dd


To:
1.8346 aa
0.4001 bb
0.2707 cc
2.38 dd

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default average values and reduce and simplify the worksheet

On May 22, 12:03*am, Omics wrote:
I have a Excel2003 worksheet containing 2 columns and more than 20,000 rows.
Column “B” lists the names of objects and column “A” lists the values of
repeated measurements for each object. The repeating times of measurement
vary from object to object. I will need to average the measurement values for
each object, and reduce the table to one object with one average value. Could
somebody tell me how to do this? Thanks.

Example:
From:
A * * * B
1.8099 *aa
1.8685 *aa
1.8081 *aa
2.0376 *aa
1.4996 *aa
1.984 * aa
0.4723 *bb
0.3107 *bb
0.4174 *bb
0.2281 *cc
0.3621 *cc
0.3618 *cc
0.1087 *cc
0.2929 *cc
2.5983 *dd
2.1616 *dd

To:
1.8346 *aa
0.4001 *bb
0.2707 *cc
2.38 * *dd

Omics,
You can do this with code, but here is a non code way. Highlight all
of the aa's bb's and so on. Click on Data/Filter.../Advanced Auto
Filter. Click on copy to another location. Choose said location.
then select uniques values. Then next to this new column of data add
this formula =SUMIF(B$2:B$17,E2,A$2:A$17)/COUNTIF(B$2:B$17,E2) If the
data is in a as numbers and B for what to lookup. Copy this down to
all cells. Then you can copy and paste special/ Values and then you
could delete the old stuff. If you want.

Thanks,
Jay
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default average values and reduce and simplify the worksheet

You can use a simpler array formula

=AVERAGE(IF(B2:B17=E2,A2:A17))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"jlclyde" wrote in message
...
On May 22, 12:03 am, Omics wrote:
I have a Excel2003 worksheet containing 2 columns and more than 20,000
rows.
Column “B” lists the names of objects and column “A” lists the values of
repeated measurements for each object. The repeating times of measurement
vary from object to object. I will need to average the measurement values
for
each object, and reduce the table to one object with one average value.
Could
somebody tell me how to do this? Thanks.

Example:
From:
A B
1.8099 aa
1.8685 aa
1.8081 aa
2.0376 aa
1.4996 aa
1.984 aa
0.4723 bb
0.3107 bb
0.4174 bb
0.2281 cc
0.3621 cc
0.3618 cc
0.1087 cc
0.2929 cc
2.5983 dd
2.1616 dd

To:
1.8346 aa
0.4001 bb
0.2707 cc
2.38 dd

Omics,
You can do this with code, but here is a non code way. Highlight all
of the aa's bb's and so on. Click on Data/Filter.../Advanced Auto
Filter. Click on copy to another location. Choose said location.
then select uniques values. Then next to this new column of data add
this formula =SUMIF(B$2:B$17,E2,A$2:A$17)/COUNTIF(B$2:B$17,E2) If the
data is in a as numbers and B for what to lookup. Copy this down to
all cells. Then you can copy and paste special/ Values and then you
could delete the old stuff. If you want.

Thanks,
Jay


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
How do I reduce the range of a saved worksheet? John Britten Excel Discussion (Misc queries) 3 September 4th 08 09:46 AM
How do I reduce the no. of rows & columns in a worksheet ? Anna Walton Excel Discussion (Misc queries) 2 May 30th 06 05:18 PM
simplify procedure to get rid of 0 error values in a spreadsheet Frederic Excel Worksheet Functions 1 February 8th 06 04:47 AM
HOW DO I REDUCE THE SIZE OF A WORKSHEET TO THE CURRENT USED CELLS RWood Excel Worksheet Functions 6 January 14th 06 07:12 PM
How do I reduce the worksheet size ? Rueben Excel Discussion (Misc queries) 3 May 25th 05 07:15 PM


All times are GMT +1. The time now is 01:18 PM.

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"