+ Reply to Thread
Results 1 to 9 of 9

Unique count of IDs where column B contains one word only

  1. #1
    Forum Contributor
    Join Date
    07-25-2017
    Location
    UK
    MS-Off Ver
    Office 365 Excel Version 2202 Build 16
    Posts
    184

    Unique count of IDs where column B contains one word only

    Hi All,

    Sample data and expected results attached.

    I require a formula for cell G2 which does a unique count of IDs in column A where column B contains one word only.

    Expected results should be 3.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Unique count of IDs where column B contains one word only

    Try

    =COUNT(UNIQUE(FILTER(A2:A17,ISERROR(FIND(" ",B2:B17)))))

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Unique count of IDs where column B contains one word only

    Not sure how far down your table goes. Inefficient whole-column formula would be:

    Please Login or Register  to view this content.
    Or you could adjust to suit your data:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Forum Contributor
    Join Date
    07-25-2017
    Location
    UK
    MS-Off Ver
    Office 365 Excel Version 2202 Build 16
    Posts
    184

    Re: Unique count of IDs where column B contains one word only

    Thanks Bo_Ry it works but it is counting IDs where cells in column B are blank in my real data. I've updated the sample data to show blank cells.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-25-2017
    Location
    UK
    MS-Off Ver
    Office 365 Excel Version 2202 Build 16
    Posts
    184

    Re: Unique count of IDs where column B contains one word only

    WideBoyDixon,

    I've updated the sample data to include blank cells in column B as I missed that out.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Unique count of IDs where column B contains one word only

    Try

    =COUNT(UNIQUE(FILTER(A2:A50,(B2:B50>"")*ISERROR(FIND(" ",B2:B50)))))

  7. #7
    Forum Contributor
    Join Date
    07-25-2017
    Location
    UK
    MS-Off Ver
    Office 365 Excel Version 2202 Build 16
    Posts
    184

    Re: Unique count of IDs where column B contains one word only

    Bo_Ry - That works perfect.


    Also. what formula would I use for column C If I wanted to identify rows where column B only contains 1 word?

    I tried the following formula however it returns Yes for blank cells too. =IF(COUNTIF(B2,"* *"),"","Yes")
    Last edited by makaveeti; 04-26-2022 at 02:40 PM.

  8. #8
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Unique count of IDs where column B contains one word only

    C2 formula:

    Please Login or Register  to view this content.
    WBD

  9. #9
    Forum Contributor
    Join Date
    07-25-2017
    Location
    UK
    MS-Off Ver
    Office 365 Excel Version 2202 Build 16
    Posts
    184

    Re: Unique count of IDs where column B contains one word only

    Thank you WBD. That work's perfect.

+ 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] Unique count of of Column A where Column B contains word
    By makaveeti in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 03-05-2022, 07:44 PM
  2. [SOLVED] Count number of unique values corresponding to unique data in another column
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2019, 12:32 PM
  3. [SOLVED] to count unique numeric values but subtract the word plant
    By Shamz41 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-16-2018, 08:27 AM
  4. [SOLVED] Count the number of Unique Items in a Column for each Unique Item in another Column
    By HangMan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2015, 01:18 PM
  5. [SOLVED] Count unique occurences in one column with unique occurances in another column
    By 21stCenturyLessons in forum Excel General
    Replies: 5
    Last Post: 07-12-2014, 08:44 AM
  6. [SOLVED] Count unique entries based off unique criteria in another column
    By hambly in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-11-2014, 03:33 PM
  7. count unique phrases in a word table or spreadsheet
    By SDB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2005, 12:05 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