+ Reply to Thread
Results 1 to 11 of 11

Count if Formula

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Count if Formula

    Hello,

    Could you please help me with my formula. I'm trying to count the numbers of data from 9:00 PM - 4:00 AM.
    I have a CountIf formula in sheet2 but still it gives me no result.

    I have attached my file.
    Thanks in advance!
    Attached Files Attached Files
    Last edited by siobeh; 05-11-2014 at 09:23 PM.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Count if Formula

    Sorry wrong posting
    Last edited by azumi; 05-11-2014 at 11:36 PM.

  3. #3
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Count if Formula

    Hi Azumi,

    thanks for the reply, how about the counting the data from 9:00 PM - 4:00 AM by 'Division'
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count if Formula

    Quote Originally Posted by azumi View Post

    =COUNT(IF((Sheet1!$E$2:$E$45>=J$6)*(Sheet1!$E$2:$E$45>=J$6)*(Sheet1!$F$2:$F$45=$F7),1))

    Array Formula, you need to press CTRL-SHIFT-ENTER button together when implemented the formula and then copied down...
    I didn't look at the file but you've repeated the first criteria.

    Looks like a normally entered COUNTIFS will do.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Count if Formula

    Hi Tony,

    can you help me with this?

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count if Formula

    I downloaded your file and I don't understand what you're wanting to count with that.

    Sheet2 is very confusing!


  7. #7
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Count if Formula

    Hi Tony,

    Please see attached my original file.

    I had the formula in Sheet2, what i want to accomplish is, count the the data from 9:00 PM - 4:00 AM by division.

    For example for 'FDS APJ ANZ', there is a data from '3:45:52 AM', so it should count in 'J7' in Sheet2, but my formula is not working. It's the same with 'FDS APJ SEA'
    Attached Files Attached Files

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count if Formula

    It's getting late where I'm at.

    Someone will probably come by and help out. I'll check back tomorrow.

  9. #9
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Count if Formula

    Hi Siobeh,

    The problem you had was that you were calculating > 9PM and < 4AM on the same day. In decimals this translates to > 0.875 and < 0.1666. can't be done....

    Try this formula;

    Please Login or Register  to view this content.
    Just need to change the cell reference for ASIA.

  10. #10
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Count if Formula

    Because excel treats times without dates as being on the same day (day 0) there are no times that are less than 4am and greater than 9pm - ie. it's impossible.

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by gak67; 05-12-2014 at 05:42 AM.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Count if Formula

    Pl see attached file.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count formula not count hidden cells in table
    By tlacloche in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 02:35 PM
  2. [SOLVED] Count and average formula needed to not count text field
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-07-2013, 05:30 PM
  3. [SOLVED] text count issue, it seems to count the formula also?
    By randypang in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2013, 03:27 AM
  4. Replies: 5
    Last Post: 08-29-2012, 05:25 PM
  5. Count Formula-Would this be a good example to use the count function?
    By JK1234 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-01-2008, 02:44 PM

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