+ Reply to Thread
Results 1 to 5 of 5

Average Cell Formula Help

  1. #1
    Registered User
    Join Date
    06-09-2019
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    3

    Average Cell Formula Help

    Hey guys, I'm having difficulty trying to get an average result using multiple named ranges, so was wondering if anyone can help me with this formula. I don't use Excel very often for this sort of thing, so don't know if it's possible, if I'm making it too complicated, or if I'm just missing something. I have attached screenshots to try and make it easier to explain.

    The average result I'm trying to achieve is in cell Q34, the results for "Adam". Effectively, it is data taken from "Intro HSI" and "Experience HSI" that I am looking for the average from. The formula works and provides the average as required when data is input in to cells E4, E6, E21 and E23.

    However, if there is no data in E4 and E6, only in E21 and E23, cell Q34 returns "#DIV/0!". Likewise, if there is no data in E21 and E23, only in E4 and E6, cell Q34 returns "#DIV/0!".

    I need cell Q34 to be able to give me an average if the date in column E is complete for both "Intro" and "Experience", or if only one or the other has data present. The "Leader" in column C is variable, and could appear in multiple rows, so the formula can't be based on the cells in column C, they are in a named range.

    If anyone can help with the formula, or knows a better way to go about this, I would really appreciate it.

    Cheers

    Screenshot (1).png
    Screenshot (2).png
    Screenshot (3).png

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Average Cell Formula Help

    I may have misunderstood but perhaps the below would for you?

    =AVERAGE(CHOOSE({1,2},IFERROR(AVERAGEIF(intro_leaders,leaders,intro_support),FALSE),IFERROR(AVERAGEIF(experience_leader,leaders,experience_support),FALSE)))

    the above would return the AVERAGE of the AVERAGEIFS, and ignore either/or AVERAGEIF if #DIV/0!
    if both AVERAGEIFs were returning #DIV/0! then #DIV/0! would be returned by the outer AVERAGE.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Average Cell Formula Help

    @APCB
    in the future please post a sample sheet. Pics are nice to look at, but useless to work with (click Go advanced - Manage attachments)
    Thanks

  4. #4
    Registered User
    Join Date
    06-09-2019
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    3

    Re: Average Cell Formula Help

    XLent - That worked a treat, thanks so much for that!

    Pepe - That makes sense, didn't even realise that was an option, I will for future.

    Thanks guys.

  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
    80,830

    Re: Average Cell Formula Help

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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: 7
    Last Post: 05-23-2017, 10:42 AM
  2. [SOLVED] Cell being ignored in Average formula
    By Bleveck90 in forum Excel General
    Replies: 5
    Last Post: 11-11-2015, 07:43 PM
  3. Is there a formula that will highlight a cell that is below an average
    By Snowwhite969 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2015, 08:46 PM
  4. [SOLVED] need formula to average cells but if one cell has N/A then dont average and input N/A
    By CityInspector in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 04:16 PM
  5. Formula to calculate average of every other cell
    By froffel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-05-2009, 02:39 PM
  6. Formula to calculate average of every other cell
    By froffel in forum Excel General
    Replies: 1
    Last Post: 10-29-2009, 11:58 AM
  7. Limit a cell with average formula to 100%
    By Tony Vargo in forum Excel General
    Replies: 2
    Last Post: 08-07-2009, 10:19 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