+ Reply to Thread
Results 1 to 5 of 5

counting values within given interval - countif?

  1. #1
    A_F
    Guest

    counting values within given interval - countif?

    in a column L i have values that range from 1,3 to 3,5,.
    I want to count how many values are between lets say 2 and 2,5.
    i tried with this expression: =COUNTIF(L2:L450;AND(">2";"<2,5"))and it
    returns me 0.
    is it possible to count just how many values lies between given
    interval (2<2,5) and how can i do this?

  2. #2
    Franz
    Guest

    Re: counting values within given interval - countif?

    "A_F" <a_f@xyz.hr>ha scritto nel messaggio d5f4uo$1ds$1@bagan.srce.hr

    > in a column L i have values that range from 1,3 to 3,5,.
    > I want to count how many values are between lets say 2 and 2,5.
    > i tried with this expression: =COUNTIF(L2:L450;AND(">2";"<2,5"))and it
    > returns me 0.
    > is it possible to count just how many values lies between given
    > interval (2<2,5) and how can i do this?



    Youi can try this formula:

    =SUMPRODUCT((L2:L450>2)*(L2:L450<2,5))


    --
    Hoping to be helpful...

    Regards

    Franz

    ----------------------------------------------------------------------------------------
    To reply translate from italian InVento (no capital letters)
    ----------------------------------------------------------------------------------------



  3. #3
    A_F
    Guest

    Re: counting values within given interval - countif?


    >Franz wrote:
    > Youi can try this formula:
    >
    > =SUMPRODUCT((L2:L450>2)*(L2:L450<2,5))
    >
    >

    yes, it works, thanks a lot

  4. #4
    Bob Phillips
    Guest

    Re: counting values within given interval - countif?

    =COUNTIF(L2:L450;"<2,5")-COUNTIF(L2:L450;"<=2")

    --
    HTH

    Bob Phillips

    "A_F" <a_f@xyz.hr> wrote in message news:d5f4uo$1ds$1@bagan.srce.hr...
    > in a column L i have values that range from 1,3 to 3,5,.
    > I want to count how many values are between lets say 2 and 2,5.
    > i tried with this expression: =COUNTIF(L2:L450;AND(">2";"<2,5"))and it
    > returns me 0.
    > is it possible to count just how many values lies between given
    > interval (2<2,5) and how can i do this?




  5. #5
    Franz
    Guest

    Re: counting values within given interval - countif?

    "A_F" <a_f@xyz.hr>ha scritto nel messaggio d5far3$4d5$1@bagan.srce.hr

    >> Franz wrote:
    >> Youi can try this formula:
    >>
    >> =SUMPRODUCT((L2:L450>2)*(L2:L450<2,5))
    >>
    >>

    > yes, it works, thanks a lot


    You're welcome. Thanks for the feedback
    --
    Hoping to be helpful...

    Regards

    Franz

    ----------------------------------------------------------------------------------------
    To reply translate from italian InVento (no capital letters)
    ----------------------------------------------------------------------------------------



+ 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