+ Reply to Thread
Results 1 to 9 of 9

Formula to insert date stamp when range of columns edited

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Formula to insert date stamp when range of columns edited

    I'm trying to work out how to create a formula that inserts a date stamp in column Y when any cells from column A to column W are edited in that row. I am aware of other discussions about how to do this for a single column, e.g. http://www.excelforum.com/excel-gene...=1#post2716586

    but I haven't been able to work out how to modify this for a range of columns.

    I'd prefer to use a formula because using VBA means I lose the Undo function.

    Is anyone in a position to advise?

    Thank you

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to insert date stamp when range of columns edited

    Hi

    Try to compine my suggestion in that thread, with COUNTA, function.

    Or else, pls upload a small sample workbook.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula to insert date stamp when range of columns edited

    Thank you for responding!

    I gave your suggestion a shot but I am a bit out of my depth, I wasn't sure how to incorporate COUNTA and everything I tried returned either 0 or an error message.

    I have attached a small sample of my spreadsheet if you have time to take a look?

    Thank you
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to insert date stamp when range of columns edited

    If i understand well your request,you want IF all the cells in columns A:W, are not empty, then in column Y to get the date.

    So in this case, in Y2 and copy down, put this formula.

    Please Login or Register  to view this content.
    Be sure that:

    Choose Tools/Options/Calculation (Preferences/Calculation for Macs) and check the Iteration checkbox. Must be 1. Not 100!

    http://www.mcgimpsey.com/excel/timestamp.html
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-21-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula to insert date stamp when range of columns edited

    Sorry to be a pest but what I actually want is to have the datestamp inserted for a row when any of the cells in columns A to W are edited. I cannot rely on only getting the datestamp when all the cells are populated, because they are unlikely to all be populated for all the rows.

    Does that make sense?

    I can't open your attachment at work, I will open it from home this evening!

    Thank you very much for your efforts!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to insert date stamp when range of columns edited

    Then you will try.

    =IF(COUNTA(A2:W2)<>1,"",IF(Y2="",NOW(),Y2))

  7. #7
    Registered User
    Join Date
    09-21-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula to insert date stamp when range of columns edited

    I'm sorry Fotis, I understand if you don't want to help me anymore; that formula does not do what I want it to. I want to achieve what this VBA code will do, but without losing the Undo function:

    Please Login or Register  to view this content.
    i.e. I want to timestamp any row that has been changed between columns A and W, I want this timestamp in column Y and I want to apply this up to row 95683. I can do this with VBA but it means I lose the Undo function.

    I didn't write that code myself so I don't really know what it means, I found it here http://www.ozgrid.com/forum/showthread.php?t=152807

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to insert date stamp when range of columns edited

    You are so kind that there is no reason to don't want to help you.I do. But....

    I don't know anything about VBA codes.

    Hope someone else to helps you.

  9. #9
    Registered User
    Join Date
    09-21-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula to insert date stamp when range of columns edited

    Thank you for your efforts anyway!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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