+ Reply to Thread
Results 1 to 2 of 2

Averaging random cells based on criteria

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Averaging random cells based on criteria

    Hi, I have a large spreadsheet that I want to collect averages from based on meeting certain criteria and returning a blank cell if criteria not met. I thought I should be using the averageifs function but can't seem to get it to work. In attached example I want to show the average figure in columns "e2, j2, o2, t2, y2, ad2 and ai2 if cell a$2:a$6 = a14 " returning a blank if no match. Any suggestions please.
    Attached Files Attached Files

  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,728

    Re: Averaging random cells based on criteria

    You can use this formula in B14:

    =IFERROR(SUMPRODUCT(($A$1:$AI$1="TotalYield")*($A$2:$A$6=$A14),$A$2:$AI$6)/SUMPRODUCT(($A$1:$AI$1="TotalYield")*($A$2:$A$6=$A14)),"")

    Use a Custom Format of 0.0;-0.0;; to hide zeros.

    Hope this helps.

    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. Replies: 6
    Last Post: 08-07-2018, 09:25 AM
  2. [SOLVED] Summing/Averaging Totals Based off Date Criteria
    By KoolKatelyn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2017, 03:18 PM
  3. [SOLVED] Need your help averaging based on month & other criteria
    By hennakao in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-14-2017, 10:13 AM
  4. Selecting random cells based on criteria
    By JamesTrethowan in forum Excel General
    Replies: 8
    Last Post: 10-28-2015, 11:15 AM
  5. Averaging data if cells in range meet criteria
    By gobbledok in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 02:28 AM
  6. [SOLVED] Excel 2007 : Averaging across rows based on some criteria
    By cde1983 in forum Excel General
    Replies: 5
    Last Post: 05-15-2010, 07:06 AM
  7. averaging a column based on criteria andputting result in new worksheet
    By BadLilBrat in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2007, 03:01 PM

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