+ Reply to Thread
Results 1 to 3 of 3

Need Formula to Identify Occurrences in a Range => Decimal # and < Whole or Decimal #

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Need Formula to Identify Occurrences in a Range => Decimal # and < Whole or Decimal #

    I am using Excel 2010.

    I need to write a formula that calculates the number of occurrences that meet a criteria that is in a range that is equal to/greater than a number with or without a decimal point and less than a number with or without a decimal point. The source data is all in one column.

    For example: The range is =>0.1 and less than 1

    I tried the following formulas:
    =SUMIF($AG$2:$AG$24,"=0.1-0.9")
    =COUNTIF($AG$2:$AG$24,"=0.1-0.9")
    =COUNTIF($AG$2:$AG$24,"=1*<2")

    Nothing worked and I'm sure it is obvious that I was just trying different things.

    I'd appreciate any suggestions.

    Thanks,
    JazziM

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need Formula to Identify Occurrences in a Range => Decimal # and < Whole or Decimal #

    Try..

    =SUMPRODUCT(($AG$2:$AG$24>=0.1)*($AG$2:$AG$24<1))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need Formula to Identify Occurrences in a Range => Decimal # and < Whole or Decimal #

    With Excel 2003
    =SUMPRODUCT(--($AG$2:$AG$24>= 0.2), --($AG$2:$AG$24< 1))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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