+ Reply to Thread
Results 1 to 18 of 18

Frequesncy - number of occurances

  1. #1
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Frequesncy - number of occurances

    Hi. Please see the attached. I am trying to calculate the frequency of the occurances of the data within the main table but its just not working?
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    For some reason the results in the column below the formula are increasing and this is not right. I want the number of occurrences of the figure in the adjacent column I know that 46 occurs twice but the result of the formula is 0 I know that 69 doesn't occur 92 times but this is the result....

  3. #3
    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,980

    Re: Frequesncy - number of occurances

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Frequesncy - number of occurances

    It is difficult to debug from a picture.

    What you describe does not seem consistent with my own use of the FREQUENCY() function. A couple of tests suggests that maybe this is because you have not entered the function correctly. The FREQUENCY() function is intended to be entered as an array function (confirmed with ctrl-shift-enter similar to LINEST(), TRANSPOSE(), MMULT(), etc) over a range of cells (W3:W27, if I read your picture correctly). I see similar behavior to your picture if I enter the FREQUENCY() function in a single cell and then copy it down. From a picture I cannot say for sure that this is what is going on in your spreadsheet, but it is one possible explanation. If this is the case, then I recommend you review the help file (https://support.office.com/en-us/art...7-fd9ea898fdb9 ) and enter the function as an appropriate array function over the necessary range.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    Hi, i have attahced my spreadsheet, This is part of my sons home work so as a 40 year old i am ashamed to be asking for help. I could do it manually so its just a software issue i tell myself....
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    I plan to graph the occurrence data because the project is about selecting the modal value.

  7. #7
    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,980

    Re: Frequesncy - number of occurances

    This is the forum's stance on helping with homework assignments:

    Nothing is more frustrating than to be working on homework and to get stuck. Without guidance, you might have no hope of finishing the assignment before the deadline. The Internet can be a big help in that respect, but without learning how to get the right answer, asking others to solve your homework questions for you simply becomes a downward spiral (and it's cheating).

    We do not want to contribute to you cheating yourself out of your education, but we also acknowledge that seeking assistance to learn a concept is a legitimate request.

    If you are genuinely interested in receiving help in the form of tutoring or coaching, then please rephrase the title of your original post to clearly indicate you are seeking coaching or tutoring help. Any forum members (who are willing to assist as a tutor) will modify their responses accordingly to facilitate your learning. Tutors don't tell you the answers, they help you figure it out for yourself; so don't expect answers, expect suggestions, or just plain hints. Also, be specific in describing the function/formula or technique you trying to learn, and tell us what you have attempted so far. Otherwise, expect your plea for homework answers to be ignored.

  8. #8
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    sorry disnt add what i expected the results to be..
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Frequesncy - number of occurances

    Looking at the spreadsheet, it looks like you made the mistake I alluded to earlier:
    I see similar behavior to your picture if I enter the FREQUENCY() function in a single cell and then copy it down.
    I would have expected you to 1) Select M3:M18, 2) Enter =FREQUENCY(D3:J18,L3:L17) and 3) confirm with ctrl-shift-enter. Review help file for the FREQUENCY() function.

  10. #10
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    Hi, I think you have miss understood. The spreadsheet isn't his home work, as he is only 9 years old and we will do this in his maths book but as i use excel at work, i was interested in trying to see if i could do it in excel. I thought would be happy to fail but having spent ages reading about the frequency formula i really done understand why my calculation isn't working.

    The homework has nothing to do with excel and actually i would be very happy for someone to just tell me how to do it and spell out why my formula isn't working and what i need to do. I am not asking anyone to help me cheat and to be fair i have given it a good try, as the spreadsheet shows. I am just asking someone to help me not waste any more of my whole bank holiday weekend.

  11. #11
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    Thanks Mr Shorty, I am reading your comments and trying to work out if i understand.

  12. #12
    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: Frequesncy - number of occurances

    Here's a little fragment of your sheet:

    I
    J
    K
    L
    M
    2
    Thu 30th Fri 31st
    range
    #
    3
    54
    53
    46
    1
    4
    52
    53
    47
    1
    5
    54
    52
    48
    1
    6
    53
    52
    49
    6
    7
    53
    50
    2
    8
    50
    51
    0
    9
    51
    52
    7
    10
    49
    53
    14
    11
    53
    54
    30
    12
    51
    55
    14
    13
    49
    56
    12
    14
    49
    57
    1
    15
    49
    58
    4
    16
    68
    59
    1
    17
    46
    4047000000000000
    60
    0
    18
    46
    4047000000000001


    The frequency formula is entered like this:

    Select M3:M18

    Paste =FREQUENCY(D3:J18,L3:L17) in the formula bar

    Press and hold the Ctrl and Shift keys, then press Enter

    Why does it show a count of 1 for 46? There are obviously two, right?

    Actually, there are not. In I17, I manually entered 46. Its hex representation as an IEEE-754 double-precision float is shown in yellow in the cell to the right.

    I18 contains the 46 as it appears in your sheet. It is one LSB larger, which means it gets counted in the 47 bin.

    Those numbers in columns D:J need to be fixed.
    Last edited by shg; 04-29-2017 at 01:20 PM.
    Entia non sunt multiplicanda sine necessitate

  13. #13
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    Hi, I have followed your comments and attached the result.
    The distribution looks about right but the actual numbers are a bit confusion. i can see there are 2 occurrences of 46 but the results say 0?
    Also wat does the Cntl-Shift-Enter, do?
    Thanks
    Dave
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    Ok thanks Give me a minute to check this.. Really appreciate you comments

  15. #15
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    Mr Shorty and shg - Thank you very much, i think i have cracked it.
    Still don't completely understand the floating-point arithmetic stuff but i have found a way to change the advanced settings of the workbook to stop this happening. not sure if this is the best way but i dont need to do anything else with the data. I think i had two other issues.
    Firstly was only selecting one cell to add the formular and then replicating down and also i wasn't using cont-shift-enter at the end.
    However i am so grateful for your help
    Many Thanks
    Dave

  16. #16
    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: Frequesncy - number of occurances

    If what you used was Precision as displayed, I strongly recommend against it. I'd recommend you fix the problem at its source.

  17. #17
    Registered User
    Join Date
    04-29-2017
    Location
    London England
    MS-Off Ver
    10
    Posts
    12

    Re: Frequesncy - number of occurances

    It was..... Ok, I have reversed what i did and used =ROUND(cell,0)
    How is that?
    Thanks
    Dave

  18. #18
    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: Frequesncy - number of occurances

    That will work, but it's a band-aid. My question would be, how did the non-integer numbers get there in the first place?

+ 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. [SOLVED] Counting the number of occurances
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2014, 09:41 AM
  2. [SOLVED] Count the number of occurances of a particular value
    By vignesh805 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 04:50 AM
  3. Replies: 5
    Last Post: 05-11-2012, 03:38 AM
  4. Formula>occurances of a number in a row?
    By right_hand_of_doom in forum Excel General
    Replies: 5
    Last Post: 06-24-2009, 02:57 AM
  5. Count the number of occurances of a value in a range.
    By pi**edasanewt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2008, 07:08 AM
  6. Replies: 3
    Last Post: 07-07-2006, 09:10 PM
  7. chart the number of occurances
    By kemel in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-03-2006, 12:10 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