+ Reply to Thread
Results 1 to 8 of 8

Date issue in excel

Hybrid View

  1. #1
    Registered User
    Join Date
    10-01-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    22

    Date issue in excel

    I do the same spreadsheet every quarter, have done for a few years and always had a date calculating formula, have used the same one for a long time.

    So the user enters a date in B19 and I want it to automatically calculate that date plus nine days in C19
    I have always entered this formula in C19 and had no problems. =IF(AND(B19>39000,B19<300000),B19+9,"")

    Now, when the user enters the date nothing shows up in C19. If I click on the cell and press enter it "may" show but not all the way down the column.

    I know I could use B19+9 which would be easy but it shows a date in C19 before a date is entered in B19 and I didnt want that.

    Any suggestions or can someone see an error in formula but I copied it from past spreadsheet! I just want a formula that wont show anything until a date is entered in B19. Could it be that the computer was upgraded?

    Thanks
    Nikky.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Date issue in excel

    If the cell appears to be blank then that means this portion of the formula evaluated to FALSE:

    AND(B19>39000,B19<300000)

    If B19 contains a TEXT string that looks like a date then:

    B19>39000 = TRUE
    B19<300000 = FALSE

    What result do you get from this formula:

    =IF(ISNUMBER(B19),IF(AND(B19>39000,B19<300000),B19+9,""),"Not A True Excel Date")
    Last edited by Tony Valko; 04-06-2014 at 04:10 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-01-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Date issue in excel

    Well that was the strangest! I inserted your formula and I got "not a true excel date" but I re clicked on the cell and hit enter and it gave me the date I wanted. I then dragged the formula down the column but although clicking on those cells it shows that formula inside it, it gives me the first date all the way down. I must be totally missing something. I have all cells formatted to date.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Date issue in excel

    Sounds like you have calculation set to manual.

    Got the Formulas tab>Calculation Options>Automatic

  5. #5
    Registered User
    Join Date
    10-01-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Date issue in excel

    Ok, I think I have it. The computer default is English (US), I was trying English (Canadian) but after I changed it to date format US, and put month first, it works! Oh my what a frustrating day! If I wanted to use the Canadian do I have to change the default?

    All fixed, and working on main sheet too, thank you so much!
    Last edited by N1k100; 04-06-2014 at 04:51 PM.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Date issue in excel

    Quote Originally Posted by N1k100 View Post
    If I wanted to use the Canadian do I have to change the default?
    I didn't know there was a difference between the U.S. date format and the Canadian date format. If you want to set it to a Canadian format then you have to do that through the operating system.

    All fixed, and working on main sheet too, thank you so much!
    Good deal!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  7. #7
    Registered User
    Join Date
    10-01-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Date issue in excel

    I just did a reply, must be getting frustrated

    Thank you, yes the calculation was on manual which I have changed. Also noticed that when setting the date format, the location was different each time I went in even though its set to English (US). So I have ensured that all are set and they are formatted to 14 Mar 01, but if I type say 28/4/14 it stays that way. Is there any other settings that could be causing my issue?

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Date issue in excel

    The default date format used by Microsoft Windows for English Canada for all-numeric dates (short-dates) is DD/MM/YYYY
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. Excel Date issue!!
    By clarbare2 in forum Excel General
    Replies: 3
    Last Post: 03-23-2014, 10:44 AM
  2. Excel Date Format issue
    By Plutark in forum Excel General
    Replies: 3
    Last Post: 06-07-2012, 11:09 AM
  3. [SOLVED] Date Issue (Excel VBA)
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2012, 04:47 PM
  4. Excel 2008 : Excel Date Format Issue
    By XcelPanda in forum Excel General
    Replies: 5
    Last Post: 10-31-2011, 06:32 AM
  5. Excel Date Formatt Issue
    By donnyp02 in forum Excel General
    Replies: 1
    Last Post: 04-25-2008, 10:43 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