+ Reply to Thread
Results 1 to 6 of 6

COUNTIF while distinguishing 1.20 and 1.2

  1. #1
    Registered User
    Join Date
    07-09-2021
    Location
    Japan
    MS-Off Ver
    365
    Posts
    3

    Post COUNTIF while distinguishing 1.20 and 1.2

    Hi

    There is the range which contains both text of 1.2 and 1.20
    If I COUNTIF with criteria "1.2", it returns the number of cells which contains both 1.2 and 1.20

    I'd like to see only the number of cells whose value is 1.2

    *Inserting any columns is not preferred

    Thanks in advance!
    Attached Files Attached Files
    Last edited by herm1ne; 07-09-2021 at 01:02 AM. Reason: typo

  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,486

    Re: COUNTIF while distinguishing 1.20 and 1.2

    1.2 and 1.20 are merely visual representations of the same value, so Excel will see them as the same, because they are. The only way you will be able to distinguish them is if you make the entries into text by preceding them with an apostrophe.
    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
    Registered User
    Join Date
    07-09-2021
    Location
    Japan
    MS-Off Ver
    365
    Posts
    3

    Re: COUNTIF while distinguishing 1.20 and 1.2

    Thanks AliGW,

    but adding apostrophe does not help...

    Attachment 739586

  4. #4
    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,486

    Re: COUNTIF while distinguishing 1.20 and 1.2

    Then it can’t be done - sorry. They are the same value.

  5. #5
    Registered User
    Join Date
    07-09-2021
    Location
    Japan
    MS-Off Ver
    365
    Posts
    3

    Re: COUNTIF while distinguishing 1.20 and 1.2

    self solved

    replace countif with
    Please Login or Register  to view this content.

  6. #6
    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,486

    Re: COUNTIF while distinguishing 1.20 and 1.2

    Ah! Well done.

+ 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] Excel not distinguishing 31.10 from 31.1, formatted as text
    By Hitch75 in forum Excel General
    Replies: 19
    Last Post: 12-26-2017, 11:44 AM
  2. Distinguishing between 'A' and 'A*' Exam Grades
    By mrmcmillanrevis in forum Excel General
    Replies: 6
    Last Post: 05-21-2015, 10:23 AM
  3. [SOLVED] Distinguishing between text and value (formula)
    By Gti182 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 10:16 AM
  4. Distinguishing between null and <=0
    By dritteske in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2011, 07:59 AM
  5. Distinguishing between 3 variables... how?
    By oerberg in forum Excel General
    Replies: 13
    Last Post: 01-21-2009, 06:02 AM
  6. distinguishing between positive and negative numbers
    By cdematteis in forum Excel General
    Replies: 2
    Last Post: 10-19-2007, 07:18 PM
  7. Replies: 6
    Last Post: 06-11-2006, 08:15 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