+ Reply to Thread
Results 1 to 7 of 7

Date range selector fails to work

  1. #1
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Date range selector fails to work

    Hello all,

    Using SUMIFS, the basic one criteria works correctly, but when I try to use a date range selector as criteria 2 and 3, if fails.

    I cant work out why.

    =SUMIFS(Data!H:H,Data!C:C,A2,Data!M:M, ">="&H1,Data!M:M, "<="&H2)

    Thanks BVG
    Attached Files Attached Files
    Last edited by Badvgood; 03-26-2020 at 04:09 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Date range selector fails to work

    The "dates" in column M are text not real dates. The best option would be to convert them to real dates

  3. #3
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Date range selector fails to work

    Quote Originally Posted by Fluff13 View Post
    The "dates" in column M are text not real dates. The best option would be to convert them to real dates
    Thanks, I had checked this but may be incorrect. In column N, I used the formula =M1+1 to check this and the date increased by 1. Is this not a way of checking that dates are stored as dates?

    Thanks BVG

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Date range selector fails to work

    Try this in N2 >> =ISNUMBER(M2)

    You will get FALSE which means M2 is not a number
    HTH
    Regards, Jeff

  5. #5
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Date range selector fails to work

    Quote Originally Posted by jeffreybrown View Post
    Try this in N2 >> =ISNUMBER(M2)

    You will get FALSE which means M2 is not a number
    Thanks Jeff, very useful to know. Can I ask what you think is the best way for me to convert all the 'dates' is to resolve my issue?

    Thanks BVG

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Date range selector fails to work

    Try this

    Convert Range of text to numbers
    Data >> Data Tools >> Text to Columns
    Highlight the range to convert >> All of column M
    Next >> Next >> Date >> DMY >> Finish
    Last edited by jeffreybrown; 03-26-2020 at 03:10 PM.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Date range selector fails to work

    Best way to check dates is select the column & change the format to general, if you a number like 43861 it's a date, if you see 31/01/2020 it's text

+ 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] Add date range selector to formula
    By Badvgood in forum Excel General
    Replies: 2
    Last Post: 02-20-2020, 03:37 PM
  2. Date selector / calendar without a plug in / add on ?
    By millerjj22 in forum Excel General
    Replies: 2
    Last Post: 05-15-2017, 04:39 AM
  3. Replies: 2
    Last Post: 05-28-2014, 06:52 AM
  4. Date picker:Date Selector Form.
    By mixedup in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2008, 03:03 AM
  5. User Form - Range Selector
    By Mike Archer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2006, 06:35 PM
  6. [SOLVED] range picker / selector
    By KT in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2005, 09:06 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