+ Reply to Thread
Results 1 to 5 of 5

Sumif when range is date + time and crieteria is date

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Beawar (Ajmer)
    MS-Off Ver
    Excel 2016
    Posts
    35

    Sumif when range is date + time and crieteria is date

    Hello Friends,
    In the attached Excel Sheet. I want to add the total time of trucks waited on a particular date in the sheet 2 named datewise. The waiting time is mentioned in the sheet 1 named truckwise.


    Please help.

    Lokpal Singh Panwar
    Ajmer (Rajasthan)
    Attached Files Attached Files
    Last edited by lokpal.panwar; 03-12-2013 at 05:15 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sumif when range is date + time and crieteria is date

    Try in H7 and copy down.

    =SUMPRODUCT(((DAY(Truckwise!$K$5:$K$100)=DAY(Datewise!B7))*(Truckwise!$M$5:$M$100)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    03-05-2013
    Location
    Beawar (Ajmer)
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Sumif when range is date + time and crieteria is date

    In the same file if i want to count also the no. of trucks then ??

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sumif when range is date + time and crieteria is date

    In F7 and copy down.

    =SUMPRODUCT((DAY(Truckwise!$K$5:$K$100)=DAY(Datewise!B7))*(Truckwise!$J$5:$J$100<>""))

  5. #5
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Sumif when range is date + time and crieteria is date

    There u go.....
    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)

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