+ Reply to Thread
Results 1 to 5 of 5

Thread: If and Dates Clarification

  1. #1
    wal50
    Guest

    If and Dates Clarification

    Having a bit of trouble with this: =IF(D2<12/13/04, " ", A2).

    Column D has dates (formatted mm/dd/yy). Dates are before and after
    12/13/04 but the above statement always a blank and
    =IF(D2> 12/13/04, " ", A2) always returns the value in A.
    If I put 12/13/04 in a cell (H2) and use =IF(D7<$H$2," ", A7), it works.
    What did I do wrong in the first one?

    Thanks.




  2. #2
    JE McGimpsey
    Guest

    Re: If and Dates Clarification

    Your conditional,

    D2<12/13/04

    will be interpreted as

    D2 is less than 12 divided by 13 divided by 14 (i.e., 0.230769231).

    Use either

    =IF(D2<DATE(2004,12,13),...

    or

    =IF(D2<"12/13/04",...


    In article <75952D62-3DFE-44B1-8A25-DE17F9F60339@microsoft.com>,
    "wal50" <wal50@discussions.microsoft.com> wrote:

    > Having a bit of trouble with this: =IF(D2<12/13/04, " ", A2).
    >
    > Column D has dates (formatted mm/dd/yy). Dates are before and after
    > 12/13/04 but the above statement always a blank and
    > =IF(D2> 12/13/04, " ", A2) always returns the value in A.
    > If I put 12/13/04 in a cell (H2) and use =IF(D7<$H$2," ", A7), it works.
    > What did I do wrong in the first one?


  3. #3
    Frank Kabel
    Guest

    Re: If and Dates Clarification

    Hi
    use
    =IF(D1<DATE(2004,12,13),"",A2)

    --
    Regards
    Frank Kabel
    Frankfurt, Germany
    "wal50" <wal50@discussions.microsoft.com> schrieb im Newsbeitrag
    news:75952D62-3DFE-44B1-8A25-DE17F9F60339@microsoft.com...
    > Having a bit of trouble with this: =IF(D2<12/13/04, " ", A2).
    >
    > Column D has dates (formatted mm/dd/yy). Dates are before and after
    > 12/13/04 but the above statement always a blank and
    > =IF(D2> 12/13/04, " ", A2) always returns the value in A.
    > If I put 12/13/04 in a cell (H2) and use =IF(D7<$H$2," ", A7), it works.
    > What did I do wrong in the first one?
    >
    > Thanks.
    >
    >
    >




  4. #4
    wal50
    Guest

    Re: If and Dates Clarification

    Thanks.
    WAL

    "Frank Kabel" wrote:

    > Hi
    > use
    > =IF(D1<DATE(2004,12,13),"",A2)
    >
    > --
    > Regards
    > Frank Kabel
    > Frankfurt, Germany
    > "wal50" <wal50@discussions.microsoft.com> schrieb im Newsbeitrag
    > news:75952D62-3DFE-44B1-8A25-DE17F9F60339@microsoft.com...
    > > Having a bit of trouble with this: =IF(D2<12/13/04, " ", A2).
    > >
    > > Column D has dates (formatted mm/dd/yy). Dates are before and after
    > > 12/13/04 but the above statement always a blank and
    > > =IF(D2> 12/13/04, " ", A2) always returns the value in A.
    > > If I put 12/13/04 in a cell (H2) and use =IF(D7<$H$2," ", A7), it works.
    > > What did I do wrong in the first one?
    > >
    > > Thanks.
    > >
    > >
    > >

    >
    >
    >


  5. #5
    wal50
    Guest

    Re: If and Dates Clarification

    Thanks.
    WAL

    "JE McGimpsey" wrote:

    > Your conditional,
    >
    > D2<12/13/04
    >
    > will be interpreted as
    >
    > D2 is less than 12 divided by 13 divided by 14 (i.e., 0.230769231).
    >
    > Use either
    >
    > =IF(D2<DATE(2004,12,13),...
    >
    > or
    >
    > =IF(D2<"12/13/04",...
    >
    >
    > In article <75952D62-3DFE-44B1-8A25-DE17F9F60339@microsoft.com>,
    > "wal50" <wal50@discussions.microsoft.com> wrote:
    >
    > > Having a bit of trouble with this: =IF(D2<12/13/04, " ", A2).
    > >
    > > Column D has dates (formatted mm/dd/yy). Dates are before and after
    > > 12/13/04 but the above statement always a blank and
    > > =IF(D2> 12/13/04, " ", A2) always returns the value in A.
    > > If I put 12/13/04 in a cell (H2) and use =IF(D7<$H$2," ", A7), it works.
    > > What did I do wrong in the first one?

    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0