Top N most frequent words in a data set in Numbers

I have 3 columns of data in 10,000 rows and i would like to find out the top N most frequent words. I don't have a list of words before hand, rather i would like the algorithm/function to determine the top N most frequent words.
any help would be greatly appreciated.

naser,
This generally takes an extra columns
Here is an example that does what you wnat in a single table:
There are three sections:
1) Columns A and B:  column A contains the list of words, column B lists the "ID" of each new word
2) Columns D, E, and F: column D contains the list of unique words, E contains the number of occurances of each word, and F contains a fancier ID (to make words with the same count have slightly different counts)
3) Columns H, I, and J: column H contains the ranked IDs from highest to lowest, column I contains the corresponding word, and column J contains the count for that word
B2=IF(ISBLANK(A2),"",IF(IFERROR(MATCH(A2,A$1:A1,0), 0)>0, "",MAX($B$1:B1)+1))
D2=IF((ROW()−1)>MAX(B),"",LOOKUP(ROW()−1, B, A)
E2=IF(D2="","",COUNTIF(A,D2))
F2=IF(E2="","", VALUE(E2&"."&ROW()−1))
H2=IF(F2="", "", LARGE(F, ROW()−1))
I2=LOOKUP(H2,F,D)
J2=LOOKUP(H2,F,E)
select B2 thru J2, copy,
select Columns B thru J
hold the command key and click B1, C1, D1, E1, F1, G1, H1, I1, J1 (to unselect them)
paste
To limit the number of words, make the following change:
G1 contains the number of words you want
H2=IF(OR(F2="" ,(ROW()−1)>$G$1), "", LARGE(F, ROW()−1))
select H2, copy,
select column H, then unselect H1
paste

Similar Messages

  • I would like to return the top 50 most popular words

    HI, I have a text column in mssql, I would like to return the
    top 50 most popular words and their count(for all rows) excluding
    the words
    i
    a
    it
    the
    Any clue how to do this?

    I done it with code like this, but it took about 200 seconds to finish and generated 300000 rows in WORDS
    it would be cool if it could be done in pure sql, mabye it could be done using ms sql cursors
    <cfset datasource = application.datasource>
    <cfset datasource = application.datasource>
    <cfquery name="q" datasource="#datasource#">
         select   * from    staff
    </cfquery>
    <cfloop query="q">
      <cfloop list="#comment#" index="word" delimiters=" ,?,.,!,;#chr(10)##chr(13)#">
        <cfquery name="q2" datasource="#datasource#">
                 insert into WORDS values(
                  <cfqueryparam value="#word#"     cfsqltype="cf_sql_varchar">  
                </cfquery>
      </cfloop>
    </cfloop>

  • Data view web part to display the most frequently accessed pages based on the user that is logged in

    I am working on a project in which I would like to display the top 5 most accessed pieces of content as links, based on the user that is logged in. Our MOSS 2007 implementation has subsites for all regions that we do business in, as an example North, South, East, and West. When a user visits the North region homepage, I would like a web part to display:
    Hello, <username>, here is a listing of your most accessed content:
    Link to One
    Link to Two
    Link to Three
    Link to Four
    Link to Five
    So each user would get a customized list based on their content access. We are not using my sites, but these would not work as we want the list to display on the home page of the region site.
    I am thinking that a data view may work here, but I am not sure. Any help is greatly appreciated.

    If you are running MOSS you may want to take a look at the Relevant Documents web part too.
    http://office.microsoft.com/en-us/sharepointserver/HA102410251033.aspx
    The Relevant Documents Web Part helps you create a personalized view of the documents that you create, check out, and change. In a large Document Center, the Web Part can save you time and effort by making files easier to find and use. The following figure shows the Web Part:

  • How do I add most frequently called numbers

    How do I add most frequently called numbers?
    Thank you,
    Marilyn

    If you mean call favorites, open Phone, tap the Favorites button at the bottom, tap the plus sign at the top, choose the contact and number you want to add.

  • Getting icon on the top bar next to the time and date

    When I sync my external Hard-drive an icon used to appear (time machine icon maybe?) on the top bar next to the airport, sound, date, time... and now its gone. How do I get that icon to reappear there? The icon would allow me to enter the time-machine.

    Time Machine System Prefs->check the "Show Time Machine status in menu bar."
    Note that most of Apple's status menu items are enabled this way.

  • How to get top 25 most played songs on my iPhone?

    There is a smart playlist, "Top 25 Most Played" on both my laptop and my iPhone, and they are in sync.  But it appears it is getting this data from iTunes on my laptop rather than my phone.  That is, even if I listen to "Smooth Operator" by Sade 1000 times on my PHONE, the number of plays is still set to the number of times I've listened to it on my LAPTOP.
    This is completely worthless to me, because I don't listen to music through the weak sauce MacBook Air speakers, I listen to it on headphones or in a dock on my phone.
    Please tell me there's a way to get the 25 most played songs on my PHONE rather than my LAPTOP.

    In your playlists it has to be listed as one. If not you will never have a Top 25 :C

  • Itunes does not capture "Top 25 most played tunes" during iPhone sync

    Howdy - I would fine it super useful from a data perspective if after syncing with my iPhone that iTunes would update the "Top 25 most played tunes" playlist. I mostly listen music on my iPhone so as every day that goes by with me playing music this data is being lost, I no longer know what my "Top 25 most played tune" are.
    It's probably not iTunes functionality to do this so I guess I gotta raise a ticket on this one with Apple directly. However, it would be great to get some feedback on this idea, do anyone agree?

    Hi,
    not sure if its too late.
    I had the same problem before and unsolved it just 10 mins ago.
    I found the cure on this site
    http://forums.ilounge.com/itunes-mac-pc/249787-smart-playlists-not-syncing-sorti ng-correctly.html
    What I did was what replied 3 mentioned which is
    on your itunes
    1.left click the top 25 most played playlist then choose edit smart playlist.
    2.simply untick the live updating box.
    3.sync again.
    Pop!! the problem is gone..........woooohooo!
    I hope it helps you too if its not too late:)
    Cheers

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • In the new Firefox, I have no back button, no "most frequently visited" and there is no longer an option to save tabs when I close.

    Many features have disappeared. There is no back button to go to the previous page. There is no "most frequently visited" icon on the toolbar. I am not asked if I want to save all my tabs when I close firefox. There is no recently bookmarked tab on the toolbar. Everything takes longer to get to. The tabs don't automatically stay open.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
    Do you still have the Bookmarks Toolbar visible?
    * [[Restore the default Smart Bookmarks Folders]]
    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    If the menu bar is hidden then press F10 or hold down the Alt key, that should make the "Menu Bar" appear
    Make sure that you have the Bookmarks Toolbar and the Navigation Toolbar visible: "View > Toolbars"
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" or other items that are missing in the toolbar palette or on a toolbar then click the "Restore Default Set" button
    See also:
    * http://kb.mozillazine.org/Toolbar_customization

  • Top 25 Most Played list does not transfer to ipod

    Hi there,
    I updated the Top 25 Most Played list created under my ipod. The list showing in itunes shows the updated list, however the list in my ipod itself is not updated. How do i update the list in my ipod. Thanks.

    under your ipod option in itunes
    if u set it auto update, your ipod should update all the details when u connect.

  • The Top10 most frequently asked questions and answers (FAQ) November 2008

    Dear SAP Business One Community members,
    We will provide you on a regular base the top10 most frequently asked questions together with the releated answers.
    The Top10 from November:
    1. Where do I find the Supported Platforms for SAP Business One?
    Follow the path:
    SAP Channel Partner Portal
    => SAP Business One Resources
    => Product Availability
    =>  Supported Platforms
    [Quicklink|http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000707728&_SCENARIO=01100035870000000183&_ADDINC=&_OBJECT=011000358700001241092005]
    2. What is the Scope of Support for 3rd party addons for SAP Business One?
    Any issue related to an third party addon, does not come under the purview of SAP support scope. Please refer to the [SAP Note 844036|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=844036] for SAP SDK support scope.
    3. Which dot-matrix printers are supported in SAP Business One?
    The three types of Dot Matrix printers which are supported are:
    〇 Citizen PROdot 300
    〇 Epson FX-880
    〇 OKI MICROLINE 320 Elite
    You can find this information also on the [Best-Practice System Setup and Sizing landing page|http://service.sap.com/form/sapnet?_SHORTKEY=01100035870000706968&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E&_OBJECT=011000358700001077772007] or directly in the [SAP Business One System Requirements Guide|http://service.sap.com/sapidb/011000358700000310652008E.pdf]
    4. How is check printing done in SAP Business One 2005 and 2007?
    Please see therefore the following notes:
    〇 [SAP Note 903135 Printing Procedures|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=903135]
    〇 [SAP Note 1248534 - Cheque/Check Printing - skipping of cheque/check numbers|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=1248534]
    Please go also through this [EES session|http://service.sap.com/~sapidb/011000358700000326662008E] 

    5.   What kind of picture files are supported in SAP Business One 2007 A?
    As of SAP Business One 2007 A March patch, the supported formats in both the application and SDK for graphics are JPG, BMP, PNG and PCX. In a future release the Online Help is to be updated with this information.
    Please see therefore the following note:
    [SAP Note 1137796 - Approved picture formats JPG, BMP, PNG, PCX update help|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=1137796]
    6.   How to know which field name related to which DB field name?
    See therefore the [SAP Business One Help file|http://service.sap.com/~sapidb/011000358700000187612007] - Search: "System Information" (1 st entry )
    The left-hand corner of the status bar displays field and error messages.
    To display field position the cursor over a specific field and see that the field name and length appear. In addition, you can display for each field on a window. First, choose View --> System Information. Then, position the cursor over a field and see relevant to that field appears.
    Different types of messages appear in the status bar.
    7. How can I do a development request for SAP Business One?
    If the request is about a non-legal issue please post your request in the [SAP Business One Product Development Collaboration forum|/community [original link is broken];. If the requested function covers a legal issue use the template from the note below.
    Please see therefore the following note:
    [SAP Note 1028874 - Missing Functionality / Product Development Collaboration|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=1028874]
    8. What is the scope of support for SDK (e.g. partner asked support to provide an example of code for an issue)?
    SAP Business One Product Support will support issues where an issue is present due to an application error. However, in particular when it concerns any kind of customization, we would like to ask before logging any issue to support to locate the area where the issue occurs, i.e. in case of queries or SDK code to only send us the part of the code/query where the error appears or respectively a simplified sample of the code/query. The same applies for other customizations like PLD, XLReporter, etc.
    See also [SAP Note 1012023|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=1012023]
    9. How do I do to block user access to TOOLS menu => User table?
    define an additional authorization for the tables you would like to put restrictions on. So, please go to the
    Administration -> System Initialization -> Authorizations -> Additional Authorization Creator
    and then create an additional authorization by giving its Permission ID and Name, and specify the Form ID in the lower left part of the window (to find the Form ID you should set the Debug Information active under the View menu, and then hover your cursor over the form window, then you will see the Form ID at the bottom line of the SAP Business One window).
    10. What is the scope of support for the demo DB?
    Please note that for Demo DBs only reproducible bugs are being supported. There is no support for database corruptions, as Demo DBs are not meant for productive use and a clean Demo DB can be installed for testing purposes.
    See also [SAP Note 1099700|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=1099700]

  • The Top10 most frequently asked questions and answers (FAQ) January 2009

    Dear SAP Business One Community members,
    We will provide you on a regular base the top10 most frequently asked questions together with the related answers.
    The Top10 from January:
    1. How to install SAP Clients?
    According to the symptom, this issue can be caused by the missing "SQL Native client" component.
    In this situation, please refer to [SAP Note 1015229|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=703028],to resolve the issue.
    2. How to put sales order number on A/R invoice?
    1. Create a UDF in A/R Invoice at Row Level.
    2. Apply Formatted Search on this UDF.
    3. Use the Below Query:
    Select T0.DocNum From ORDR T0,RDR1 T1,DLN1 T2
    Where T0.DocEntry = T1.DocEntry And
    T1.DocEntry = T2.BaseEntry
    And T2.DocEntry = $\[$38.45.0\]
    4.Now you can get this UDF in the print layout(template).
    3. How to know variable in Print Layout?
    Variable can be retrieved checking System Information in view, however it is not supported
    Please refer to the attached [SAP Note 723783|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=703028] - the use of system variables isn't supported as their definitions might change after upgrade.
    Variable fields are not supported due to the following reasons:
    1.  Variable numbers might change after upgrading to a higher version.
    2.  The user can use variable numbers which are not linked to the  document or form related to the document editing.
    The list of variables is only supported for 2007 A version.
    We do not have such kind of variables list for 2005 B version.
    You can find the documentation of variables on Service Market Place in the following:
    Go to the [Documentation Ressource Center|http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000707558&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E&_OBJECT=011000358700002906862005E] ->2007 A Version->How to guide->How to use PLD variables file in 2007 A Version.

    4. How to clear the SBOMailer queue?
    As a workaround, please use dummy or wrong SMTP server and send all those mails to that address.
    After sending those mail to dummy SMTP, you can see the mail status changed to "E" (Error), then after setting up the correct smtp mailer
    would not try to send the mails with status "E".
    5. How to use dialer in BP?
    1.How does this work?
    If you have Microsoft#s automatic phone dialer installed, you can press CTRL+TAB to automatically dial the numbers in the telephone fields.
    2. Are there settings I can change? In the System Initialization - General Settings - Services, to place calls directly through SAP Business One if a phone system or modem is installed on your computer or in your network, in these fields specify the area code and the number to dial for an outside line.
    3. How can I troubleshoot when this doesn't work? Try to check if the number is correct, the best way to check it is to use the MS Phone Dialer and to enter this number exactly as it is written in B1. If the dialer succeed dialing this number so B1 should succeed too, if the dialer failed check what is the problem with the number or with the Microsoft Phone Dialer.
    6. Iu2019m unable to set exchange rate in credit note
    To set an exchange rate in a Credit Note is only possible to if the credit note is not based on another document. In this case the exchange rate of the base document will be considered. Please see also SAP Notes [686224|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=686224] und [703028|http://service.sap.com/sap/bc/bsp/spn/smb_searchnotes/display2.htm?note_langu=E&note_numm=703028]

  • How do I get my new presario lap top to scan a word document in my printer scanner

    how do I get my new presario lap top to scan a word document in my printer scanner

    You will have to load up some OCR software for optical character recognition.  Free programs are on the web, just search.
    Two I use:
    Free OCR to Word
    Free OCR
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Is it possible to set up my stat page to show thumbnails of selected or most frequently visited sites like in Opera?

    Masses of information about new Firefox, but it all seems rather complicated and confusing. I would like to have a start page as I had in Opera, which shows thumbnails of my most frequently visited sites. I just need to know if this is POSSIBLE - if it is I'll make an effort to work out how to do it.
    If you don't know what I'm tallking about look at the beginning of this video http://www.opera.com/browser/
    I think Firefox is a better browser than Opera, but I like this feature of Opera and would like to have it on Firefox.
    Thanks for any advice!
    John

    Masses of information about new Firefox, but it all seems rather complicated and confusing. I would like to have a start page as I had in Opera, which shows thumbnails of my most frequently visited sites. I just need to know if this is POSSIBLE - if it is I'll make an effort to work out how to do it.
    If you don't know what I'm tallking about look at the beginning of this video http://www.opera.com/browser/
    I think Firefox is a better browser than Opera, but I like this feature of Opera and would like to have it on Firefox.
    Thanks for any advice!
    John

  • Data set not visible in MS Office Word

    Hi,
    I created a new data set based on an BI Analysis for a report in BI Publisher.
    When I try to edit the report layout in MS Office Word I can't see the new data set in the Data Source list.
    Tried restarting the services, and it didn't help.
    This happens only for some reports. For others the data sets are automatically updated and visible in Word.
    Any ideas what might be causing this?
    Edited by: 980747 on Jan 9, 2013 4:32 AM

    Never heard of this before. Can you turn on Auditing of XQuery parameters and results and then show me the audit information so I can see you are calling both the logical and the physical data service with the same arguments?
    It would also help to see both the logical and physical ds and their schemas. Just zip and post the whole dsp project if possible.

Maybe you are looking for

  • Is there any way windows 8.1 can be installed on an early 2008 iMac?

         Hello apple community! I've had various desktop maps since the mid-90's, but over the past 6 years I have found myself limited many times due to my computer being incompatible with many third party programs and various games that are only suppor

  • Mac Mini HTPC on the cheap

    My one last grand parent is finally getting a TV in the next few months and I'd like to buy him a Mac Mini for it so he can watch his beloved films. I'm looking for advice on the software that's best. Bearing in mind he is an OAP, and currently has a

  • Checkpoint not complete in alert log file Oracle 11gR2 RAC

    Hi, I found checkpoint not complete in alert log file, almost every 3 seconds . In metalink i saw for this error, archive_lag_target=0, already this value was set to 0 in my database. We have 7 redo log groups for each instance, each group is of two

  • Multiline attribute vs. table type based attribute in workflow container

    Hi, When we are talking about definition of workflow container attribute, you have to choose a type of attribute from a dictionary and have to decide if it is multiline attribute or single line (flat). If we want to define a multiline string-based at

  • Is Mpeg2 the answer?

    I want to take homemade DVDs and get them into iMovie for editing and sharing to YouTube. I used to be able to use MPEG Streamclip for that, but now get a message saying "You must install the MPEG-2 Playback Component before trying to export MPEG2 fi