+ Reply to Thread
Results 1 to 3 of 3

Formula - Audit data requiring combining averages (but not count some cells)

  1. #1
    Registered User
    Join Date
    11-10-2019
    Location
    Australia
    MS-Off Ver
    15.12.3 (2015 Mac)
    Posts
    2

    Formula - Audit data requiring combining averages (but not count some cells)

    Hi all,

    I am fairly average at using excel and need some suggestions on a formula (example data attached).

    I have 5 example questions from an audit (B8:B12) with varying percentages of compliance (C8:E12). The number of audits completed are shown at the bottom of each column (C15:E15). I want to average the months of jan-mar data into the final column (F8:F12). Easy enough. But the formula has to not count any data with N/A or blank cells, and hence not include those audits (at the bottom of the column) into the average.

    Also as a preference I would like it if hypothetically jan, feb and march all had N/A or blank cells, that the combined average jan-mar cell would state N/A or blank. But this is not a major issue. It would just mean less editing ultimately. (lots of data and ongoing audits being completed - so it would be good to have a formula that addressed all of this)

    Any suggestions would be appreciated. Like I said I am very mediocre at using excel so there could be a relatively simple solution.


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Formula - Audit data requiring combining averages (but not count some cells)

    Try this is F8 and copy down.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    11-10-2019
    Location
    Australia
    MS-Off Ver
    15.12.3 (2015 Mac)
    Posts
    2

    Re: Formula - Audit data requiring combining averages (but not count some cells)

    Legend!! Almost worked. Only issue was that if all three cells were blank it would still state N/A. I re-worked the formula using your idea and came up with:

    =IF(OR(ISNUMBER(C8), ISNUMBER(D8), ISNUMBER(E8)), ((IF(ISNUMBER(C8),(C8*C$15),0))+(IF(ISNUMBER(D8), (D8*D$15),0))+(IF(ISNUMBER(E8), (E8*E$15),0)))/(IF(ISNUMBER(C8),C$15,0)+IF(ISNUMBER(D8), D$15, 0)+IF(ISNUMBER(E8), E$15, 0)), (IF(OR(ISTEXT(C8),ISTEXT(D8),ISTEXT(E8)),"N/A", (IF(OR(ISBLANK(C8),ISBLANK(D8),ISBLANK(E8)),"",0)))))

    Which does the trick. Basically reworked to solve numbers first then text then blank, rather than text and blank then solve numbers.

    Not sure if that made sense but you helped me out heaps.

    Cheers mate.

+ 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. Age Formula requiring IF, IFERROR Formula for programmatic data
    By BlueBunny in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2019, 06:49 AM
  2. Replies: 6
    Last Post: 12-14-2016, 12:36 PM
  3. [SOLVED] Average Formula that averages certain cells based on how i filter.
    By phbryan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2015, 04:07 PM
  4. Replies: 4
    Last Post: 05-20-2014, 07:11 PM
  5. [SOLVED] Count/Sum Formula for large audit (150 tabs)
    By markk2011 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-26-2013, 01:51 PM
  6. Count if function for audit checklist
    By eddienole in forum Excel General
    Replies: 3
    Last Post: 02-22-2012, 05:13 PM
  7. Using Colored Cells to Highlight Cells Requiring Data
    By curtis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2010, 09:27 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