+ Reply to Thread
Results 1 to 6 of 6

Count cells with text

  1. #1
    Registered User
    Join Date
    07-29-2019
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    68

    Count cells with text

    Hi,

    Can you help please, I would like to have these 3 options -

    Two cells A1 - B1 both cells contain text show as "1" in cell C1

    Two cells A1 - B1 A1 contains text, no text in B1, show as "1" in cell C1

    Two cells A1 - B1 A1 contains no text, B1 contains text, show as "1" in cell C1

    Thank you

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

    Re: Count cells with text

    Try =IF(OR(TYPE(A1)=2,TYPE(B1)=2),1,"")

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Count cells with text

    v A B C
    1 ABC DEF =IF(AND(ISTEXT(A1),ISTEXT(B1)),1,"")
    2 ABC 1 =IF(AND(ISTEXT(A2),ISNONTEXT(B2)),1,"")
    3 1 ABC =IF(AND(ISNONTEXT(A3),ISTEXT(B3)),1,"")
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Count cells with text

    OR Can try below
    =IFERROR(IF(A1+B1,"",""),1)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    07-29-2019
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    68

    Re: Count cells with text

    Hi Alan that works a treat - Cheers

  6. #6
    Registered User
    Join Date
    12-24-2019
    Location
    United Kingdom
    MS-Off Ver
    2019
    Posts
    1

    Re: Count cells with text

    Really informative Thread

+ 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] Count total of cells containing text - from an irregular range of cells?
    By Granite in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2019, 12:02 PM
  2. Count Cells with Text that are Adjacent to Cells with Text
    By mbjcc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2015, 12:41 PM
  3. Replies: 3
    Last Post: 05-13-2014, 10:48 PM
  4. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  5. [SOLVED] count cells that contain text but do not count cells containing only a formula
    By cprpacific in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2013, 03:15 PM
  6. [SOLVED] Count number of cells that contain text but exclude cells that contain quotation marks
    By Cantyman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 03:57 PM
  7. Replies: 2
    Last Post: 05-09-2012, 11:22 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