+ Reply to Thread
Results 1 to 4 of 4

sumproduct using DATE

  1. #1
    Registered User
    Join Date
    08-11-2021
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    24

    sumproduct using DATE

    Hi,

    i have the following formula in my vba userform

    Me.TextBox2.Value = Evaluate("SUMPRODUCT((Sheet1!$D$4:$AY$4= DATEVALUE(""" & ComboBox3.Value & """))*(Sheet1!$D6:$AY6))")

    i am trying to get the sumproduct of the month in combobox. i am not getting any result.

    the date is 1/7/2019

    Capture1.JPG

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: sumproduct using DATE

    shouldn't it read:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-11-2021
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    24

    Re: sumproduct using DATE

    yes. after editing that i still cant get the value.

    And, how can i keep the format of the date the same. currently, i having cell A1 to have the date selected in Combobox. but the format keeps changing. the days and months digits are swapping.

    Thank you

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: sumproduct using DATE

    Formatting date could be a problem depending on your system settings, etc. you may check values for instance
    Please Login or Register  to view this content.
    and instead of using
    Please Login or Register  to view this content.
    use
    Please Login or Register  to view this content.
    or possibly (if the msgbox showed day instead of month and month instead of day swap days and months
    Please Login or Register  to view this content.

+ 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] sumproduct adding date to time range only works for same date
    By mlan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-04-2021, 12:44 PM
  2. [SOLVED] Index Sumproduct on date from date time
    By SimChengKeng in forum Excel General
    Replies: 2
    Last Post: 11-19-2018, 12:07 PM
  3. [SOLVED] Sumproduct formula, add up by date, average by date
    By 3smees23 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-08-2017, 05:00 PM
  4. Replies: 10
    Last Post: 12-10-2014, 08:44 PM
  5. [SOLVED] Using SumProduct for dates inclusive of Year to Date, Month to date, Quarter to Date
    By cartica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 04:22 PM
  6. SumProduct using Date and Name
    By fengfeng in forum Excel General
    Replies: 6
    Last Post: 05-02-2012, 02:08 PM
  7. Sumproduct date help
    By homeofmike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-03-2005, 09:16 AM

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