+ Reply to Thread
Results 1 to 10 of 10

Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

  1. #1
    Registered User
    Join Date
    09-27-2021
    Location
    Vancouver, Canada
    MS-Off Ver
    16.16.27
    Posts
    1

    Question Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    Hi, how do I calculate the occurrence / number of times of a root word throughout the whole column and apply the formula to the whole column?

    Attached is a shortened example. The complete version has more than 10,000 rows.

    I use Microsoft Excel for Mac, Version 16.16.27. I would also like to know the solution if I use Google Sheets. Thanks.
    Attached Files Attached Files
    Last edited by AliGW; 09-27-2021 at 03:20 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Occurrence of a root word in the whole column

    In B2 enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and pull down (Excel version)
    Last edited by Pepe Le Mokko; 09-27-2021 at 03:11 AM.

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Google Sheets: Occurrence of a root word in the whole column

    Alternative for MS Excel and Google Sheets;

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    place this formula in cell B2, and drag down:

    Please Login or Register  to view this content.
    note that as this checks the whole column (as per your request) ensure the title of the column will never have a match with any data

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    IMO it's bad practice using entire column/row references. If the OP turns his range into an XL table it adapts automatically to the range's length

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    @Pepe Le Mokko

    do you have example that will suit macOS and Google Sheets?

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    Perhaps see Post #3 ?

  8. #8
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    post #3 does not use the table method that you said will auto expand, and the table method does not auto populate the formulas on new rows in google sheets.

  9. #9
    Forum Contributor
    Join Date
    12-17-2013
    Location
    ON, Canada
    MS-Off Ver
    MS 365
    Posts
    171

    Re: Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    Expanding a bit on what others have suggested, try this formula in cell B2:

    =ARRAYFORMULA(IF(LEN(A2:A)=0,,COUNTIF(A2:A,"*" & A2:A & "*")))

    This is for Google Sheets

    https://docs.google.com/spreadsheets...it?usp=sharing
    Last edited by Flyboy65; 09-30-2021 at 09:16 AM.

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Google Sheets/Excel for Mac: Occurrence of a root word in the whole column

    Quote Originally Posted by janmorris View Post
    post #3 does not use the table method that you said will auto expand,
    The solution provided in post #3 is correct and your initial post did not ask for adapting to the number of rows
    First create the excel table containing the A and B columns, then enter the given formula in the first cell of col B. (adapt ranges as needed)It will expand automatically to accommodate the range in col A
    Now if you delete or add rows the formula will adapt
    This being said if you don't need adapting, just enter the formula in the first cell of col B ( adapt ranges) and double click the handle at the lower right corner of the cell selection
    All this works for Excel. I don't know about Google Sheets ( except for the formula)
    Last edited by Pepe Le Mokko; 09-30-2021 at 02:57 AM.

+ 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. Google Sheets: compare 2 column on different sheets and sum
    By joeartist in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 13
    Last Post: 09-21-2021, 11:58 AM
  2. Google Sheets: compare 2 column on different sheets and sum
    By joeartist in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2021, 01:46 AM
  3. [SOLVED] Power Query column word occurrence calculation performance
    By Imbizile in forum Excel General
    Replies: 5
    Last Post: 10-18-2020, 07:31 AM
  4. Google Apps Script for Google Sheets Pulling Formulas from Master to Several Slave Sheets
    By excelroofing in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 08-22-2018, 02:06 AM
  5. Replies: 2
    Last Post: 12-03-2014, 11:44 AM
  6. Replies: 3
    Last Post: 03-07-2010, 08:36 AM

Tags for this Thread

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