+ Reply to Thread
Results 1 to 15 of 15

Sumif using isdate

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Sumif using isdate

    Is it possible to use the isdate function in a sumif?

    Looking to sum column B if column a has a date in it (when an invoice is paid. Can't get it working myself so looking for some guidance as google isn't helping me right now

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Sumif using isdate

    Hi,

    What else do you have in column A, apart from the dates?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    Re: Sumif using isdate

    Hello,

    a sample workbook with some dummy data and which data should by sum would be helpful
    Greetings

    Tor


  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Sumif using isdate

    If you have only dates/text then you can apply this:

    =SUM(IF(ISNUMBER(DATES_RANGE)=TRUE,SUM_RANGE))

  5. #5
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Sumif using isdate

    Try something like;
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Sumif using isdate

    Belinda did not say that this is an array formula and needs to be entered with shift control enter

    sumproduct((ISNUMBER(DATES_RANGE))*(SUM_RANGE)) is a non array answer

    but neither will exclude a number in the range that isn't a date

  7. #7
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumif using isdate

    it's going to be blank, a date or maybe - if there was no invoice

  8. #8
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumif using isdate

    Quote Originally Posted by belinda200 View Post
    If you have only dates/text then you can apply this:

    =SUM(IF(ISNUMBER(DATES_RANGE)=TRUE,SUM_RANGE))
    That didn't work, no wait that worked as an array. Cheers

  9. #9
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Sumif using isdate

    Please look at the attached:

    D3 =SUM(IF(ISNUMBER(A1:A3)=TRUE,B1:B3))
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Sumif using isdate

    Dvash is right, it is an array formula.
    In order to produce the result - you need to press Ctrl+Shift+Enter (press and hold Ctrl, press and hold Shift, then press Enter and let go of all three). After we finish entering the formula with Ctrl+Shift+Enter, the formula will be surrounded by curly braces {=…}

  11. #11
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Sumif using isdate

    Quote Originally Posted by davsth View Post
    Belinda did not say that this is an array formula and needs to be entered with shift control enter

    sumproduct((ISNUMBER(DATES_RANGE))*(SUM_RANGE)) is a non array answer

    but neither will exclude a number in the range that isn't a date
    I beg to Differ. The SUMIF works OK with a number or text or a blank for that matter.

  12. #12
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Sumif using isdate

    Croweater you are correct the sumif function is not an array formula

    However Belinda provided SUM(IF(ISNUMBER(A1:A3)=TRUE,B1:B3)) which is an array formula, not a sumif in sight!

  13. #13
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Sumif using isdate

    Davsh - now I see that my formula works without the CSE. could this be?

  14. #14
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Sumif using isdate

    its solved so not to worry ! it would work for the first line, does it work for the second, often arrays without being entered look at the first line so

    SUM(IF(ISNUMBER(A1)=TRUE,B1))

    but it works so I am not really bothered!

  15. #15
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Sumif using isdate

    OK, thank you

+ 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] IsDate Function
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2014, 10:07 AM
  2. isDate - excel form -VBA
    By lifeseeker1019 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2014, 07:42 PM
  3. [SOLVED] IsDate & SetFocus
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2013, 09:16 PM
  4. [SOLVED] IsDate
    By april27 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-16-2006, 09:20 AM
  5. [SOLVED] vba: isDate function
    By phil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2006, 12:35 AM
  6. CDate and IsDate
    By Geoff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2005, 10:05 AM
  7. VBA function , IsDate() not available
    By Office Engineer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2005, 03:05 AM
  8. IsDate Function Question
    By lehainam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2005, 08:17 AM

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