+ Reply to Thread
Results 1 to 4 of 4

Array formulas for a large dataset

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    White Base
    MS-Off Ver
    Excel 2010
    Posts
    7

    Array formulas for a large dataset

    Hi all

    Apologies in advance if this is the wrong section for this. At the moment, I'm trying to create a macro that involves an array formula that will allow me to search for hourly data under a certain criteria and calculate the average data for each hour of the day. Would anyone be able to say how this is possible? I've been thinking of using a lookup or vlookup function except doing so returns exact values for the criteria. The problem with that is the criteria (lookup value) doesn't match with the table array and I'm not allowed to change either one. Also I've been wondering how to create such an array function without selecting the hourly data as each month, the data changes and may not be in the same cell ranges. Thanks in advance!
    Attached Files Attached Files
    Last edited by Freedan; 05-25-2012 at 10:06 AM.

  2. #2
    Registered User
    Join Date
    04-09-2012
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Array formulas for a large dataset

    Freedan,

    Can you please attach a Sample File. That will make easier to help you.

  3. #3
    Registered User
    Join Date
    05-25-2012
    Location
    White Base
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Array formulas for a large dataset

    Thank you Pulsus

    I edited my post with an attached sample. What I'm essentially hoping to do is create an array formula that calculates the hourly averages and places the results in sheet 2 where the averages are collected and automate the process of calculating the averages for each product (Relayserve Base and Max). I'm trying to do this by creating an array formula recorded in a macro that will allow me to fill out the averages in sheet to without having to do it manually. Since the cell ranges change each month I extract raw data from a database, I'm trying to do this without having to select the hourly data in sheet 1 for the formula. Even knowing if such a thing is impossible would help me quite a bit. Thank you ^.^

  4. #4
    Registered User
    Join Date
    04-09-2012
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Array formulas for a large dataset

    Freedan,

    I think this is what are you looking for. I didn´t use a macro, but a function -- DAVERAGE -- that calculate the average of a criteria.

    I make this for 10.000 lines, is that enought?

    Hope this can help, here is the file:

    Sample(1).xlsx
    Last edited by Pulsus; 05-25-2012 at 12:49 PM. Reason: Added some info.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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