+ Reply to Thread
Results 1 to 7 of 7

How to Add Date to One Cell if Multiple Cells Contain a Value

  1. #1
    Registered User
    Join Date
    03-29-2019
    Location
    California
    MS-Off Ver
    16.16.8
    Posts
    7

    How to Add Date to One Cell if Multiple Cells Contain a Value

    I want B2 to contain the date the data was entered from any of the cells F2:P2 contain a value.
    I tried using the formula below, but it only gives today's date. Everytime I open it, the data entered goes to the current date, not the date the data was entered.
    =IF(COUNTA(F17:P18)>0,TODAY(),"")

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: How to Add Date to One Cell if Multiple Cells Contain a Value

    That sounds like you want a timestamp. One approach for entering time stamps in Excel is this: https://chandoo.org/wp/timestamps-excel-formula-help/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    03-29-2019
    Location
    California
    MS-Off Ver
    16.16.8
    Posts
    7

    Re: How to Add Date to One Cell if Multiple Cells Contain a Value

    That sort of answered my question, but I'm looking for a specific formula to use for this function.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: How to Add Date to One Cell if Multiple Cells Contain a Value

    Is there something you did not understand about chandoo's formula: =IF(C3<>"",IF(B3="",NOW(),B3),"") in cell B3.

    The only thing really different about your scenario is that you are monitoring multiple cells and want to add a timestamp if something is entered into any of them. In chandoo'd formula, the C3<>"" is the part that is monitoring the data entry cell. To expand it to monitor multiple cells, one might use the COUNTA() function like you attempted in your original formula =IF(COUNTA(C3:F3)<>0,IF(B3="",TODAY() or NOW(),B3),""). Note that this will time stamp when the first cell in the range has data entered, but will not time stamp subsequent entries in the range.

    In your case, where you want to monitor F2:P2 and time stamp in B2, B2 becomes =IF(COUNTA(F2:P2)<>0,IF(B2="",TODAY(),""),"")

  5. #5
    Registered User
    Join Date
    03-29-2019
    Location
    California
    MS-Off Ver
    16.16.8
    Posts
    7

    Re: How to Add Date to One Cell if Multiple Cells Contain a Value

    Once again,

    I want the date entered if there is data entered in a specified row. Neither of these formulas work for that.
    What I want is:
    B2 to display the date if any data is entered from F2:P2. If nothing is entered I want the screen to be blank. This formula =IF(COUNTA(F17:P18)>0,TODAY(),"") does that, but it does not retain the date the data was entered. Instead, it displays today's date. The timestamp example that was given does not work. What exact formula can I use for this?

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: How to Add Date to One Cell if Multiple Cells Contain a Value

    Curious. It seems to work just fine for me in my spreadsheet. Have you enabled iteration? What do you mean by "it doesn't work"?

  7. #7
    Registered User
    Join Date
    03-29-2019
    Location
    California
    MS-Off Ver
    16.16.8
    Posts
    7

    Re: How to Add Date to One Cell if Multiple Cells Contain a Value

    Actually, enabling iterations and changing the maximum to 1 worked. Thank you for help

+ 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. How to add date to one cell if multiple cells contain a value
    By craywall in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2019, 12:40 PM
  2. Select multiple multiple cells adjacent to a date and populate a table
    By fedeboja in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-21-2018, 05:51 PM
  3. Macro to find Date Cells > Current Date and delete everything to left of that cell
    By LewisLonsdale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2015, 06:36 AM
  4. [SOLVED] Conditional Formatting Multiple Cells Based On Date In Other Cell
    By Gtrtim112 in forum Excel General
    Replies: 3
    Last Post: 01-03-2015, 06:18 PM
  5. Replies: 2
    Last Post: 08-19-2014, 10:59 AM
  6. Replies: 2
    Last Post: 05-18-2012, 09:27 AM
  7. [SOLVED] Date and time stamping multiple cells for multiple entries.
    By Gerald in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2006, 08:50 AM

Tags for this Thread

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