+ Reply to Thread
Results 1 to 8 of 8

SUMIFS for date range (read from a cell) and text criteria not working

  1. #1
    Registered User
    Join Date
    05-02-2019
    Location
    Vienna
    MS-Off Ver
    2013
    Posts
    3

    SUMIFS for date range (read from a cell) and text criteria not working

    Hi everyone,

    Would anyone of you please find time to look at this:

    Please Login or Register  to view this content.
    whatever I use I cannot get the date range defined by the month (1-Apr-2019) whether I use DATEVELUE, or TEXT, or just plain reference the cell N1 in the header of the column. Rest is read from another table and seems to process correctly. Basically the Transactions sheet is a huge sheet with all transactions and the table I am in is creating an overview on a month by month basis.

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: SUMIFS for date range (read from a cell) and text criteria not working

    What is the value in N1? Is it an actual date, or text formatted as a date, or something else?
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  3. #3
    Registered User
    Join Date
    05-02-2019
    Location
    Vienna
    MS-Off Ver
    2013
    Posts
    3
    Quote Originally Posted by Melvosh View Post
    What is the value in N1? Is it an actual date, or text formatted as a date, or something else?
    Yes, it is an actual date. Are use the first day of the month so that the range can be calculated as interval between this date and the end of month function.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIFS for date range (read from a cell) and text criteria not working

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMIFS for date range (read from a cell) and text criteria not working

    Quote Originally Posted by meny_ View Post
    Yes, it is an actual date.
    If N1 contains an actual date, then

    DATEVALUE(N$1)

    will error, meaning that the entire construction will always result in 0.

    It sounds like you've already attempted the correct:

    =SUMIFS(Transactions!$C:$C,Transactions!$D:$D,"Adventures",Transactions!$A:$A,">="&N$1,Transactions!$A:$A,"<="&EOMONTH(N$1,1))

    though why that doesn't work for you would require seeing an actual workbook, as 63falcondude requested.

    Regards
    Click * below if this answer helped

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

  6. #6
    Registered User
    Join Date
    05-02-2019
    Location
    Vienna
    MS-Off Ver
    2013
    Posts
    3

    Re: SUMIFS for date range (read from a cell) and text criteria not working

    Thank you very much for looking into my problem. I now attach the full table, after removing a few identifiable points..

    So far the function is only in the light blue cells which will then be extended to many more categories once it's working.

    I have much more plans for my budgeting. It's my family budget, as you can see.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: SUMIFS for date range (read from a cell) and text criteria not working

    Hi

    attempt, in L25 to be copied across


    =-Sumifs(Transactions!$C:$C,Transactions!$D:$D,$A25,Transactions!$A:$A,">="&L$1,Transactions!$A:$A,"<="&eomonth(L$1,0))
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  8. #8
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,001

    Re: SUMIFS for date range (read from a cell) and text criteria not working

    Hi

    B25=-SUMPRODUCT((Transactions!$D$2:$D$48=Overview!$A25)*(MONTH(Transactions!$A$2:$A$48)=MONTH(Overview!B$1))*(YEAR(Transactions!$A$2:$A$48)=YEAR(Overview!B$1))*(Transactions!$C$2:$C$48))

    copy across and down in b25

    b26

+ 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. SUMIFS with Text and Date criteria
    By Elamasin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2018, 01:51 PM
  2. [SOLVED] Problem with SUMIFS within date range and one criteria
    By erikku in forum Excel General
    Replies: 3
    Last Post: 04-12-2017, 09:11 PM
  3. [SOLVED] SUMIFS criteria not working due to number as text
    By krazyhype19 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2017, 02:29 AM
  4. [SOLVED] Sumifs with date criteria, but the range includes time with the date
    By Alphabex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2017, 12:08 AM
  5. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  6. [SOLVED] SUMIF/SUMIFS not working using Date fields as criteria
    By waynees in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 09:24 AM
  7. [SOLVED] Sumifs for two date range not working
    By SheetalGanesh in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-12-2012, 04:56 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