Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1082181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:15:51+00:00 2026-05-16T22:15:51+00:00

here is my problem with the execution of an excel formula. These are the

  • 0

here is my problem with the execution of an excel formula.

These are the requirements:

  • I have several lines in an excel
    sheet.
  • At the end of each line there is a
    field called “Month”.
  • If someone enters new values in this
    line, the current month should be
    inserted.
  • If the values get modified, the month
    must not be changed.

To include the current month, I use some formula like this (A10 is just a random field which will be filled):

=IF(A10<>0; MONTH(NOW()); "")

Now I need some condition to check if the field contains a month allready, and if it is so, do nothing.
I tried the following (A15 should contain the month):

=IF(A15 <> ""; IF(A10<>0; MONTH(NOW()); "") ; )

To decide if the field should be changed by the formular, I have to check its current value. The problem is, that this will end up in an circular reference to the field itself.

Has anyone a working solution for this kind of problems?
I try not to use any VBA code in there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:15:51+00:00Added an answer on May 16, 2026 at 10:15 pm

    You can’t do it with formulas, you have to use VBA. The formula can’t refer to itself.

    The other problem is that NOW will change every time you recalculate. So even with your first formula, the month will not remain static.

    If you decide you can live with VBA, right click on the sheet tab and choose View Code. The code you’ll need will look something like this

    Private Sub Worksheet_Change(ByVal Target As Range)
    
        'We only care if cells are changed in a certain range
        If Not Intersect(Target, Me.Range("A1:G10")) Is Nothing Then
    
            'Only do this if there's nothing in row 15 for whatever column
            'was changed
            If IsEmpty(Me.Cells(15, Target.Column).Value) Then
    
                'Put the month in row 15 of the current column
                Me.Cells(15, Target.Column).Value = Month(Now)
            End If
        End If
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem here. My Zend_Forms do not render in view script. Via
I have a problem here I can't solve. I have a database of houses
jsFiddle of the problem here. When I have an image with align=left inside a
I have a problem here with this code. I'm opening a socket, then listening
I have a problem here. Right now I'm doing my Web Based Application, my
all. I have a problem with uploading of the file in Silverlight application. Here
This is a little bit of weird problem here. Say I have a C++
I have a problem with the execution of multiple functions at once. Specific ,
Here's the problem I have when running my app, and it isn't in any
I seem to have a 32bit vs. 64bit problem here. It should be simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.