+ Reply to Thread
Results 1 to 5 of 5

= find B12 in 1:1 and return average of numbers in that column where A13 matches in A:A

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Copenhagen
    MS-Off Ver
    14.0.6123.5001
    Posts
    14

    Question = find B12 in 1:1 and return average of numbers in that column where A13 matches in A:A

    That is an awful title, I know. Sorry

    I've attached a little image that might be more explanatory.

    I'm looking for the formular to fill in B13:D15.

    As far as I've gotten is: ArrayFormula(IFERROR(SUMIFS(B2:B8,A2:A8,$A13)/COUNTIF(A2:A8,$A13),""))

    And the formular for B12:D12 is: ArrayFormula(IFERROR(INDEX(1:1,SMALL(IFERROR(COLUMN(12:12)/(ISNUMBER(SEARCH("Category",1:1))),FALSE),COLUMN(A:A))),""))

    I guess somewhere down the line these have to be merged... But how and where?!

    PS. this is Google Sheets so AGGREGATE doesn't work.

    Anybody?

    Kindly,
    Rasmus

    Formula.png
    Last edited by Schultze; 03-16-2018 at 10:01 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: = find B12 in 1:1 and return average of numbers in that column where A13 matches in A:

    Do you have the AVERAGEIFS function in Google sheets?

    Pete

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: = find B12 in 1:1 and return average of numbers in that column where A13 matches in A:

    Try

    =AVERAGEIF($A$2:$A$8,$A13,INDEX($B$2:$F$8,0,MATCH(B$12,$B$1:$F$1,0)))

  4. #4
    Registered User
    Join Date
    08-27-2012
    Location
    Copenhagen
    MS-Off Ver
    14.0.6123.5001
    Posts
    14

    Re: = find B12 in 1:1 and return average of numbers in that column where A13 matches in A:

    Pete_UK - there is
    Jonmo1 - YES! Much more simple than was I was getting myself into. Trees and forests, you know...

    Cheers!!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: = find B12 in 1:1 and return average of numbers in that column where A13 matches in A:

    Jonmo1 beat me to it.

    Glad you got your solution.

    Pete

+ 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. [SOLVED] average whole column if header matches criteria
    By doylzer in forum Excel General
    Replies: 6
    Last Post: 09-22-2014, 08:20 AM
  2. [SOLVED] Find all matches, count them and return all the corresponding items
    By strabgus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-18-2014, 11:08 AM
  3. Formula to find matches and return Yes or No
    By hammer2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2014, 02:19 AM
  4. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  5. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  6. Formula to find all matches in column A and return cells from column C
    By GenericPat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2012, 04:56 PM
  7. [SOLVED] Macro required to find matches and return value in the next column.
    By excelvba123 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-09-2012, 03:33 AM

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