+ Reply to Thread
Results 1 to 7 of 7

How to extract sumifs data based on date

  1. #1
    Registered User
    Join Date
    12-16-2019
    Location
    indonesia
    MS-Off Ver
    excel 2016
    Posts
    21

    How to extract sumifs data based on date

    I need extract data in one month per day, but only in name of date like sunday, monday
    already know how sumifs works but the problem is date formula can't extract the data except the data must have match case
    note : the data in coloumn 3 only contain 7 row, name of 7 days, not the date name off all dates

    date product days final
    Sunday, 02 September 2019 2 sunday ?
    Monday, 03 September 2019 10 Monday ?
    Tuesday, 04 September 2019 3 Tuesday ?
    Wednesday, 05 September 2019 5 Wednesday ?
    Attached Files Attached Files
    Last edited by arsyan; 12-16-2019 at 08:01 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: How to extract sumifs data based on date

    List the days of the week (Sunday, Monday, Tuesday etc.) in the cells E2:E8, then you can use this formula in F2:

    =SUMPRODUCT(--(TEXT($A$2:$A$20,"dddd")=E2),$B$2:$B$20)

    Copy down to F8.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-16-2019
    Location
    indonesia
    MS-Off Ver
    excel 2016
    Posts
    21

    Re: How to extract sumifs data based on date

    sorry i thought its not working, i delete your "--"
    but its working thank you
    Last edited by arsyan; 12-16-2019 at 07:37 AM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: How to extract sumifs data based on date

    Here's the file I worked on:

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to extract sumifs data based on date

    In "C2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In "D2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy paste down.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Registered User
    Join Date
    12-16-2019
    Location
    indonesia
    MS-Off Ver
    excel 2016
    Posts
    21

    Re: How to extract sumifs data based on date

    can you explained what "--" in (--( supposed to mean?

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: How to extract sumifs data based on date

    Each element of the range $A$2:$A$20 will be compared with E2 to see if there is a match. This will result in an array made up of TRUE or FALSE values. The double unary minus ( -- ) will convert (coerce) this into an array of 1s and 0s, and each element of that will be multiplied by the corresponding element of the range $B$2:$B$20 and the result will then be added together. Obviously, zero times anything results in zero, so effectively the formula will sum the values from column B where column A cells are for the day of the week given in column E.

    Hope this helps.

    Pete

+ 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. [SOLVED] sumifs formula to extract first left item based on Crteria
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-15-2019, 01:20 AM
  2. Replies: 2
    Last Post: 10-18-2017, 02:12 PM
  3. How to extract data from another worksheet based on Start Date, End Date
    By xBadBoi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2016, 03:20 PM
  4. extract data by date range and place in different tabs based on name
    By Sway1978 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2013, 03:35 PM
  5. Extract Data based on Date
    By ngor3431 in forum Excel General
    Replies: 1
    Last Post: 05-31-2012, 09:03 PM
  6. Extract data based on date?
    By peejayw in forum Excel General
    Replies: 7
    Last Post: 12-03-2008, 09:54 AM
  7. how to extract data based on date
    By vidhya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2005, 06:05 AM

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