+ Reply to Thread
Results 1 to 5 of 5

database with TODAY function; need absolute date

Hybrid View

HeyInKy database with TODAY function;... 08-26-2014, 10:32 AM
Norie Re: database with TODAY... 08-26-2014, 10:34 AM
HeyInKy Re: database with TODAY... 08-26-2014, 10:36 AM
Norie Re: database with TODAY... 08-26-2014, 10:38 AM
HeyInKy Re: database with TODAY... 08-26-2014, 10:39 AM
  1. #1
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    database with TODAY function; need absolute date

    So I have an excel database where rows of data get updated on a regular basis. FYI, the data is transferred from a userform which puts it in the next empty row.

    I want a column where the date is recorded when the data was entered. The data transfer starts in column C, and I have this in the B column:
    Formula: copy to clipboard
    =IF(AND(C2<>""),(TODAY()),"")


    My question is, will this formula retain the date when C2 has data, or if I open this file tomorrow, let's say for instance, would it show tomorrow's date? In other words, is the formula absolute or does it refresh?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: database with TODAY function; need absolute date

    Why don't you add code that puts the current date in column C (or is it B) of the row you are transferring data to?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Re: database with TODAY function; need absolute date

    Would be happy to if you could help me with the code! I'm much more comfortable with standard excel formulas than with VBA.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: database with TODAY function; need absolute date

    The code is really straightforward.

    For example to put the current date in column C on the next empty row.
    NextRow = Range("A" & Rows.Count).End(xlUp).Row
    
    Range("C" & NextRow).Value = Date
    Obviously you'll have different code for finding the next empty row etc but that's the general idea.

  5. #5
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Re: database with TODAY function; need absolute date

    Cool. Thanks...

+ 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. Replies: 10
    Last Post: 09-06-2023, 08:19 PM
  2. SUMIF within date range as a function of today()'s date
    By irvine79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2006, 01:00 PM
  3. MAX figure within a date range as a function of today()'s date
    By irvine79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2006, 12:45 PM
  4. =TODAY() function to fix the date
    By starguy in forum Excel General
    Replies: 4
    Last Post: 07-14-2006, 09:18 AM
  5. [SOLVED] Today() or Date() function help
    By julisimo in forum Excel General
    Replies: 8
    Last Post: 01-03-2005, 01:23 PM

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