+ Reply to Thread
Results 1 to 4 of 4

Problem with SUMIFS within date range and one criteria

  1. #1
    Registered User
    Join Date
    06-07-2016
    Location
    singapore
    MS-Off Ver
    2013
    Posts
    2

    Problem with SUMIFS within date range and one criteria

    Hi Guys,

    Not sure whether is it possible but I would like to sum the total price of an work order (Sheet Attendance @ Column C2) within a date range specified.

    My formula i tried based on my understand around the web, is written at Sheet Report @ Col. I6)

    However it keep return as #value despite formatting the data to dates.

    Or is it i cant simply sum a range of dates within a range of columns specified?

    Please advise on this. Thank you
    Attached Files Attached Files
    Last edited by erikku; 04-12-2017 at 09:15 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Problem with SUMIFS within date range and one criteria

    Welcome to the forum and thanks for attaching a workbook!

    You are going to need to do a bit of explaining ... In your formula:

    =SUMIFS(Attendance!AP:AP,Attendance!H:AN,">="&Report!D1,Attendance!H:AN,"<="&F1,Attendance!C:C,Report!C6)

    the range H:AN is referenced, but there is no data in it, so what is Excel expected to do with it? Why is it being referenced at all when the calculation needed is using summary data from column AP? I really don't understand how you are expecting to identify data between dates when there is no data in the date columns on the attendance sheet.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Problem with SUMIFS within date range and one criteria

    Hi AliGW, hi Erikku

    Column A in "attendance" sheet could be helpful to match relevant date range

    In I6


    =SUMIFS(Attendance!AP:AP,Attendance!C:C,C6,Attendance!A:A,">="&MONTH(D$1),Attendance!A:A,"<="&MONTH(F$1))


    Just an attempt, I hope it could be of some help.
    Attached Files Attached Files
    Last edited by canapone; 04-12-2017 at 06:02 AM.
    -----------------------------------------------------

    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.

  4. #4
    Registered User
    Join Date
    06-07-2016
    Location
    singapore
    MS-Off Ver
    2013
    Posts
    2

    Re: Problem with SUMIFS within date range and one criteria

    Quote Originally Posted by AliGW View Post
    Welcome to the forum and thanks for attaching a workbook!

    You are going to need to do a bit of explaining ... In your formula:

    =SUMIFS(Attendance!AP:AP,Attendance!H:AN,">="&Report!D1,Attendance!H:AN,"<="&F1,Attendance!C:C,Report!C6)

    the range H:AN is referenced, but there is no data in it, so what is Excel expected to do with it? Why is it being referenced at all when the calculation needed is using summary data from column AP? I really don't understand how you are expecting to identify data between dates when there is no data in the date columns on the attendance sheet.
    Hi Aligw, Thanks for the pointers i will further explain it on this.

    The reason why i referenced range H:AN is i wanted to referenced the dates (Range: H:AN) as the criteria range data for it to match with the date at "Report!D1".

    I wanted the sumif function to be able to pick up total price based at "Attendance!AP:AP" so long if fall within the date range stated between "Report!D1" and "Report!C6".

    Quote Originally Posted by canapone View Post
    Hi AliGW, hi Erikku

    Column A in "attendance" sheet could be helpful to match relevant date range

    In I6


    =SUMIFS(Attendance!AP:AP,Attendance!C:C,C6,Attendance!A:A,">="&MONTH(D$1),Attendance!A:A,"<="&MONTH(F$1))


    Just an attempt, I hope it could be of some help.
    Yes, thanks a lot for this method does get what i wanted. I guess most probably my formula will not work because the dates are set horizontally across from range H:AN.
    Last edited by erikku; 04-12-2017 at 09:14 PM.

+ 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 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
  2. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  3. Replies: 3
    Last Post: 12-09-2015, 03:10 AM
  4. SUMIFS date range problem
    By heyryy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-19-2015, 12:21 PM
  5. [SOLVED] SUMIFS + Multi criteria + Date Range
    By eyeope in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2014, 07:43 AM
  6. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 PM

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