Consulting

Results 1 to 6 of 6

Thread: Solved: countif - help required

  1. #1
    VBAX Regular
    Joined
    Jan 2010
    Posts
    35
    Location

    Smile Solved: countif - help required

    Hi,

    I just want to calculate count if for particular data

    eg:

    6/1/10 10:436/1/10 10:436/1/10 10:436/1/10 10:436/1/10 10:436/1/10 14:276/1/10 14:276/1/10 14:276/1/10 14:276/1/10 14:276/1/10 14:276/1/10 14:276/1/10 14:276/1/10 14:27

    for this as the time is different the formula is not giving the output.
    the date format cant be changed as well

    Help is appreciated
    Sathish

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Please post your sample data in a workbook, together with your formulae.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Regular
    Joined
    Jan 2010
    Posts
    35
    Location
    plz find the attached

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Simplest way is to add a "helper" column =INT(D2) and apply your COUNTIF to that.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    VBAX Regular
    Joined
    Jan 2010
    Posts
    35
    Location
    Thanks mate i will use it

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You can do it without a helper

    =SUMPRODUCT(--(INT($D$2:$D$25)=A2))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •