Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 183
Default How to average data with a dynamic range

Here is the problem I have

Col1 Col2
2.3 1
3.4 1
5.6 1
7.8 2
2.3 2
5.7 2
6.1 3
3.2 3

I want average the value in col 1 only when they have the same number in
col2.
please help! Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default How to average data with a dynamic range

Sharon, not sure the question. I think you could create a thrird column to
check and either put the average or the number you want then average. so for
the first line, =if(round(a1,0)=b1,a1) would put 2.3 in column 3 only if the
rounded amount (2) = 1. I did not see any matches in column 1 and 2 which is
why I am confused

"Sharon" wrote:

Here is the problem I have

Col1 Col2
2.3 1
3.4 1
5.6 1
7.8 2
2.3 2
5.7 2
6.1 3
3.2 3

I want average the value in col 1 only when they have the same number in
col2.
please help! Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default How to average data with a dynamic range

Hi Sharon

In cell C1
=SUMIF(B:B,ROW(C1),A:A)/COUNTIF(B:B,ROW(C1))
Copy down through C2:C3

--
Regards
Roger Govier

"Sharon" wrote in message
...
Here is the problem I have

Col1 Col2
2.3 1
3.4 1
5.6 1
7.8 2
2.3 2
5.7 2
6.1 3
3.2 3

I want average the value in col 1 only when they have the same number in
col2.
please help! Thanks!


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
dynamic range and data validation GSB Excel Worksheet Functions 3 July 17th 07 04:14 PM
dynamic data range and series Cass Calculator Charts and Charting in Excel 4 February 26th 07 01:55 AM
Ignore Data for Dynamic Range Dale Excel Worksheet Functions 1 December 8th 06 09:11 PM
Average dynamic data cells over a one hour period? forextrader Excel Discussion (Misc queries) 1 February 10th 06 09:04 AM
Dynamic Data Range dallin Excel Worksheet Functions 4 November 21st 05 07:21 PM


All times are GMT +1. The time now is 05:47 AM.

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"