+ Reply to Thread
Results 1 to 8 of 8

Thread: Sumifs function based on Date range and sales value

  1. #1
    Registered User
    Join Date
    02-04-2012
    Location
    Muscat
    MS-Off Ver
    Excel 2003
    Posts
    3

    Sumifs function based on Date range and sales value

    Hi..

    Please see the attached file. I need subtotal of sale of particular date range from a coloumn having more than one years datewise sales data.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-14-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    986

    Re: Need Help for fixing formulae

    It is way past my bed time so I took the easy way by adding a helping column to check the date criteria. If the date fall in between the date range, it will result true. Then use SumIF function to sum all the ones that = True.
    Attached Files Attached Files
    To thank someone who has helped you, click on the star icon below their name.

    I hate reading

    Portfolio

    I need a job.
    I am young and incompetent

  3. #3
    Valued Forum Contributor
    Join Date
    12-03-2009
    Location
    Firenze, Italy
    MS-Off Ver
    Excel 2000 XP
    Posts
    436

    Re: Need Help for fixing formulae

    Hi,



    =SUMIFS(B:B,A:A,">="&"1/11/2011",A:A,"<="&"12/11/2011")
    =SUMIFS(B:B,A:A,">="&"13/11/2011",A:A,"<="&"19/11/2012")
    You could also write the date range in two cells out of the formulae.


    Regards
    Last edited by CANAPONE; 02-05-2012 at 06:04 AM. Reason: INVERTION
    -----------------------------------------------------

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

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

    Forum rules: http://www.excelforum.com/forum-rule...rum-rules.html

  4. #4
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Need Help for fixing formulae

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST

  5. #5
    Registered User
    Join Date
    02-04-2012
    Location
    Muscat
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need Help for fixing formulae

    Dear Canapone thanks for your immediate replay . i think your formulae will solve my problom. but when i tried to execute it it showing some formulae error. Can u please check the formulae again some , " ( or something missing.

    Thanks and regards

  6. #6
    Valued Forum Contributor
    Join Date
    12-03-2009
    Location
    Firenze, Italy
    MS-Off Ver
    Excel 2000 XP
    Posts
    436

    Re: Sumifs function based on Date range and sales value

    Hi,

    sorry I inverted the arguments: B:B (numbers you need to sum) goes first.


    =SUMIFS($B:$B,$A:$A,">="&"1/11/2011",$A:$A,"<="&"12/11/2011")
    Or if you write the two dates in H1 and I1

    =SUMIFS($B:$B,$A:$A,">="&H1,$A:$A,"<="&I1)
    .........


    =SUMIFS($B:$B,$A:$A,">="&"13/11/2011",$A:$A,"<="&"19/12/2012")
    or, again, if you write the second dates in H2 and I2:

    =SUMIFS($B:$B,$A:$A,">="&H2,$A:$A,"<="&I2)

    Please, see the file attached.



    Regards
    Attached Files Attached Files
    Last edited by CANAPONE; 02-05-2012 at 10:03 AM. Reason: grammar
    -----------------------------------------------------

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

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

    Forum rules: http://www.excelforum.com/forum-rule...rum-rules.html

  7. #7
    Registered User
    Join Date
    02-04-2012
    Location
    Muscat
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Sumifs function based on Date range and sales value

    Thank you very much dear. Now i simply solve my problom with the help of your formulae.

    Once again thanks and regards. Shihab

  8. #8
    Valued Forum Contributor
    Join Date
    12-03-2009
    Location
    Firenze, Italy
    MS-Off Ver
    Excel 2000 XP
    Posts
    436

    Re: Sumifs function based on Date range and sales value

    Hi, thanks for the kind feedback.
    -----------------------------------------------------

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

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

    Forum rules: http://www.excelforum.com/forum-rule...rum-rules.html

+ Reply to Thread

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.2.0