Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LP LP is offline
external usenet poster
 
Posts: 12
Default Conditional Averages with Multiple Columns

In Sheet1, I have 13 columns total (A = Location, B – M are Jan -
Dec)

A B C D E F
Location Jan Feb Mar Apr May
Hawaii 5 8 12 22 45
Denver 10 58 41 44 10
Hawaii 12 58 77 88 99



In Sheet2, Cell A1, B1 and C1 are manual input month fields and they
are expected to change randomly. For instance, tomorrow, A1 might be
Oct instead of Feb.

A1 B1 C1
Feb Mar Apr


In sheet2, is it possible to have Excel take the average of value in
Sheet1 based on location and the month set in A1, B1 and C1 ? For
example, Sheet2 would look like this:

A1 B1 C1 D1
Location Feb Mar Apr
Hawaii 8.5 44.5 55
Denver 10 41 44


Any thoughts will be greatly appreciated.

Thanks.

LP
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Conditional Averages with Multiple Columns

Why not make a pivot table?
Lots of info he

http://www.cpearson.com/excel/pivots.htm
http://peltiertech.com/Excel/Pivots/pivotstart.htm
http://www.contextures.com/xlPivot02.html
http://www.ozgrid.com/Excel/excel-pivot-tables.htm
http://www.techonthenet.com/excel/pivottbls/index.htm
http://www.dicks-blog.com/archives/2...le-parameters/
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"LP" wrote in message
...
In Sheet1, I have 13 columns total (A = Location, B – M are Jan -
Dec)

A B C D E F
Location Jan Feb Mar Apr May
Hawaii 5 8 12 22 45
Denver 10 58 41 44 10
Hawaii 12 58 77 88 99



In Sheet2, Cell A1, B1 and C1 are manual input month fields and they
are expected to change randomly. For instance, tomorrow, A1 might be
Oct instead of Feb.

A1 B1 C1
Feb Mar Apr


In sheet2, is it possible to have Excel take the average of value in
Sheet1 based on location and the month set in A1, B1 and C1 ? For
example, Sheet2 would look like this:

A1 B1 C1 D1
Location Feb Mar Apr
Hawaii 8.5 44.5 55
Denver 10 41 44


Any thoughts will be greatly appreciated.

Thanks.

LP


  #3   Report Post  
Posted to microsoft.public.excel.misc
LP LP is offline
external usenet poster
 
Posts: 12
Default Conditional Averages with Multiple Columns

On Jun 12, 3:18*pm, "Bernard Liengme"
wrote:
Why not make a pivot table?
Lots of info he

http://www.cpearson.com/excel/pivots...pivottable-par...
best wishes
--
Bernard V Liengme
Microsoft Excel MVPhttp://people.stfx.ca/bliengme
remove caps from email

"LP" wrote in message

...
In Sheet1, I have 13 columns total (A = Location, * B – M are Jan -
Dec)

A B C D E F
Location Jan Feb Mar Apr May
Hawaii 5 8 12 22 45
Denver 10 58 41 44 10
Hawaii 12 58 77 88 99

In Sheet2, Cell A1, B1 and C1 are manual input month fields and they
are expected to change randomly. *For instance, tomorrow, A1 might be
Oct instead of Feb.

A1 B1 C1
Feb Mar Apr

In sheet2, is it possible to have Excel take the average of value in
Sheet1 based on location and the month set in A1, B1 and C1 ? * For
example, Sheet2 would look like this:

A1 * * * * * * * * * *B1 * * * * *C1 * * * * * * D1
Location * * * * * *Feb * * * *Mar * * * * * Apr
Hawaii * * * * * * * 8.5 * * * * 44.5 * * * * *55
Denver * * * * * * * 10 * * * * *41 * * * * * * 44

Any thoughts will be greatly appreciated.

Thanks.

LP



Thanks..but Pivot is not an option at this time because it these
results will be linked to other charts and graphs. In addition, I find
that a lot of people forget to refresh tables which tends to cause a
lot of errors. Any other thoughts?

LP
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Conditional Averages with Multiple Columns

On Sheet1 I have your locations in column A and the range is called MyPlaces
In B1:M1 I have: Jan, Feb , Mar... Dec That range is called MyYear
In B2:M4 I have your numbers

On Sheet2
In A2:A3 I have Hawaii and Denver
In B1:M1 I have: Jan, Feb , Mar
In B2 I have the formula
=SUMPRODUCT(($A2=MyPlaces)*(B$1=MyYear)*RawData)
This is copied down and across, giving
A1 B1 C1 D1
Location Feb Mar Apr
Hawaii 66 89 110
Denver 58 41 44


Now if I could only workout what you were averaging!
Would you like me to send you a file?
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"LP" wrote in message
...
On Jun 12, 3:18 pm, "Bernard Liengme"
wrote:
Why not make a pivot table?
Lots of info he

http://www.cpearson.com/excel/pivots...pivottable-par...
best wishes
--
Bernard V Liengme
Microsoft Excel MVPhttp://people.stfx.ca/bliengme
remove caps from email

"LP" wrote in message

...
In Sheet1, I have 13 columns total (A = Location, B – M are Jan -
Dec)

A B C D E F
Location Jan Feb Mar Apr May
Hawaii 5 8 12 22 45
Denver 10 58 41 44 10
Hawaii 12 58 77 88 99

In Sheet2, Cell A1, B1 and C1 are manual input month fields and they
are expected to change randomly. For instance, tomorrow, A1 might be
Oct instead of Feb.

A1 B1 C1
Feb Mar Apr

In sheet2, is it possible to have Excel take the average of value in
Sheet1 based on location and the month set in A1, B1 and C1 ? For
example, Sheet2 would look like this:

A1 B1 C1 D1
Location Feb Mar Apr
Hawaii 8.5 44.5 55
Denver 10 41 44

Any thoughts will be greatly appreciated.

Thanks.

LP



Thanks..but Pivot is not an option at this time because it these
results will be linked to other charts and graphs. In addition, I find
that a lot of people forget to refresh tables which tends to cause a
lot of errors. Any other thoughts?

LP


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
Conditional Average with Multiple Columns LP Excel Discussion (Misc queries) 0 June 12th 08 09:10 PM
Conditional Result based on Multiple Columns AnnArborBrian Excel Worksheet Functions 6 May 10th 08 02:29 PM
Conditional averages HARSH BAHAL Excel Worksheet Functions 4 June 15th 07 06:20 AM
How do I apply conditional formulas across multiple columns? ansoriano1 Excel Worksheet Functions 2 August 25th 06 04:49 PM
Conditional Averages Kris Andersen Excel Discussion (Misc queries) 1 March 22nd 06 07:29 PM


All times are GMT +1. The time now is 04:37 AM.

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"