+ Reply to Thread
Results 1 to 3 of 3

Formulas working on one spreadsheet but not on another

Hybrid View

  1. #1
    Registered User
    Join Date
    10-25-2018
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    9

    Formulas working on one spreadsheet but not on another

    Hello all,

    I have managed to make a solution work on one spread sheet, but when relaying it into another spread sheet, I am getting errors.

    See the attached workbook wherein I have managed to make the formula in cell G10 work.

    However when applying to another Excel document the AVERAGEIFS formula returns a DIV/0 error; the formula or function used is dividing by zero or empty cells.

    In this new spread sheet, the table array being referenced has no empty cells, cells with N/A or any other errors. However when I run a filter across the headers in the top of the table array, it picks up blanks. There are blank cells beneath the referenced table array, but these are not included in the cells I have referenced in the formula so I don't understand how they could be the cause of this issue.

    On the new spread sheet that I have tried to relay the formulas on to, one of the reference cells being used in the AVERAGEIFS formula takes its date from the report date (=ReportDate). Could this be the cause of the problem?

    (I can't upload the second spread sheet; it's enormous and includes sensitive information).
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Formulas working on one spreadsheet but not on another

    If no cells in the range meet the criteria, AVERAGEIF returns the #DIV/0! error value.
    As per MS office help page : https://support.office.com/en-us/art...9-f5576d8ac642
    To handle this you can use Iferror along with your original formula
    Last edited by than_gold; 11-01-2018 at 10:52 AM. Reason: giving info on IFerror
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    10-25-2018
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    9

    Re: Formulas working on one spreadsheet but not on another

    Hi than_gold,

    The table array in the new spread sheet fulfils all the criteria according to that link you've posted.

    If I used IFERROR, wouldn't the formula still essentially just return a blank or whatever you tell it to return when there is an error?

    In the new spread sheet table array, I have a column of dates, two columns of text with 'general' formatting, and a column of percentages. The column with percentages in it has some blanks, but that link that you posted says: If a cell in average_range is an empty cell, AVERAGEIF ignores it. So surely these blanks should be fine?

+ 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: 4
    Last Post: 10-19-2018, 06:27 PM
  2. Formulas stopped working on spreadsheet! Help!
    By Garth2014 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2017, 04:10 PM
  3. Some formulas don't seem to be working within spreadsheet
    By kevwilsondj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-18-2015, 04:47 PM
  4. Spreadsheet formulas not working
    By missinpa in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-19-2014, 01:35 PM
  5. [SOLVED] How to calculate for non working days in a spreadsheet that has already est formulas
    By Kimmancer in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-22-2012, 01:22 PM
  6. Working with formulas on financial spreadsheet
    By hbasten in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2008, 09:44 PM
  7. [SOLVED] formulas are not working on my spreadsheet
    By David D. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2005, 01:05 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