+ Reply to Thread
Results 1 to 11 of 11

Date formula validation to True / False

  1. #1
    Registered User
    Join Date
    09-30-2020
    Location
    New York
    MS-Off Ver
    Windows 10 Pro
    Posts
    6

    Unhappy Date formula validation to True / False

    I entered a new date and column L is now showing up as False.

    pic1.PNG
    Last edited by apradox; 10-06-2020 at 10:50 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    What cell has the formula you provided?

    What is the formula in column L?

    What is the logic of your formula? Why add a utilization to a date? Seems like adding apples and elephants.

  3. #3
    Registered User
    Join Date
    09-30-2020
    Location
    New York
    MS-Off Ver
    Windows 10 Pro
    Posts
    6

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    L - =AND($J$12>=J48,OR($K$12<=K48,K48=""))
    J - =DATE(2020,1,-2)-WEEKDAY(DATE(2020,1,3))+H12*7

    Attachment 697715

    The dates shows when they start or end. So if they end, it should give a FALSE output. I added a start date and it should come out as TRUE

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to "Post Quick Reply" button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    09-30-2020
    Location
    New York
    MS-Off Ver
    Windows 10 Pro
    Posts
    6

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    Attached is the spreadsheet

  6. #6
    Registered User
    Join Date
    09-30-2020
    Location
    New York
    MS-Off Ver
    Windows 10 Pro
    Posts
    6

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    Attached is the file.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,424

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    Excel calculates dates by counting the number of days since 1/1/1900.
    In cell J12, 44081 corresponds to the date 9/7/2020.
    The formula for L48 begins =AND($J$12>=J48...
    The date shown in the screenshot, 9/16/2020 (44090) is greater than 9/7/2020 (44081), so the AND function evaluates to false.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  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
    79,369

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

  9. #9
    Registered User
    Join Date
    09-30-2020
    Location
    New York
    MS-Off Ver
    Windows 10 Pro
    Posts
    6

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    Updated. Apologies for that.

  10. #10
    Registered User
    Join Date
    09-30-2020
    Location
    New York
    MS-Off Ver
    Windows 10 Pro
    Posts
    6

    Re: =date(2020,1,-2)-weekday(date(2020,1,3))+h12*7

    Thank you! That makes sense! So I'm thinking I have to adjust the formula on

    J12 =DATE(2020,1,-2)-WEEKDAY(DATE(2020,1,3))+H12*7

    This is where I'm stuck. How do I change this formula so that when I add a new 'Start Date' result value is True; but when I add an 'End Date' the value returns False?

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,424

    Re: Date formula validation to True / False

    I see that the title above post #1 is different from the rest, so I assume that is the edited title, Thank You.
    I think that to answer the question of how to change the formula in cell J12 so that it meets the conditions "when I add a new 'Start Date' result value is True; but when I add an 'End Date' the value returns False" we would need to know the rational behind the formula and why the resulting date is used in the formula for L14:L48.

+ 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. Call in the Cavalry - 2020
    By JBeaucaire in forum The Water Cooler
    Replies: 97
    Last Post: 12-15-2020, 04:27 PM
  2. looking for a formula to change full date "01/08/2020" to "8"
    By danezeq in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2020, 11:00 AM
  3. [SOLVED] Date Format 10.04.2020
    By ashishpatel34 in forum Excel General
    Replies: 9
    Last Post: 07-22-2020, 01:12 AM
  4. 2020 Vacation Tracker
    By Philipsfn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2020, 09:59 AM
  5. Replies: 4
    Last Post: 04-21-2020, 09:13 AM
  6. [SOLVED] Date Format : Thu, 2-Feb-2020
    By kayafueya in forum Excel General
    Replies: 2
    Last Post: 02-26-2020, 10:27 PM
  7. [SOLVED] Correct exported date of 3/20/2019 to 3/1/2020
    By aquixano in forum Excel General
    Replies: 4
    Last Post: 09-20-2019, 11:32 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