+ Reply to Thread
Results 1 to 4 of 4

can I use SUMIFs and the "AND" function to return based on date values?

  1. #1
    Forum Contributor
    Join Date
    11-11-2004
    MS-Off Ver
    pro + 2019
    Posts
    134

    can I use SUMIFs and the "AND" function to return based on date values?

    Good morning gurus,

    got a column of dates;
    got a column of boring numbers next to it.


    Is there an elegant way to write a formula that uses SUMIFS to sum up some values (just numbers) when I give two dates--just sum the numbers at and within those dates?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: can I use SUMIFs and the "AND" function to return based on date values?

    SUMIFS() should do that
    assuming column A = date
    Column B to sum

    =SUMIFS( B1:B100 , A1:A100 , ">="& date , "<="& date )

    A sample sheet would help - see yellow banner

    you can use cells with the required dates in or hardcode in the function

    Not sure why your title says SUMIFS & and an AND - maybe more to the question then i understand, hence suggested spreadsheet
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: can I use SUMIFs and the "AND" function to return based on date values?

    SUMIFS is, effectively, ANDing conditions together. For example,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    11-11-2004
    MS-Off Ver
    pro + 2019
    Posts
    134

    Re: can I use SUMIFs and the "AND" function to return based on date values?

    DISREGARD, it was quite obvious after some work.

+ 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. countif to return "x" for unique & "xx" for duplicate values in a column
    By Shruder in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2018, 05:31 PM
  2. Help with lookup formula to return "Available" or "Unavailable" based on last entry
    By AntonyCole1979 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2017, 05:14 PM
  3. [SOLVED] Help with lookup formula to return "Available" or "Unavailable" based on last entry
    By AntonyCole1979 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2017, 12:28 PM
  4. Replies: 3
    Last Post: 04-14-2013, 11:53 PM
  5. Return "green", "yellow" or "red" from date/age and priority ranking
    By Cantaloop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 12:12 AM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. Replies: 5
    Last Post: 01-28-2010, 04:04 PM

Tags for this Thread

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