+ Reply to Thread
Results 1 to 7 of 7

Sumproduct Not Recognizing Dates - Help w/ Forumla

  1. #1
    Registered User
    Join Date
    09-13-2022
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    3

    Sumproduct Not Recognizing Dates - Help w/ Forumla

    Hello,

    I am trying to write a formula to help with financial disclosures for financing schedules. I need to display the amount of principal owed by year for the next 5 years and thought the best way to do this would be to use a sumproduct formula based up an entry date cell. This way I can automatically adjust the dates using the same workbook.

    However, my formulas are not working and I believe it is something to due with the date field. For example, I've written the formula =sumproduct(A1:A5<F2). Cells A1:A5 are months starting on 01/01/23 and cell F2 is the date 06/30/23. I would expect this formula to trigger a result of 5 as it should count 5 values that meet this criteria, but I am getting a result of 0. It seems that this is the starting point of my problem. Can someone help me understand where my thinking is off here?
    Attached Files Attached Files
    Last edited by Pistol575; 09-29-2023 at 02:59 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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,466

    Re: Sumproduct Not Recognizing Dates - Help w/ Forumla

    Welcome to the forum.

    If none of the dates in the range are the same as F2, you won't get a result.

    It would be easier if you provided a small, desensitised sample workbook.
    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
    Registered User
    Join Date
    09-13-2022
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    3

    Re: Sumproduct Not Recognizing Dates - Help w/ Forumla

    Hi Ali,

    Thank you for the welcoming & response and help - I just uploaded a sample workbook =)

    Can you help me explain why the date ranges would need to be the same & wouldn't recognize that they are less than the F2 referenced cell and be counted?

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,410

    Re: Sumproduct Not Recognizing Dates - Help w/ Forumla

    In the meantime you might try this since your formula returns an array of TRUE/FALSE and those need to be coerced into their underlying values of 1/0
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    With dates in A1:A5 I get 5 at my end.
    Dave

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,410

    Re: Sumproduct Not Recognizing Dates - Help w/ Forumla

    They do return TRUE. This returns 5
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-13-2022
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    3

    Re: Sumproduct Not Recognizing Dates - Help w/ Forumla

    You both are amazing. Thank you so much for the fast responses. I updated the sumproduct formula to include the (--) to coerce the values into 1/0 & they are now being summed and I get a result of 5.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,410

    Re: Sumproduct Not Recognizing Dates - Help w/ Forumla

    Good deal and you are welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Sumproduct Array not recognizing time after midnight
    By NorthBear in forum Excel General
    Replies: 1
    Last Post: 02-13-2019, 06:27 PM
  2. Slicer Not Recognizing Dates After Mar 31
    By golfdesigner in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-02-2018, 09:02 AM
  3. [SOLVED] Not recognizing dates in column using Countifs
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2016, 02:51 PM
  4. sumproduct formula with either or
    By amberj32 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2012, 07:04 PM
  5. SUMPRODUCT not recognizing text criteria
    By lallo.jr in forum Excel General
    Replies: 1
    Last Post: 05-10-2010, 10:42 PM
  6. Not recognizing dates in drop down menu
    By SheilaV in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2010, 01:27 PM
  7. Recognizing European Dates as Dates in Excel 2007
    By sdekker22 in forum Excel General
    Replies: 1
    Last Post: 10-25-2009, 05:07 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