+ Reply to Thread
Results 1 to 6 of 6

Applying AVERAGEIFS on columns that include text

  1. #1
    Registered User
    Join Date
    08-31-2017
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    15

    Applying AVERAGEIFS on columns that include text

    Hello,

    I have columns of data that I apply AVERAGEIFS on with multiple criteria.
    Sometimes though, the averange range has text instead of numbers.
    I'm trying to have this text reported the same way, not necessarily an "average" of the text, but at least the first occurring text given the criteria.

    Does anyone have an idea how to achieve this?

    I have attached an example file to demonstrate my intention.
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Applying AVERAGEIFS on columns that include text

    Try: =IFERROR(AVERAGEIFS(C:C,A:A,F3,B:B,H3),LOOKUP(2,1/(A:A=F3)/(B:B=H3),C:C))
    Click the * to say thanks.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Applying AVERAGEIFS on columns that include text

    You can use this in J3:

    =IFERROR(AVERAGEIFS(C:C,A:A,F3,B:B,H3),INDEX(C$3:C$18,MATCH(1,(A$3:A$18=F3)*(B$3:B$18=H3),0))) Ctrl Shift Enter

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Applying AVERAGEIFS on columns that include text

    in J3
    =IFERROR(AVERAGEIFS(C:C,A:A,F3,B:B,H3),LOOKUP(2,1/((A:A=F3)*(B:B=H3)),C:C))

    NOTE: This only works because where you have text e.g. Germs and diploma has the same text and no values
    Same with Amoebas and degree.

    This will not work properly with a combination of text and numbers, e.g.

    Germs diploma dropped out
    Germs diploma 550
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    08-31-2017
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    15

    Re: Applying AVERAGEIFS on columns that include text

    Thank you guys.

    I managed to make 63falcondude's solution work in my actual file.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Applying AVERAGEIFS on columns that include text

    Happy to help. Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Applying INDIRECT within this AVERAGEIFS formula
    By milkychips in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2016, 04:46 AM
  2. How to include specified months in a AverageIfs Formula
    By cartica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2015, 11:11 AM
  3. [SOLVED] Editing a Macro to include multiple rows and include text formatting for leading zeros
    By missmea2005 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2014, 09:50 AM
  4. [SOLVED] How to get an AVERAGEIFS formula to not include cell in average, by triggering switch?
    By Carmstrong227 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-19-2013, 01:15 PM
  5. AVERAGEIFS() with criteria that a string NOT include specific text
    By tjnelso in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2013, 07:30 PM
  6. [SOLVED] Modifying AVERAGEIFS function to include certain data
    By Ezomz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-14-2013, 11:35 AM
  7. AVERAGEIFS Across Columns with different criteria
    By ltsolis in forum Excel General
    Replies: 4
    Last Post: 09-13-2011, 01:18 PM

Tags for this Thread

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