Results 1 to 10 of 10

Formual with 2 Criteria using SUMIF and a date range

Threaded View

Michael_GR Formual with 2 Criteria using... 03-13-2013, 05:33 PM
Harribone Re: Formual with 2 Criteria... 03-13-2013, 05:54 PM
Michael_GR Re: Formual with 2 Criteria... 03-13-2013, 06:09 PM
Harribone Re: Formual with 2 Criteria... 03-13-2013, 06:33 PM
Michael_GR Re: Formual with 2 Criteria... 03-13-2013, 06:57 PM
Michael_GR Re: Formual with 2 Criteria... 03-13-2013, 06:49 PM
Harribone Re: Formual with 2 Criteria... 03-13-2013, 06:54 PM
newdoverman Re: Formual with 2 Criteria... 03-13-2013, 07:16 PM
Harribone Re: Formual with 2 Criteria... 03-13-2013, 07:17 PM
Michael_GR Re: Formual with 2 Criteria... 03-13-2013, 07:53 PM
  1. #9
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Formual with 2 Criteria using SUMIF and a date range

    SUMIFSDATERANGE.xlsx

    In the attached file I have included a date range in two cells J25 and J26, this is the first day of march and the last day of march.

    So for Shad ("SM") the value for sales is calculated from the data in A:F when A = "SM" and B is >= J26 (start of month) and B <= J27 (end of month).
    The same is done for the Dollars total.

    =IFERROR(SUMIFS(D:D,A:A,"SM",B:B,">="&J25,B:B,"<="&J26),"")
    =IFERROR(SUMIFS(E:E,A:A,"SM",B:B,">="&J25,B:B,"<="&J26),"")
    Obviously you can change the location of the date range cells, I just chucked them in there for ease.

    EDIT: Instead of referencing the date range cells you can modify the formulas and type in the date ranges yourself, I did it that way so you can simply change the range in one place and therefore update everyone's info in one go (once they have formulas set up).
    Last edited by Harribone; 03-13-2013 at 07:20 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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