1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Excel countif formula -will not work with cell reference

Discussion in 'Other PC Software' started by tomd2712, 2009/11/27.

  1. 2009/11/27
    tomd2712

    tomd2712 Inactive Thread Starter

    Joined:
    2009/02/18
    Messages:
    24
    Likes Received:
    0
    Hi Everyone

    I'm trying to get a countif formula to work in an excel spreadsheet, but it keeps giving me 0 as the count, which I know is the wrong count.

    The spreadsheet is being used to record information on sales, and the page that has the details of past sales has a section for the percentage of sales over and under target. I am wanting to have the countif look at a particular cell for the criteria so it is easy for the user to change the sales target. I typed the formula as =countif(O14:O39, "<L7 ") but it returns zero as the count, i have L7 set to £1100 currently, but no matter what value i change the cell value to, it stays as a count of zero. If I replace L7 with 1100 in the countif formula, it gives me a count of 8, so I know the rest of it is right, i'm just unsure whether excel will do countifs when the criteria is a cell reference.

    Does anyone know how to make this work?

    Thanks ^_^
     
  2. 2009/11/27
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    Use this formula:

    =COUNTIF(O14:O39, "< "&L7)
     

  3. to hide this advert.

  4. 2009/11/28
    tomd2712

    tomd2712 Inactive Thread Starter

    Joined:
    2009/02/18
    Messages:
    24
    Likes Received:
    0
    Thanks ^_^, that's saved me alot of work redoing my sheet :D
     
  5. 2009/11/28
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    I've marked this thread as 'Resolved', please see .....
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.