+ Reply to Thread
Results 1 to 2 of 2

Climate data w/multiple stations reporting data from the same date->consolidating rows?

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010, Word 2010, VBA2010, PowerPoint2010, Access2010
    Posts
    1

    Question Climate data w/multiple stations reporting data from the same date->consolidating rows?

    Hello all!



    *Please see the example file here: climate data.xlsx



    I am doing research using climate data with the following parameters arranged as rows left-to-right:
    • Date (mm/yyyy)
    • StationID
    • Extreme MinT
    • Mean MinT
    • Average MeanT
    • Mean MaxT
    • Extreme MaxT

    Dates repeat as there are multiple monitoring stations coming online for a couple of years then falling offline. Eventually the original station no longer reports data at all in which case I must switch primary stations.

    Some stations do not report full data and are thus deleted altogether. However, the problem arises when there are multiple monitoring stations reporting slight non-anomalous variations in data. For these rows, there are duplicate dates.

    For example:
    A B C D E F G
    DATE STATION Extreme MinT Mean MinT Average MeanT Mean MaxT Extreme MaxT
    1/1939 Station1 -13.3 -4.3 -.1 4.1 13.9
    1/1939 Station2 -12.8 -3.3 .3 3.9 14.4


    I wish to format the data as such:
    =average(C:G)
    but only for each set of duplicated months.

    In short, for the monitoring stations that have reported data for the same month, I wish to take an average of that data and use that to consolidate the rows so there are no duplicate months. The StationID column values in each cell can be erased as well during this process if need be.


    Thanks in advance for any help or direction I may be given!
    Andrew.

    P.S. I am familiar with VBA and can use it if needed to solve this issue.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Climate data w/multiple stations reporting data from the same date->consolidating rows

    Hello and welcome to the forum,

    Are you sure you want to average across columns and not across rows? Could you add a sheet showing how you would do this by hand?

    Fastest way I can think of would be to use a scripting dictionary and date/year as the key. If the key is used before then it averages each item from the columns and when all done prints it all to a new sheet.

    I'm putting my thoughts down here because it's late and I might not be able to do this tonight. If anyone wants to continue using my idea, please feel free to do so.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ 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. Consolidating data across multiple rows
    By mrtrick8586 in forum Excel General
    Replies: 1
    Last Post: 02-22-2011, 11:09 AM
  2. Consolidating multiple rows of data into single row
    By fredenbp4 in forum Excel General
    Replies: 3
    Last Post: 11-05-2009, 01:14 AM
  3. consolidating multiple rows of similar data
    By opticsnake in forum Excel General
    Replies: 2
    Last Post: 10-16-2009, 03:23 PM
  4. Help Consolidating Data from multiple rows
    By souljive99 in forum Excel General
    Replies: 2
    Last Post: 06-10-2009, 06:34 AM
  5. Consolidating data from multiple rows in one row
    By darX in forum Excel General
    Replies: 1
    Last Post: 03-04-2009, 06:51 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