+ Reply to Thread
Results 1 to 7 of 7

Dates change the next day.

  1. #1
    TimM
    Guest

    Dates change the next day.

    I'm using the formula below to give a date in column 'A' when a 1, 2, 3, or 4
    is put in column 'H'.
    =IF(OR(H1={1,2,3,4}),TODAY(),"")

    Is it possible to make it so the date does not change the next day when the
    the sheet is update/opened, with this or with a different formula.
    --
    Thanks
    TimM

  2. #2
    Don Guillett
    Guest

    Re: Dates change the next day.

    How about a worksheet_open event in the ThisWorkbook module?

    Sub ifdate()
    MyArray = Array(1, 2, 3 , 4)
    For Each c In MyArray
    If Range("h1") = c Then Range("H3") = Date
    Next
    End Sub
    --
    Don Guillett
    SalesAid Software
    [email protected]
    "TimM" <[email protected]> wrote in message
    news:[email protected]...
    > I'm using the formula below to give a date in column 'A' when a 1, 2, 3,
    > or 4
    > is put in column 'H'.
    > =IF(OR(H1={1,2,3,4}),TODAY(),"")
    >
    > Is it possible to make it so the date does not change the next day when
    > the
    > the sheet is update/opened, with this or with a different formula.
    > --
    > Thanks
    > TimM




  3. #3
    TimM
    Guest

    Re: Dates change the next day.

    Is there a way to do it with a script.
    --
    Thanks
    TimM


    "Don Guillett" wrote:

    > How about a worksheet_open event in the ThisWorkbook module?
    >
    > Sub ifdate()
    > MyArray = Array(1, 2, 3 , 4)
    > For Each c In MyArray
    > If Range("h1") = c Then Range("H3") = Date
    > Next
    > End Sub
    > --
    > Don Guillett
    > SalesAid Software
    > [email protected]
    > "TimM" <[email protected]> wrote in message
    > news:[email protected]...
    > > I'm using the formula below to give a date in column 'A' when a 1, 2, 3,
    > > or 4
    > > is put in column 'H'.
    > > =IF(OR(H1={1,2,3,4}),TODAY(),"")
    > >
    > > Is it possible to make it so the date does not change the next day when
    > > the
    > > the sheet is update/opened, with this or with a different formula.
    > > --
    > > Thanks
    > > TimM

    >
    >
    >


  4. #4
    Don Guillett
    Guest

    Re: Dates change the next day.

    I don't understand the question.

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "TimM" <[email protected]> wrote in message
    news:[email protected]...
    > Is there a way to do it with a script.
    > --
    > Thanks
    > TimM
    >
    >
    > "Don Guillett" wrote:
    >
    >> How about a worksheet_open event in the ThisWorkbook module?
    >>
    >> Sub ifdate()
    >> MyArray = Array(1, 2, 3 , 4)
    >> For Each c In MyArray
    >> If Range("h1") = c Then Range("H3") = Date
    >> Next
    >> End Sub
    >> --
    >> Don Guillett
    >> SalesAid Software
    >> [email protected]
    >> "TimM" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > I'm using the formula below to give a date in column 'A' when a 1, 2,
    >> > 3,
    >> > or 4
    >> > is put in column 'H'.
    >> > =IF(OR(H1={1,2,3,4}),TODAY(),"")
    >> >
    >> > Is it possible to make it so the date does not change the next day when
    >> > the
    >> > the sheet is update/opened, with this or with a different formula.
    >> > --
    >> > Thanks
    >> > TimM

    >>
    >>
    >>




  5. #5
    TimM
    Guest

    Re: Dates change the next day.

    Sorry something my fingers are faster than the brain. I meant is there a way
    to do it with out a script, and just use a formula.
    --
    Thanks
    TimM


    "Don Guillett" wrote:

    > I don't understand the question.
    >
    > --
    > Don Guillett
    > SalesAid Software
    > [email protected]
    > "TimM" <[email protected]> wrote in message
    > news:[email protected]...
    > > Is there a way to do it with a script.
    > > --
    > > Thanks
    > > TimM
    > >
    > >
    > > "Don Guillett" wrote:
    > >
    > >> How about a worksheet_open event in the ThisWorkbook module?
    > >>
    > >> Sub ifdate()
    > >> MyArray = Array(1, 2, 3 , 4)
    > >> For Each c In MyArray
    > >> If Range("h1") = c Then Range("H3") = Date
    > >> Next
    > >> End Sub
    > >> --
    > >> Don Guillett
    > >> SalesAid Software
    > >> [email protected]
    > >> "TimM" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > I'm using the formula below to give a date in column 'A' when a 1, 2,
    > >> > 3,
    > >> > or 4
    > >> > is put in column 'H'.
    > >> > =IF(OR(H1={1,2,3,4}),TODAY(),"")
    > >> >
    > >> > Is it possible to make it so the date does not change the next day when
    > >> > the
    > >> > the sheet is update/opened, with this or with a different formula.
    > >> > --
    > >> > Thanks
    > >> > TimM
    > >>
    > >>
    > >>

    >
    >
    >


  6. #6
    Don Guillett
    Guest

    Re: Dates change the next day.

    I guess you could use two cells
    if F8
    =TODAY()-1

    another cell
    =IF(TODAY()<>F8,TODAY())

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "TimM" <[email protected]> wrote in message
    news:[email protected]...
    > Sorry something my fingers are faster than the brain. I meant is there a
    > way
    > to do it with out a script, and just use a formula.
    > --
    > Thanks
    > TimM
    >
    >
    > "Don Guillett" wrote:
    >
    >> I don't understand the question.
    >>
    >> --
    >> Don Guillett
    >> SalesAid Software
    >> [email protected]
    >> "TimM" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > Is there a way to do it with a script.
    >> > --
    >> > Thanks
    >> > TimM
    >> >
    >> >
    >> > "Don Guillett" wrote:
    >> >
    >> >> How about a worksheet_open event in the ThisWorkbook module?
    >> >>
    >> >> Sub ifdate()
    >> >> MyArray = Array(1, 2, 3 , 4)
    >> >> For Each c In MyArray
    >> >> If Range("h1") = c Then Range("H3") = Date
    >> >> Next
    >> >> End Sub
    >> >> --
    >> >> Don Guillett
    >> >> SalesAid Software
    >> >> [email protected]
    >> >> "TimM" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > I'm using the formula below to give a date in column 'A' when a 1,
    >> >> > 2,
    >> >> > 3,
    >> >> > or 4
    >> >> > is put in column 'H'.
    >> >> > =IF(OR(H1={1,2,3,4}),TODAY(),"")
    >> >> >
    >> >> > Is it possible to make it so the date does not change the next day
    >> >> > when
    >> >> > the
    >> >> > the sheet is update/opened, with this or with a different formula.
    >> >> > --
    >> >> > Thanks
    >> >> > TimM
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  7. #7
    Don Guillett
    Guest

    Re: Dates change the next day.

    That won't work either because it is still using today() which will update
    every time you calculate anything.

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Don Guillett" <[email protected]> wrote in message
    news:[email protected]...
    >I guess you could use two cells
    > if F8
    > =TODAY()-1
    >
    > another cell
    > =IF(TODAY()<>F8,TODAY())
    >
    > --
    > Don Guillett
    > SalesAid Software
    > [email protected]
    > "TimM" <[email protected]> wrote in message
    > news:[email protected]...
    >> Sorry something my fingers are faster than the brain. I meant is there a
    >> way
    >> to do it with out a script, and just use a formula.
    >> --
    >> Thanks
    >> TimM
    >>
    >>
    >> "Don Guillett" wrote:
    >>
    >>> I don't understand the question.
    >>>
    >>> --
    >>> Don Guillett
    >>> SalesAid Software
    >>> [email protected]
    >>> "TimM" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> > Is there a way to do it with a script.
    >>> > --
    >>> > Thanks
    >>> > TimM
    >>> >
    >>> >
    >>> > "Don Guillett" wrote:
    >>> >
    >>> >> How about a worksheet_open event in the ThisWorkbook module?
    >>> >>
    >>> >> Sub ifdate()
    >>> >> MyArray = Array(1, 2, 3 , 4)
    >>> >> For Each c In MyArray
    >>> >> If Range("h1") = c Then Range("H3") = Date
    >>> >> Next
    >>> >> End Sub
    >>> >> --
    >>> >> Don Guillett
    >>> >> SalesAid Software
    >>> >> [email protected]
    >>> >> "TimM" <[email protected]> wrote in message
    >>> >> news:[email protected]...
    >>> >> > I'm using the formula below to give a date in column 'A' when a 1,
    >>> >> > 2,
    >>> >> > 3,
    >>> >> > or 4
    >>> >> > is put in column 'H'.
    >>> >> > =IF(OR(H1={1,2,3,4}),TODAY(),"")
    >>> >> >
    >>> >> > Is it possible to make it so the date does not change the next day
    >>> >> > when
    >>> >> > the
    >>> >> > the sheet is update/opened, with this or with a different formula.
    >>> >> > --
    >>> >> > Thanks
    >>> >> > TimM
    >>> >>
    >>> >>
    >>> >>
    >>>
    >>>
    >>>

    >
    >




+ 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.6.0 RC 1