+ Reply to Thread
Results 1 to 5 of 5

Average(If( with multiple criteria including a letter

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    6

    Average(If( with multiple criteria including a letter

    Hi
    Any help would be appreciated.

    The part of the formula I have written below works in another workbook if I am checking for the number 2
    AVERAGE(IF((INDIRECT($U$5): (INDIRECT($W$5))=A6)*((OFFSET(INDIRECT($U$5);0;-2)): (OFFSET(INDIRECT($W$5);0;-2))=2)

    But in a new workbook I need to check for L not 2

    The cells I am searching could contain
    L01 so I need True
    L02 so I need True
    126 so I need False
    L167 so I need True

    The complete formula is searching for 2 criteria and returns the average of the last 6 rows from Column Z that meet those criteria. It works when I am searching for 2

    I don't know why I have a grimace face instead of a colon.
    Thanks a lot
    Last edited by wakisme; 03-22-2019 at 05:03 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,090

    Re: Average(If( with multiple criteria including a letter

    Try typing a closing bracket and a colon and you’ll find out.

    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-02-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Average(If( with multiple criteria including a letter

    Hi Ali
    Thanks I can now see smilies on
    Could you advise if I am able to turn smilies off for this post so I can add my entire formula.

  4. #4
    Registered User
    Join Date
    12-02-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Average(If( with multiple criteria including a letter

    Hi
    I think I have sorted this problem with a 'helper' cell but I will still appreciate any alternative solutions.
    In the 'helper' cell U10 I have the Text L01
    New formula that appears to be working is
    AVERAGE(IF((INDIRECT($U$5): (INDIRECT($W$5))=A6)*((OFFSET(INDIRECT($U$5);0;-2)): (OFFSET(INDIRECT($W$5);0;-2))>=U10)
    Thanks
    Last edited by wakisme; 03-22-2019 at 05:02 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,090

    Re: Average(If( with multiple criteria including a letter

    Just add spaces to the formula to remove the smilies:

    =AVERAGE(IF((INDIRECT($U$5)INDIRECT($W$5) ) =A6)*((OFFSET(INDIRECT($U$5);0;-2) ) OFFSET(INDIRECT($W$5);0;-2))>=U10)

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

+ 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. average with multiple criteria including OR
    By RAYCHLICKLEY in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2017, 09:54 AM
  2. [SOLVED] Add if multiple criteria met including some criteria that share a column
    By HelenClark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2017, 11:36 AM
  3. Count which includes multiple columns including multiple criteria
    By Zou in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2017, 10:43 AM
  4. Using Multiple Criteria (Including Dates) for a Vlookup
    By PaulMcCudden in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-23-2015, 01:16 PM
  5. Replies: 16
    Last Post: 05-25-2015, 08:51 AM
  6. Looking for last entry using multiple criteria including date
    By ayrmad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2013, 11:36 PM
  7. sumif with multiple criteria (including daterange)
    By TPS Tom in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-28-2011, 07:43 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