+ Reply to Thread
Results 1 to 5 of 5

Freq distribution problem

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Freq distribution problem

    Hi Excel Forum,
    I have a big Excel 2010 data set (a small fictious portion attached).

    Question:

    I need to find out how many different FSAs are there in this dataset.

    I know in SAS we can use proc freq but in Excel how could we find it?

    Thank you for the help.

    Mirisage
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-19-2010
    Location
    Felixstowe
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Freq distribution problem

    Hi Mirisage,

    Are all the FSA codes in column B or separated over multiple columns?

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Freq distribution problem

    Hi English_Bloke82,

    Actually they are separated over multiple columns.

    Thanks

    Mirisage

  4. #4
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Freq distribution problem

    Sorry for my ignorance, but I'm not even sure what an FSA code is. Some type of a postal code, in Canada I think, but I'm probably mistaken.

    Assuming an FSA code is always three digits in length, and assuming the middle digit is always numeric and the first and third digits are alphanumeric, (as your sample worksheet seems to indicate) then this macro will tell you how many different FSA codes are in your worksheet.

    Change the max number of rows and the max number of columns as needed.

    It seems to work for all of the test data I gave it. Your small worksheet, for example, contained five different FSA codes. (B7U is written twice.)

    If I'm completely wrong about what an FSA code is, my apologies. But maybe you can still use and modify the macro to fit your needs.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Freq distribution problem

    Hi Ed_Collins,

    Thank you very much for taking time to write this macro.

    I should take time and try to learn the logic behind this macro.

    Thanks again!

    Mirisage

+ 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