+ Reply to Thread
Results 1 to 4 of 4

Checking time values in a column.

  1. #1
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Checking time values in a column.

    I have a column with a bunch of times in the "10:00 AM" format. In the next column I have corresponding sales for that time. I need to sum all the sales for each time period (i.e. 10:00 AM, 10:30 AM, 11:00 AM, etc.)

    In a similar example, I used this formula with MONTH, but I can't figure out what to use for time values:
    =SUM(IF(MONTH($C$5:$C$4244)=11,$I$5:$I$4244))

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Checking time values in a column.

    Hello,

    You can probably use the HOUR() fonction.

    Also, please note that in Excel, each day has a value of 1
    one day = 1.0
    one hour = 1/24
    one minute = 1/24/60

    So 10:00 AM = 10/24

    If it doesn't help, please post a sample file.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Re: Checking time values in a column.

    Ah, got it!

    Here's the formula I got to work:
    =SUM(IF($X$5:$X$4244=TIME(10,0,0),$Y$5:$Y$4244))

    I guess I just didn't have the "TIME(10,0,0)" syntax correct.

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Checking time values in a column.

    Maybe also :

    =SUM(IF(HOUR($X$5:$X$4244)=10,$Y$5:$Y$4244))

    (not tested)

+ 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. Checking a column for a number of values
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-27-2012, 06:40 PM
  2. Adding up values after checking a column
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 11-04-2011, 03:18 AM
  3. Error checking: make sure that ID values increase by one digit at a time
    By vzc8 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-21-2011, 11:01 AM
  4. Replies: 8
    Last Post: 09-26-2008, 10:38 AM
  5. Checking column for duplicate values and appending
    By Elmer in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-11-2008, 07:25 PM

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