Wednesday, March 30, 2016

[Anwsered] A formula that will automatically add the current date to Cell A when I enter a number in Cell B

A formula that will automatically add the current date to Cell A when I enter a number in Cell B

I an trying to create a Formula that will automatically add the current date to Celll A when I enter a number in Cell B

Solutions to the Problem A formula that will automatically add the current date to Cell A when I enter a number in Cell B

Download Error Fixer for Free Now

If you use a formula to set the value of Col_A to TODAY()...the value will change to the current date whenever you open the workbook.
Perhaps a better approach might be to engage a VBA macro that sets the Col_A value to the current date, only if the entry is in Col_B AND the Col_A cell is currently blank...Otherwise, it leaves the previous Col_A value.
• Right-click the sheet tab...Select: View Code
• Copy the below code and past it into the Sheet module:
Private Sub Worksheet_Change(ByVal Target As Range)
    With Target
        If .Column = 2 And Target <> "" Then
            'Entry is in Col_B
            With Range("A" & .Row)
                If .Value = "" Then
                    'Col_A cell is blank...enter today's date
                   .Value = Date
                End If  'blank cell test
            End With  'corresponding Col_A cell
        End If   'Col_B test
    End With    'Target
End Sub
Now...whenever you enter a value in a Col_B cell
...if the corresponding Col_A cell is blank, it is set to the current date.
Is that something you can work with?

Ron Coderre
Microsoft MVP - Excel (2006 - 2010)

P.S.
If any post answers your question, please mark it as the Answer (so it won't keep showing as an open item.)

Cleaning your computer, components, and peripherals help keep everything in good working condition and helps prevent germs from spreading. You can't image how dirty the inside of your computer case can get. All the dust and dirt is going to prevent proper air flow and may even prevent the fan from working.

Another Safe way to Repair the Problem: A formula that will automatically add the current date to Cell A when I enter a number in Cell B:

How to Fix A formula that will automatically add the current date to Cell A when I enter a number in Cell B with SmartPCFixer?

1. You can Download Error Fixer here. Install it on your computer. When you open it, it will perform a scan.

2. After the scan is finished, you can see the errors and problems which need to be fixed.

3. The Fixing part is done, the speed of your computer will be much higher than before and the errors have been fixed.


Related: [Solved] Applications have stopped working with SP1 on Windows 7!,[Solved] I can't find auto complete text in word 2007,[Solution] I need to keep reinstalling eHome Infrared Transceiver driver everytime my computer shuts down.,How to Resolve - system restore not working windows 7?,Unable to open embedded word file on the intranet. [Solved],Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,[Anwsered] Thinkpad 8611 Boot,How to Resolve - Svchost Helper?,Fast Solution to Problem: L30 101 Driver Windows 7,Troubleshooter of Error: Io Device,How to Fix Error - Dell Laptop Code 39?
Read More: Fast Solution to Error: Add Number and their Sum?,Troubleshooting:access denied when trying to save an excel file,Action center says solution ready, but can't be downloaded?! \"Ready\"??,Troubleshooting:ACTIVEX CONTROLS POP UP,Fast Solution to Error: Acer Aspire S3 - Out of nowhere computer now takes 20 minutes to boot up and about 5-10 minutes to shut down,Cannot delete empty file icon on desktop...,Cannot download flashplayer,can't get the CIA review progrom install which is an older version,Cannot access one website-DNS server not responding.,Can't Receive or Send Vista Windows Mail - Router stopped recognizing DSL connection & wants to dial up

No comments:

Post a Comment