+ Reply to Thread
Results 1 to 12 of 12

[Excel 2010] Daily summary from date+time values

  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Question [Excel 2010] Daily summary from date+time values

    Hello Everyone,



    I have a sheet1 with date+time and values:

    2010/07/12 04:39:50 ; 100
    2010/07/12 14:52:10 ; -10
    2010/07/13 01:56:34 ; 100
    2010/07/13 12:41:02 ; 50
    etc.

    On another sheet2, I am attempting to make a "daily summary" using a SUMIF

    2010/07/12 ; =SUMIF((sheet1!A:A),A1,sheet1!B:B) //result should be 90
    2010/07/13 ; =SUMIF((sheet1!A:A),A2,sheet1!B:B) //result should be 150
    etc.

    The issue is, sheet1 features date+time and sheet2 only the date (it seemsthe time value is 00:00:00 by default), and the SUMIF() returns 0.

    I have tried many workarounds, but none worked. Do you have any idea on how to make this work?

    Many thanks,
    Last edited by duration; 08-02-2010 at 02:25 AM. Reason: Wrong title

  2. #2
    Forum Contributor
    Join Date
    07-16-2009
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: [Excel 2010] Daily summary from date+time values

    Is the 100 and - 10 in a seperate cell? What does it represent.

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Re: [Excel 2010] Daily summary from date+time values

    Hello Flebber,

    Thank you for your reply.

    Yes, the 100, -10 etc. values are in a separate cell.

    I have separated cells with a semi-column to write in the forum.

    They are account transactions.

  4. #4
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Re: [Excel 2010] Daily summary from date+time values

    I have added a few pictures if this is unclear.
    Attached Images Attached Images

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: [Excel 2010] Daily summary from date+time values

    What would be more useful would be a workbook with dummy data in.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: [Excel 2010] Daily summary from date+time values

    Maybe
    Please Login or Register  to view this content.
    Enter with ctrl/shift/enter.

    I'm not sure, but it might me more efficient if you refer to a limitid range instead of to the entire columns.

  7. #7
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Re: [Excel 2010] Daily summary from date+time values

    Hello RoyUK,

    Thank you for your reply. Here you is the book.

    Many thanks,
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Re: [Excel 2010] Daily summary from date+time values

    Hello Estige,

    Sorry it does not work, with or without array.

    Many thanks,

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: [Excel 2010] Daily summary from date+time values

    I think the most efficient way would be a PivotTable, with the dates Grouped by Days
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: [Excel 2010] Daily summary from date+time values

    royUK is probably right, but here is your workbook with my suggestion. It seems to work just fine to me?
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-02-2010
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: [Excel 2010] Daily summary from date+time values

    I see you have Excel 2010, you could use SUMIFS:

    2010/07/12; =SUMIFS(Sheet1!B:B, Sheet1!A:A, ">="&Sheet2!A1, Sheet1!A:A, "<"&A2)
    2010/07/13; =SUMIFS(Sheet1!B:B, Sheet1!A:A, ">="&Sheet2!A2, Sheet1!A:A, "<"&A3)
    2010/07/14;
    etc...

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: [Excel 2010] Daily summary from date+time values

    I think the Pivottable would be better than Sumifs. Here's an example for 2007.

    Note: the data is set as Table, now as you add data to the table you can open the Summary sheet and select a cell in the PivotTable and click Refresh in the Data group on the Options tab of the ribbon.
    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)

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