+ Reply to Thread
Results 1 to 3 of 3

COUNTIF with the criteria being less than referenced cell.

  1. #1
    Registered User
    Join Date
    02-27-2007
    Posts
    27

    COUNTIF with the criteria being less than referenced cell.

    I have a list of numbers (which are ranks of another table) in B65:V65.

    I want to be able to count the number of times one of these 21 values is above half the values. Each week I add another number So after 1 week there is only a value in B65, after two weeks there is a value in B65 and C65 etc. Each week I want to count the number of times a value is in the top half.

    So I would like to have something like

    =COUNTIF($B65:$V65,">($A$2/2)")

    where A2 is the current week (currently 10). This is giving me fits because appearantly the COUNTIF doesn't allow the criteria to be a refernce. If I put the criteria as ,">($A$2/2)" I get a result of 0, but If I set the criteria to be ">5" then I would get 2.

    Any help would be greatly appreciated.

    -jed

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =COUNTIF($B65:$V65,">"&$A$2/2)

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =COUNTIF($B6:$V6,">"&$A$2/2)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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