+ Reply to Thread
Results 1 to 3 of 3

Index Sumproduct on date from date time

Hybrid View

  1. #1
    Registered User
    Join Date
    09-27-2018
    Location
    Malaysia
    MS-Off Ver
    MS Office 2010
    Posts
    28

    Index Sumproduct on date from date time

    Hi,

    I am trying to work on a overtime record whereby the overtime hours render on report the based on the month selected. However, my index sumproduct formula doesnt seen to execute as expected as my data were recorded in datetime format instead date. How to get the data in date instead datetime

    Formula: copy to clipboard
    =INDEX(Table2[[OT Hours]:[OT Hours]],SUMPRODUCT(--(Table2[[Name]:[Name]]=$B8),--(Table2[[Time In]:[Time In]]<=E$7),--(Table2[[Time In]:[Time In]]>=E$7),ROW(Table2[[OT Hours]:[OT Hours]]))-ROW(Table2[#Headers]))


    Your assistance is greatly appreciated. Attached is my workbook on the overtime record

    Thanks and Best Regards,
    Kenneth
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index Sumproduct on date from date time

    Please try INT

    =SUMPRODUCT(INDEX(Table2,,9),--($B8=INDEX(Table2,,1)),--(E7=INT(INDEX(Table2,,4))))

  3. #3
    Registered User
    Join Date
    09-27-2018
    Location
    Malaysia
    MS-Off Ver
    MS Office 2010
    Posts
    28

    Re: Index Sumproduct on date from date time

    Wow, ya, it worked prefect with INT , Thanks so much

+ 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: 8
    Last Post: 02-20-2018, 09:45 AM
  2. Index needed for date and time
    By wiewie002 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-20-2015, 06:22 AM
  3. Problem with Index(date+time)
    By DavidRoger in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-10-2015, 08:49 AM
  4. [SOLVED] Using SumProduct for dates inclusive of Year to Date, Month to date, Quarter to Date
    By cartica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 04:22 PM
  5. [SOLVED] Index Match Based on One Date Criteria, Table Contains Beginning Date and End Date
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2014, 02:41 PM
  6. Help with SUMIFS/SUMPRODUCT Formula? for date/time
    By auswtz in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-31-2013, 09:47 AM
  7. index or sumproduct for date
    By jw01 in forum Excel General
    Replies: 2
    Last Post: 11-30-2012, 03:01 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