+ Reply to Thread
Results 1 to 8 of 8

Min & Max Date Returning 00/01/1900

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Min & Max Date Returning 00/01/1900

    Good Afternoon Excel team,

    I am hoping you are able to help me.

    Attached are two tabs:

    Data : Raw Data
    Analysis : On the Analysis Tab i am trying to determine when the First Change (Min Date) And Last Change (Max Date)

    For Example. if i isolate row 17 "Ownership Structure" I would expect the following outcomes
    First change : 06/07/2012
    Last Change : 23/03/2013

    Networking Days is the count between both dates so in this example it be 186

    However I am returning the data value of "00/01/1900".

    I believe this is occurring because dates in column B on the Data Tab isn't in the correct Format.

    Is someone able to review the format and advise where i am going wrong ?

    Looking forward to your response
    Attached Files Attached Files
    Last edited by masond3; 10-16-2017 at 06:06 AM.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Min & Max Date Returning 00/01/1900

    Try this:

    =MIN(IF(FieldEvents=A17,Data!$B$2:$B$13))

    and this:

    =MAX(IF(FieldEvents=A17,Data!$B$2:$B$13))

    ... both confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    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
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,047

    Re: Min & Max Date Returning 00/01/1900

    1. use this array formula instead:

    =IFERROR(1/(1/MIN(IF(FieldEvents=A2,Data!B:B))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    2. Change away from using whole column references. They are SOOOO SLOW .
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Min & Max Date Returning 00/01/1900

    hi there. you are getting it should be an array formula but you did not use the CTRL + SHIFT + ENTER key. you also shouldn't use the entire column as that slows down the file a lot when using array formulas. convert your data in Data sheet A1:E13 first. click on A1. press CTRL + T.

    then in Analysis worksheet, cell C17:
    =MIN(IF(Table1[Field / Event]=A17,Table1[Edit Date]))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    why is it 6-Jul and not 5-Jul by the way?

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: Min & Max Date Returning 00/01/1900

    @GlenKennedy & AliGW.

    Thank you for your speedy Response. Never Realy used array Formulas before so this is very handy indeed.
    Thank you for the all advice. Great service as Usual

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,047

    Re: Min & Max Date Returning 00/01/1900

    Indeed, I have replaced the Named Range with two named ranges (currently set to go down to row 100) which will automatically adjust to include only the required rows:

    The array formula now looks like:

    =IFERROR(1/(1/MIN(IF(FieldEvents=$A2,dates))),"")

    and

    =IFERROR(1/(1/MAX(IF(FieldEvents=$A2,dates))),"")
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,047

    Re: Min & Max Date Returning 00/01/1900

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  8. #8
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Min & Max Date Returning 00/01/1900

    You're welcome!

+ 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. WEEKNUM Function returning 1/9/1900
    By jacksilvert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2017, 03:58 PM
  2. Vlookup returning 1/0/1900 for blank cells
    By ashley72788 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-15-2015, 03:17 PM
  3. Lookup returning Date but when no date equals January 0 1900
    By jaredmccullough in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2015, 10:25 AM
  4. Replies: 1
    Last Post: 11-23-2014, 06:02 AM
  5. date pasted as 1/2/1900 in excel instead of 1/1/1900
    By ekkslatha in forum Excel General
    Replies: 4
    Last Post: 10-25-2014, 08:34 PM
  6. [SOLVED] If statement returning 0/01/1900
    By Ronmac in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-01-2013, 01:21 AM
  7. Macro for changing the date from 02-Jan-1900 to 01-Jan-1900
    By Lavanya Anandan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2013, 07:08 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