+ Reply to Thread
Results 1 to 6 of 6

Excel query trying to count values

  1. #1
    Registered User
    Join Date
    12-05-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    7

    Excel query trying to count values

    Hello there I have a excel spreadsheet that groups number of calls I get in a 15 min time range grouped by date.
    The example below may be better at explaining.

    Date Total Number
    01/03/2016 10
    Time Slot Number of calls
    08:00 5
    08:15 6

    This will carry down for the month.
    What I am looking at is a formula or simple way to find out how many calls I took by first Date then time and generate that in a table
    Again example table I generate manually is

    Date 08:00 08:15 08:30
    01/03/16 5 5 3

    I make these manually and it can take me ages to gather and count the data and i'm sure there is a easier way to sort this data out.
    Thanks for any help you can provide.

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

    Re: Excel query trying to count values

    Can you post a SMALL sample file with about 20 rows worth of data so we can see how the data and table is structured?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-05-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Excel query trying to count values

    01/03/2016 10
    10:45 1
    11:00 1
    11:15 0
    12:00 1
    12:15 1
    14:00 1
    14:30 1
    14:45 0
    15:00 1
    15:15 1
    15:30 0
    15:45 1
    16:00 1
    02/03/2016 8
    09:15 1
    10:45 1
    12:30 1
    12:45 2
    13:00 1
    13:15 1
    13:30 1
    03/03/2016 13
    09:15 1
    09:30 0
    10:00 1
    10:45 1
    11:00 2
    11:15 0
    12:15 1
    13:00 1
    13:15 3
    15:30 1
    16:15 1
    16:30 1
    04/03/2016 13
    09:00 1
    09:15 0
    10:30 1
    10:45 1
    11:00 1
    13:00 1
    13:15 1
    14:00 2
    14:15 0
    14:30 1
    14:45 1
    15:00 0
    16:00 1
    16:15 1
    16:30 1

  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: Excel query trying to count values

    How does that look in the spreadsheet?

  5. #5
    Registered User
    Join Date
    12-05-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Excel query trying to count values

    Column A has the Dates then the items for each date underneath.
    Column B has the number of times we had calls on the time and total on the date
    A B
    01/03/16 19
    08:15 6
    08:30 7
    09:00 6
    02/03/16 5
    08:00 3
    10:00 2

    Any time slots that do not show is because no calls were picked up or recieved.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Excel query trying to count values

    Perhaps,

    try

    D1=IF(LARGE($A$1:$A$51,ROW(1:1))>1,LARGE($A$1:$A$51,ROW(1:1)),"") and drag down it will return dates in D column

    E1=IFERROR(SMALL(OFFSET($A$1,MATCH($D1,$A$1:$A$51,0),,COUNTA($A$1:$A$51)-MATCH($D1,$A$1:$A$51,0)),COLUMNS($E1:E1)),"") and drag towards the cell for retrieving the time in columns.

    Check the attached file hope this is what you looking for.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark 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. Copying Values from Excel into Criteria line in Query
    By tylerf in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-19-2013, 05:07 PM
  2. now I have a query regarding worksheet function (Count IF) using in Excel VBA
    By gvreddyhr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2011, 03:06 AM
  3. Excel query - Represent negative values
    By Siva Rao in forum Excel General
    Replies: 4
    Last Post: 08-10-2011, 09:00 AM
  4. Excel count query
    By abirami in forum Excel General
    Replies: 8
    Last Post: 02-26-2011, 07:21 AM
  5. Passing values between excel and access, query modification.
    By Bmoe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2010, 08:36 AM
  6. Replies: 5
    Last Post: 05-09-2006, 01:25 PM
  7. Excel query via ODBC cuts values
    By escelinen in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 01:40 AM
  8. sql query for excel column values
    By Daniel Seipel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2005, 04:07 AM

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