Double-click cell required

CHML

Board Regular
Joined
Mar 19, 2023
Messages
81
Office Version
  1. 2019
Platform
  1. Windows
  2. Web
Hi,
Why is it that unless I double-click the cell, it will not change to a date value, but as soon as I double-click the cell and hit ENTER, it will change to a date value and trigger the next column's formula. I would want a solution to do it in one shot for the entire column. Thank you for your help.
1739129924908.png
 
The left aligned cells are text that look like dates.

You could select the column M data and use Text to Columns to convert those texts into real dates
 
Upvote 0
My concern isn’t with the formula itself; it’s actually with the cells in column M, which are difficult to reformat to date values unless I double-click on them.
It looks like some of your dates were text values, rather than numeric. Changing the number format will have no effect until the values are converted to numeric.

The usual quick way to fix this is to select the column, and choose Data/Text to columns/Delimited/Finish.

Or keyboard shortcut ALT-D, E, F.
 
Upvote 0
OK, I figured out how to solve it.
Good to hear.
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0
but as soon as I double-click the cell and hit ENTER
Ok, try next code:
VBA Code:
Option Explicit

Sub SendEnterToRange()
    Dim cell        As Range
    Dim ws          As Worksheet
    Set ws = ThisWorkbook.Worksheets("Sheet1")   ' Replace "Sheet1" with your sheet name.
    Application.ScreenUpdating = False

    For Each cell In ws.Range("M2:M" & ws.Cells(ws.Rows.Count, "M").End(xlUp).Row)
        cell.Activate
        Application.SendKeys "~"
    Next cell

    Set ws = Nothing
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Thank you all!! Sorry, I believe my timezone is different, which may have affected my promptness in responding.

So, actually yes, like the experts above guide, I utilized the "Text to Columns" feature to convert the entire column to date format. This action immediately triggered the formula in the adjacent column to update accordingly.
 
Upvote 0

Forum statistics

Threads
1,226,771
Messages
6,192,919
Members
453,767
Latest member
922aloose

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top