+ Reply to Thread
Results 1 to 2 of 2

AverageIf

  1. #1
    Registered User
    Join Date
    02-22-2017
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    9

    AverageIf

    Hey guys, in a column (B) i have 2 letters H or A , and i wanna average the last 10 numbers if the letter in column B is H, i came up with this formula but the average doesn't seem to be the same if i do it manually. =AVERAGEIF($B$3:$B$100,"*H*",(OFFSET(C3,COUNT(C3:C100),0,-10)))

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: AverageIf

    One way:

    =AVERAGE(INDEX(C:C,N(IF(1,LARGE(INDEX((B$2:B$100="H")*(ROW(B$2:B$100)),0),{1,2,3,4,5,6,7,8,9,10})))))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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] Averageif
    By jemma_d in forum Excel General
    Replies: 2
    Last Post: 03-13-2017, 07:43 AM
  2. [SOLVED] AverageIF in VBA
    By bakeraj256 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2014, 02:58 PM
  3. Averageif
    By dohara in forum Excel General
    Replies: 8
    Last Post: 04-29-2014, 02:24 PM
  4. [SOLVED] help with =AVERAGEIF
    By Joshua Buche in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2014, 06:36 PM
  5. [SOLVED] AverageIF
    By Brennen81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2014, 03:31 PM
  6. =Averageif help
    By pmdcmatt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2013, 04:53 PM
  7. averageif
    By Ecel12 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-25-2011, 08:21 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