Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to match date criteria then calculate an average of matches

I have a spreadsheet currently containing 2 sheets, the first sheet contains
raw data and several lines of information are tied to the same date which is
listed in column A, the data I want to sumarize is listed in columnar style
across the page. In the second sheet I want a summary by date, averages and
standard deviations. The second sheet also contains the date I'm looking to
match calculate. I know how to use the sumif and countif functions, but I
think this needs a combination of MATCH, AVERAGE, STDEV and OFFSET. I had
this working in another spreadsheet, but lost access to it in a move.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to match date criteria then calculate an average of matche

Sheet 1 column A contains dates that reoccur, column B contains data of
interest to calculate averages and standard deviations, also Row 1 contains
header or column title information. Sheet 2, or what I call the Summary
sheet, repeats the dates of interest (only once) in Column A, also has EXACT
same header list in Row 1. In cell B2 of Sheet 2 I want to average the
values from Sheet 1, with the same header (title) that match the date in cell
A2.

"T. Valko" wrote:

You need to be more specific. Where is the data you want to average?

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" <Buffy M. wrote in
message ...
I have a spreadsheet currently containing 2 sheets, the first sheet
contains
raw data and several lines of information are tied to the same date which
is
listed in column A, the data I want to sumarize is listed in columnar
style
across the page. In the second sheet I want a summary by date, averages
and
standard deviations. The second sheet also contains the date I'm looking
to
match calculate. I know how to use the sumif and countif functions, but I
think this needs a combination of MATCH, AVERAGE, STDEV and OFFSET. I had
this working in another spreadsheet, but lost access to it in a move.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to match date criteria then calculate an average of matche

See this screencap:

http://img103.imageshack.us/img103/369/avgat5.jpg

That shows the array formula** needed for the average. The array formula**
for the stdev uses the same structu

=AVERAGE(IF($A$3:$A$8=$A12,B$3:B$8))
=STDEV(IF($A$3:$A$8=$A12,B$3:B$8))

I put everything on the same sheet to make it easier to follow. All you need
to do is plug in the actual sheet name. Here's a tip that you might find
useful. Just like the screencap shows, I put everything on the same sheet.
After I've got all the formulas entered I'll then cut and paste the entire
block of formula data to the other sheet. Excel will automatically add the
sheet name for you. I find this to be easier than starting on the other
sheet and having to switch back and forth between sheets when writing the
formulas.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" wrote in message
...
Sheet 1 column A contains dates that reoccur, column B contains data of
interest to calculate averages and standard deviations, also Row 1
contains
header or column title information. Sheet 2, or what I call the Summary
sheet, repeats the dates of interest (only once) in Column A, also has
EXACT
same header list in Row 1. In cell B2 of Sheet 2 I want to average the
values from Sheet 1, with the same header (title) that match the date in
cell
A2.

"T. Valko" wrote:

You need to be more specific. Where is the data you want to average?

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" <Buffy M. wrote in
message ...
I have a spreadsheet currently containing 2 sheets, the first sheet
contains
raw data and several lines of information are tied to the same date
which
is
listed in column A, the data I want to sumarize is listed in columnar
style
across the page. In the second sheet I want a summary by date,
averages
and
standard deviations. The second sheet also contains the date I'm
looking
to
match calculate. I know how to use the sumif and countif functions,
but I
think this needs a combination of MATCH, AVERAGE, STDEV and OFFSET. I
had
this working in another spreadsheet, but lost access to it in a move.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to match date criteria then calculate an average of matche

Thanks T. Valko - Absolutely fantastic, much more straight-forward than my
previous path, obviously it was too cumbersome for me to recreate. I haven't
had much practice using arrays but this gets me off on the right foot!

"T. Valko" wrote:

See this screencap:

http://img103.imageshack.us/img103/369/avgat5.jpg

That shows the array formula** needed for the average. The array formula**
for the stdev uses the same structu

=AVERAGE(IF($A$3:$A$8=$A12,B$3:B$8))
=STDEV(IF($A$3:$A$8=$A12,B$3:B$8))

I put everything on the same sheet to make it easier to follow. All you need
to do is plug in the actual sheet name. Here's a tip that you might find
useful. Just like the screencap shows, I put everything on the same sheet.
After I've got all the formulas entered I'll then cut and paste the entire
block of formula data to the other sheet. Excel will automatically add the
sheet name for you. I find this to be easier than starting on the other
sheet and having to switch back and forth between sheets when writing the
formulas.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" wrote in message
...
Sheet 1 column A contains dates that reoccur, column B contains data of
interest to calculate averages and standard deviations, also Row 1
contains
header or column title information. Sheet 2, or what I call the Summary
sheet, repeats the dates of interest (only once) in Column A, also has
EXACT
same header list in Row 1. In cell B2 of Sheet 2 I want to average the
values from Sheet 1, with the same header (title) that match the date in
cell
A2.

"T. Valko" wrote:

You need to be more specific. Where is the data you want to average?

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" <Buffy M. wrote in
message ...
I have a spreadsheet currently containing 2 sheets, the first sheet
contains
raw data and several lines of information are tied to the same date
which
is
listed in column A, the data I want to sumarize is listed in columnar
style
across the page. In the second sheet I want a summary by date,
averages
and
standard deviations. The second sheet also contains the date I'm
looking
to
match calculate. I know how to use the sumif and countif functions,
but I
think this needs a combination of MATCH, AVERAGE, STDEV and OFFSET. I
had
this working in another spreadsheet, but lost access to it in a move.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to match date criteria then calculate an average of matche

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" wrote in message
...
Thanks T. Valko - Absolutely fantastic, much more straight-forward than my
previous path, obviously it was too cumbersome for me to recreate. I
haven't
had much practice using arrays but this gets me off on the right foot!

"T. Valko" wrote:

See this screencap:

http://img103.imageshack.us/img103/369/avgat5.jpg

That shows the array formula** needed for the average. The array
formula**
for the stdev uses the same structu

=AVERAGE(IF($A$3:$A$8=$A12,B$3:B$8))
=STDEV(IF($A$3:$A$8=$A12,B$3:B$8))

I put everything on the same sheet to make it easier to follow. All you
need
to do is plug in the actual sheet name. Here's a tip that you might find
useful. Just like the screencap shows, I put everything on the same
sheet.
After I've got all the formulas entered I'll then cut and paste the
entire
block of formula data to the other sheet. Excel will automatically add
the
sheet name for you. I find this to be easier than starting on the other
sheet and having to switch back and forth between sheets when writing the
formulas.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" wrote in
message
...
Sheet 1 column A contains dates that reoccur, column B contains data of
interest to calculate averages and standard deviations, also Row 1
contains
header or column title information. Sheet 2, or what I call the
Summary
sheet, repeats the dates of interest (only once) in Column A, also has
EXACT
same header list in Row 1. In cell B2 of Sheet 2 I want to average the
values from Sheet 1, with the same header (title) that match the date
in
cell
A2.

"T. Valko" wrote:

You need to be more specific. Where is the data you want to average?

--
Biff
Microsoft Excel MVP


"Buffy M. Warren" <Buffy M. wrote in
message ...
I have a spreadsheet currently containing 2 sheets, the first sheet
contains
raw data and several lines of information are tied to the same date
which
is
listed in column A, the data I want to sumarize is listed in
columnar
style
across the page. In the second sheet I want a summary by date,
averages
and
standard deviations. The second sheet also contains the date I'm
looking
to
match calculate. I know how to use the sumif and countif functions,
but I
think this needs a combination of MATCH, AVERAGE, STDEV and OFFSET.
I
had
this working in another spreadsheet, but lost access to it in a
move.








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
Calculate a SUMIF if criteria is between 2 date ranges Anthony P Excel Worksheet Functions 4 October 13th 06 05:12 PM
Calculate average based on date and other criteria Kycajun Excel Discussion (Misc queries) 3 July 14th 06 10:08 PM
Calculate a 30-day moving average based on the last x number of entries and date gimiv Excel Worksheet Functions 14 July 7th 06 12:49 PM
calculate average in a column based on criteria in another column sharon t Excel Discussion (Misc queries) 2 May 12th 06 06:07 PM
Calculate difference between 2 date and times with average Aeryn635 Excel Discussion (Misc queries) 1 December 15th 05 02:56 AM


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