+ Reply to Thread
Results 1 to 6 of 6

sumif formula

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    18

    Question sumif formula

    I have a a schedule I would like to count how many people are scheduled during a certain time frame.

    2:45 AM - 11:30 AM
    5:45 AM - 2:30 PM
    8:45 AM - 5:30 PM
    8:45 AM - 2:30 PM
    8:45 AM - 5:30 PM
    8:45 AM - 7:30 PM
    6:45 PM - 3:00 AM

    Column A is the "in" time and Column C is the "out" time. (Column B is the "-")

    I would like to count how many people are scheduled at 3pm (answer is 3)

    I'm thinking I will need to use a sumproduct and an OR statement for this.

    Any help would be appreciated!! Thank you!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: sumif formula

    Hi Jwildcat,

    See if
    =COUNTIFS(A1:A7,"<"&E1,C1:C7,">"&E1)
    doesn't do what you are asking for.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: sumif formula

    Looks like that works great!

    Is there anyway to account people who work through midnight?
    example:

    6:45 PM - 3:00 AM
    6:45 PM - 3:00 AM
    4:45 PM - 3:00 AM
    9:45 PM - 6:00 AM
    4:45 PM - 10:00 PM

    People that are schedule at 1am?

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: sumif formula

    I think you'd need to put a Date and Time in all you cells to deal with the "through midnight" question.
    The formula should work if you added dates and times to all cells.

  5. #5
    Registered User
    Join Date
    06-29-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: sumif formula

    Hmm...it doesn't seem to work. Any ideas?
    Attached Files Attached Files

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: sumif formula

    You need to put the date in the question cell also. See this attached.

+ 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: 09-16-2014, 10:13 AM
  2. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  3. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  4. SumIF formula with criteria is Text inside a Formula?
    By excellentlearner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2012, 06:40 PM
  5. Replies: 1
    Last Post: 01-22-2012, 02:47 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