+ Reply to Thread
Results 1 to 8 of 8

SOLVED Countif formula with 4 decimal points

  1. #1
    Registered User
    Join Date
    07-20-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    67

    SOLVED Countif formula with 4 decimal points

    so I want to use a simple countifs formula to count how many cells contain a figure between 2 ranges. The cells contain 4 decimal points such as 1.2951

    The formula I'm using is countifs(a1:d25,<="1.2951"a1:d25,>="1.2954")

    But I know there is 1 result in the range of data but it's always coming back as 0. Any help as to why it isn't working? All the cells are formatted to number as well.
    Last edited by toclare84; 07-24-2015 at 11:41 AM.

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

    Re: Countif formula with 4 decimal points

    Try it like this:

    =countifs(a1:d25,">=1.2951",a1:d25,"<=1.2954")

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Countif formula with 4 decimal points

    Try,

    =COUNTIFS(A1:D25,">=1.2951",A1:D25,"<=1.2954")

  4. #4
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Countif formula with 4 decimal points

    I think you might have your <= => the wrong way around? Because you're looking for numbers that are both under 1.2951 and over 1.2954, which is impossible?

    =COUNTIFS(A1:D25,">="&1.2951,A1:D25,"<="&1.2954)

  5. #5
    Registered User
    Join Date
    07-20-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Countif formula with 4 decimal points

    Thanks Pete. It randomly is still coming back as 0. I can't see really why it isn't working.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Countif formula with 4 decimal points

    Use this instead:


    =SUMPRODUCT((A1:D25>=1.2951)*(A1:D25<=1.2954))
    It'll do the job.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    07-20-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Countif formula with 4 decimal points

    Brilliant thank you guys!! Your always amazing!!! Xx stupid < and >.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: SOLVED Countif formula with 4 decimal points

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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] Combining a simple formula with text concatenation produces to many decimal points.
    By twelvepointelk in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-18-2014, 11:13 PM
  2. Formating the formula to display two decimal points
    By chrism_production in forum Excel General
    Replies: 5
    Last Post: 02-14-2014, 01:09 AM
  3. Decimal Points
    By Leanne in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] Decimal Points
    By Leanne in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. Decimal Points
    By Leanne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] Decimal Points
    By Leanne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Decimal Points
    By Leanne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] Decimal Points
    By Leanne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2005, 10: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