+ Reply to Thread
Results 1 to 5 of 5

How do you calculate the many averages in Column 2 (based on Column 1 data)?

  1. #1
    Registered User
    Join Date
    10-26-2014
    Location
    Vancouver, United States
    MS-Off Ver
    2007 and 2010
    Posts
    2

    How do you calculate the many averages in Column 2 (based on Column 1 data)?

    Hello,

    I use Microsoft Excel 2007. As shown in the attached file, Column A contains years (from 1895 to 2006), Column B contains months, and Column C contains temperature. I need to calculate the average temperature for each year. How can I do that?

    Thanks.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,957

    Re: How do you calculate the many averages in Column 2 (based on Column 1 data)?

    I have not had tiome to look at your file, but take a look at the AVERAGIF() and AVERAGEIFs() functions for this
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: How do you calculate the many averages in Column 2 (based on Column 1 data)?

    FortJames(1).xlsx

    If I wanted the average for all the years I'd do a pivot table like this but if you only want one years data you could do what I've done in the top of sheet 1 using an averageif statement
    Happy with my advice? Click on the * reputation button below

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,957

    Re: How do you calculate the many averages in Column 2 (based on Column 1 data)?

    Based on your table, create a list of dates as shown below....

    E
    F
    2
    1895
    0.441667
    3
    1896
    -0.84167
    4
    1897
    1.083333
    5
    1898
    2.908333
    6
    1899
    0.716667
    7
    1900
    -1.04167
    8
    1901
    0.433333
    9
    1902
    0.666667
    10
    1903
    1.533333
    11
    1904
    1.583333


    F2=AVERAGEIF($A$2:$A$1343,E2,$C$2:$C$1343) copied down

  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: How do you calculate the many averages in Column 2 (based on Column 1 data)?

    Hi,

    find the attached file with If condition & Average if function

    Punnam
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Generating averages in a blank column based on information in column 1 and 2
    By LindseyKeller in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2014, 10:55 AM
  2. Need to calculate average for a column based on moving start column
    By BonnD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-03-2013, 08:35 AM
  3. Calculate standard deviation for column based on column heading
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 04:25 PM
  4. [SOLVED] Formula to calculate sum of column range based on presence of value in another column
    By abreet in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-23-2012, 10:37 PM
  5. Replies: 0
    Last Post: 02-04-2005, 03:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1