+ Reply to Thread
Results 1 to 5 of 5

Counting data

  1. #1
    Registered User
    Join Date
    06-12-2015
    Location
    Manchester
    MS-Off Ver
    2010
    Posts
    4

    Counting data

    Hey,

    I am a big novice when it comes to Excel and I am trying to make a formula to count a few bits of data.

    What I need is for the formula to look at column F and count a specific time range i.e if any times displayed are between 9am-12pm. The extra condition is in Colum F there will be either a number 1 or a number 3.

    The end result would to have 2 boxes that count the amount of inputs in F between 9-12 compared to what is displayed in F.


    An example of the data inputted would be;

    F --------- H
    09:00----- 1
    09:18----- 3
    10:25------1
    10:36----- 1
    11:34----- 3


    The end result - 1 = 3
    --------------------- 3 = 2

    Would this be possible?

    Thank you in advance for your reply's.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Counting data

    Just use a COUNTIFS statement - add a criterion for each of the times (start and end) and one for the column H criterion.

    Excel 2016 (Windows) 32 bit
    A
    B
    1
    F H
    2
    09:00
    1
    3
    09:18
    3
    4
    10:25
    1
    5
    10:36
    1
    6
    11:34
    3
    Sheet: Sheet1

    For the ones:

    =COUNTIFS($A$2:$A$6,">="&TIME(9,0,0),$A$2:$A$6,"<="&TIME(12,0,0),$B$2:$B$6,1)

    For the threes:

    =COUNTIFS($A$2:$A$6,">="&TIME(9,0,0),$A$2:$A$6,"<="&TIME(12,0,0),$B$2:$B$6,3)
    Last edited by AliGW; 10-27-2019 at 05:35 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Counting data

    By the way, are you still using Excel 2010? If not, then please update your user profile to show which version you are now using.

  4. #4
    Registered User
    Join Date
    06-12-2015
    Location
    Manchester
    MS-Off Ver
    2010
    Posts
    4

    Re: Counting data

    Thank you so much.

    This has worked and is going to make things so much more easier.


    Thanks for your prompt replies

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Counting data

    No worries - please update your profile as requested, if appropriate.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Replies: 2
    Last Post: 12-11-2014, 12:50 PM
  2. [SOLVED] Counting specific data and extracting that data by rearranging by assigning numbering
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-25-2014, 07:11 AM
  3. Replies: 3
    Last Post: 05-23-2014, 09:31 AM
  4. [SOLVED] Filter Data based upon multiple criteria and counting the data
    By Acidking in forum Excel General
    Replies: 5
    Last Post: 06-13-2013, 09:42 PM
  5. Replies: 6
    Last Post: 02-04-2012, 06:57 PM
  6. counting cells with data without counting duplicates
    By labettis in forum Excel General
    Replies: 2
    Last Post: 11-05-2007, 12:10 PM
  7. Counting data in non blank cells and exclude certain data from the count
    By JohnG73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2007, 04:08 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