+ Reply to Thread
Results 1 to 7 of 7

How Do I Count Asterisks

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    Beverly Hills
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    1

    Exclamation How Do I Count Asterisks

    I need to be able to count the exact number of instances an asterisk is detected in a given row or column. In addition I also need to be able to count blank spaces as well. Help would be extremely helpful, and I will attach an example document of how it would look. Excel Goal.jpg
    Attached Files Attached Files

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: How Do I Count Asterisks

    B5: =SUMPRODUCT(LEN(B2:B4)-LEN(SUBSTITUTE(B2:B4,"*","")))
    B6: =COUNTBLANK(B2:B4)

    repeat for the other ranges ;-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,221

    Re: How Do I Count Asterisks

    Put these formulae in the cells stated:

    F2: =LEN(B2&C2&D2&E2)-LEN(SUBSTITUTE(B2&C2&D2&E2,"*",""))
    G2: =LEN(B2&C2&D2&E2)-LEN(SUBSTITUTE(B2&C2&D2&E2," ",""))

    and copy down rows 3 and 4.

    Put these formulae in the cells stated:

    B5: =LEN(B2&B3&B4)-LEN(SUBSTITUTE(B2&B3&B4,"*",""))
    B6: =LEN(B2&B3&B4)-LEN(SUBSTITUTE(B2&B3&B4," ",""))

    then copy across into columns C to E.

    Hope this helps.

    Pete

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How Do I Count Asterisks

    JosephP formula with corrected ranges

    =SUMPRODUCT(LEN(B2:E2)-LEN(SUBSTITUTE(B2:E2,"*","")))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: How Do I Count Asterisks

    my formula was in b5 not f2 :-)

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How Do I Count Asterisks

    Quote Originally Posted by JosephP View Post
    my formula was in b5 not f2 :-)
    Oh, it was for the columns. I looked at the attached file and there is also count for the rows. My apologies

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: How Do I Count Asterisks

    no apology necessary! :-)

+ 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. Excel 2007 : Adding cells containing asterisks
    By andy86 in forum Excel General
    Replies: 6
    Last Post: 12-08-2011, 03:11 PM
  2. using asterisks in a string
    By kaipan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2009, 08:03 AM
  3. Input box with asterisks
    By kjworks in forum Excel General
    Replies: 2
    Last Post: 08-14-2006, 07:15 AM
  4. How to replace the asterisks?
    By Á÷À˵ÄË& in forum Excel General
    Replies: 1
    Last Post: 09-20-2005, 05:05 AM
  5. [SOLVED] Asterisks in Excel
    By Walsh jj in forum Excel General
    Replies: 1
    Last Post: 06-17-2005, 06:05 PM

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