+ Reply to Thread
Results 1 to 2 of 2

DCOUNT or countif Formula

  1. #1
    Registered User
    Join Date
    11-26-2008
    Location
    Canada
    Posts
    2

    DCOUNT or countif Formula

    Need some help with a formula.
    I currently have a range of cells that have some information in each.
    Columns A to AC
    Column M contains a Numb 0-9
    Column F contains a number as well (time displayed in days e.g. 1=24 hrs)
    I have some labels such as:
    0-1
    1-4
    4-5
    5-24 and so on...
    What I need is a formula for each of the labels above.
    For instance: I need to count all rows where Column M contains let's say the Number 2 and where column F is =>0 but less then 1, the second label would be =>1 but <4, etc....
    Is there a way to do this using a formula, or would it be faster to calculate using VBA?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Something like:

    =Sumproduct(--(M1:M100=2),--(F1:F100>=0),--(F1:F100<1))

    adjust ranges to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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