+ Reply to Thread
Results 1 to 5 of 5

Count row of numbers and exclude " - " sign

  1. #1
    Registered User
    Join Date
    11-04-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    1

    Count row of numbers and exclude " - " sign

    Hello, I am currently trying to write counting formula for a number of values in one row followed by cells that are not numerical but have a " - " sign.

    So I have been trying =Countif(A1:Y5,"<> - ") but it does not seem to work. Can you help?
    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Count row of numbers and exclude " - " sign

    Welcome to the forum.

    Try this:

    =COUNTIF(A1:Y5,"<>*-")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Count row of numbers and exclude " - " sign

    or possibly
    =COUNTIF(A1:Y5,"<>*-*")

    depending if the - is the final character in the cell or not

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Count row of numbers and exclude " - " sign

    The cell might display " - ", but could it be zero that is formatted as Accounting?

    If so, try =COUNTIF(A1:Y5,"<>0")

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Count row of numbers and exclude " - " sign

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    - YYY
    2
    Formula in B1 =COUNTIF(A1:A5,"<>*-*")
    2
    - 77.00
    4
    Formula in B2 =COUNTIF(A1:A5,"<>*-")
    3
    TEST-TEST
    3
    Formula in B3 {=SUM(IF(ISTEXT(A1:A5)*IFERROR(FIND("-",A1:A5),0),1,0))}
    4
    125
    5
    TEST -
    Sheet: Sheet1
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. "Plus" (+) sign next to positive numbers
    By mpanty in forum Excel General
    Replies: 6
    Last Post: 08-13-2019, 03:49 PM
  2. Replies: 8
    Last Post: 07-12-2017, 05:32 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. [SOLVED] Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2013, 02:49 PM
  5. [SOLVED] Count syntax for dividing # of "positive numbers" by "total numbers"
    By synses in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-18-2013, 09:06 PM
  6. Help Needed to get Filters Using "Include" and "Exclude" multiple values on one column.
    By alfykunable in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 04:03 AM
  7. Calculating numbers without using "=" sign ?
    By barry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2006, 09:35 PM
  8. [SOLVED] How add &amp;quot;%&amp;quot; sign to a list of numbers?
    By TomBk in forum Excel General
    Replies: 2
    Last Post: 05-26-2006, 03:39 AM

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