Excel formula to set a static date.

Anything Cabinets Admin 20 Reputation points
2025-09-11T23:14:17.92+00:00

Hi I need some assistance with an excel formula please.

I am using excel as an order book and need to record the date an order was placed.

I am using =IF(COUNTIF(H5:AJ5, "x")>0, TODAY(), "") to populate the current date into cell G4 when an "x" is placed in either of the fields, H to AJ but G4 remains blank if there is anything else in those fields.

The problem I am having is that the date does not remain static and keeps updating to the current date when the spreadsheet is reopened.

I have found another formula to set the date as static =IF(A1="", "", IF(B1="", TODAY(), B1)) however, when I mesh the two together with the bits that I need the word FALSE is entered into the G4, instead of being blank, like I need it to be.

Can someone help me with the formula that I need as I am trying to make it as easy as possible for non-excel users to fill in the spreadsheet?

Thank you in Advanced

Microsoft 365 and Office | Excel | For business | Android
0 comments No comments
{count} votes

Answer accepted by question author
  1. hanry leo 75 Reputation points
    2025-09-12T05:37:31.8266667+00:00

    Dear Anything Cabinets Admin

    Thank you for submitting your inquiry on the QA forum. 

    In Excel, a static date is one that doesn’t change — unlike formulas like =TODAY() or =NOW(), which update every time the file is opened or recalculated. Static dates are useful for things like order dates, timestamps, or logging data.

    The easiest way to enter a static date is by using the keyboard shortcut:

    • Press Ctrl + ; (Control + semicolon) This enters the current date as a fixed value that never changes.

    If you want Excel to insert a static date automatically, you can use a simple VBA macro. For example, you can set it to insert today’s date in column B whenever you type in column A.

    There’s also a workaround using circular references, but it's not recommended due to complexity and instability.

    In short, for most users, manually entering the date using **Ctrl + ; **is the most reliable way to set a static date in Excel.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Tammy-Ng 5,510 Reputation points Microsoft External Staff Moderator
    2025-09-12T01:08:25.92+00:00

    Dear Anything Cabinets Admin
    Thank you for submitting your inquiry on the QA forum. 

    Based on the information you’ve provided, I understand that you are seeking an optimal solution for your Excel file. However, the current details appear to be incomplete, which limits my ability to test and provide a precise recommendation.

    To assist you effectively, I kindly ask that you share a sample of your data structure. This will enable me to better understand your requirements and propose a tailored solution.

    Additionally, I noticed that your post includes the "Android" tag. Could you please clarify whether this issue is related to a mobile device, or if the tag was added inadvertently?

    I look forward to your response and remain committed to supporting you.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.