+ Reply to Thread
Results 1 to 7 of 7

Return average and count from multiple criteria in a list or array of data

  1. #1
    Registered User
    Join Date
    08-06-2008
    Location
    LONDON
    Posts
    10

    Return average and count from multiple criteria in a list or array of data

    Hello,

    I have a tough one here (for me anyway!) Please see attached.
    I have 2 sheets.

    I need a formula that will return the correct average and counts from sheet 2 based on specified criteria in the first 2 columns viz Brief # and Duration

    On sheet 2 I have indicated what the answers should be (all colour coded) based on the data in sheet2(A:F). I however want the answers on sheet 1 as indicated.

    I am sure this is an array formula, but cant seem to figure it out !!


    Any help is MUCH appreciated.

    Regards
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    See attached...

    All formulas are array formulas and must be entered with CTRL+SHIFT+ENTER instead of just ENTER.

    Note: I changed you duration entries into actual numeric strings so that I could compare against column A.

    I am also unsure why/how there is no distinction made between Scotland and Factual.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-06-2008
    Location
    LONDON
    Posts
    10
    Hello,

    Thanks so much, you are correct, I have adjusted the file slightly to include a 3rd match criteria - viz supplier. Please see attached.

    Thanks again for excellent help!
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    See attached for revisions....
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-06-2008
    Location
    LONDON
    Posts
    10

    Apply

    Hi,

    Thanks again, I have tried to apply it to the huge list that I have (25000 rows and 10 columns) and it is returning 0 for all items. I am proably being really thick, but are there any other rules I should be aware of other than ctrl+shift+enter?

    I have looked at the formats and made sure the column header match the downlaod sheet etc

    Sorry for being a pain, but please could youlet me know what I did wrong on the attached (highlgihted in yellow)

    Thanks
    Attached Files Attached Files
    Last edited by robcosta; 08-18-2008 at 04:30 AM. Reason: Attachment needed

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    It seems you've changed the format of column B in the Model tab?

    Anyways, you don't need the Time() function anymore...

    Try this in H3:

    Please Login or Register  to view this content.
    You will need to make the same adjustments for other formulas....
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-06-2008
    Location
    LONDON
    Posts
    10

    Slow Process

    Hi,

    Thanks, that has worked wonders! Could I ask another question please?

    It is taking about 10 minutes on average to calculate everytime I save or open the file. I have core duo pentium and it is using both processors. I have tried about 4 computers and it take longer on some even with large available RAM etc. Is this because I have such a large array (27000 rows and 14 columns). The array formula is nesting 6 times, is it just too much for Excel to handle?

    Thanks again?

+ 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