+ Reply to Thread
Results 1 to 6 of 6

Frequency function omitting zeros and errors

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    3

    Frequency function omitting zeros and errors

    Hi all,

    I have a problem with completing a proper function in excel. The goal is to calculate a frequency of values in huge matrix. These values are the distances between particles in some material.
    The problem is that formula must count even if there are errors in the array and also must not count zeros.

    Do you have any idea how to solve this issue?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency function omitting zeros and errors

    Please Login or Register  to view this content.
    The array formula in J1:J10 is

    =FREQUENCY(IF(ISNUMBER(1/A1:G15), A1:G15), I1:I9)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-04-2012
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Frequency function omitting zeros and errors

    Well, your formula is not solving my case, unfortunately.

    Frankly speaking I will need something that combines those two functions with frequency function:
    IFERROR(MATRIX;"") and COUNTIF(matrix;0)

    I have used those function for calculating the average values (it looks like this: =AVERAGE(IFERROR(MATRIX;"");COUNTIF(matrix;0)) )
    This time it I have to apply this for Frequency.
    Any ideas?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency function omitting zeros and errors

    I have an idea that you should post a workbook and explain in context.

  5. #5
    Registered User
    Join Date
    08-04-2012
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Frequency function omitting zeros and errors

    There is the part of the workbook we are talking about. The matrix array is much bigger as I said.
    So I need the frequency at which each interval (or in this example "Class" number) is present in the matrix.

    Usually I would use the following function:

    =FREQUENCY(matrix, class) or like you see on the print screen: =frequency(A2:G12;I2:I12)

    but as I said: I con not count "zeros" and the formula must be errors resistant...


    frequency.JPG

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Frequency function omitting zeros and errors

    What is #ARG! It's not an Excel error.

    Even so, the formula I posted should work fine. If you post a workbook instead of picture, I'll add it to the worksheet.
    Last edited by shg; 08-04-2012 at 06:37 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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