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

  • SEARCH
  • Home
  • 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 7686711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:32:29+00:00 2026-05-31T19:32:29+00:00

My worksheet is basically a metrics worksheet that has multiple columns that rely on

  • 0

My worksheet is basically a metrics worksheet that has multiple columns that rely on a date entered into one column, but each of these later columns then rely on each other in sequence for setting dates and time periods.

I’m trying to find a way to update certain columns within the same row when that first value is changed; through the Worksheet_SelectionChange event if possible (or some other way if the result is the same).

What I want to happen: I enter a “start” date in column A. I need excel to then update column B of the same row based on the value in column A. Then I need column C (same row) to update based on the new value in column B; then I need column D to update based on the value in column C; and so on. Does this make sense?

  • 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-31T19:32:31+00:00Added an answer on May 31, 2026 at 7:32 pm

    You seem to really want VBA, so I’ll post another answer (quite different from my other one).

    Here I use the Worksheet_Change event. It calls a function that returns an array of type Variant containing dates. This array can then be written to the sheet simply using =.

    I find this slightly more complicated than just using formulas in cells, but it has the advantage of a cleaner front-end, which you seem to want.

    In the sheet module:

    Private Sub Worksheet_Change(ByVal Target As Range)
    
        If Not Intersect(Target, Range("A:A")) Is Nothing Then
            Target.Offset(0, 1).Resize(1, 3) = RelevantDates(Target.Value)
        End If
    
    End Sub
    

    In a code module:

    Function RelevantDates(startDate As Date) As Variant
        Dim v As Variant
        ' Adapt to your needs:
        ReDim v(1 To 3)
        v(1) = startDate + 1 ' add one day
        v(2) = DateSerial(Year(v(1)), Month(v(1)), Day(v(1)) + 7) ' add one more week
        v(3) = DateSerial(Year(v(2)), Month(v(2)) + 1, Day(v(2))) ' add one month
        RelevantDates = v
    End Function
    

    Of course the above only returns 3 rather trivial dates, but you can customise this as you see fit.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One worksheet. 103 columns. I need to populate a 104th column that looks in
I have a protected worksheet that users would like to copy and paste into.
I have an Excel worksheet that has the following macro. I'd like to loop
I have a worksheet with around 3,000 rows. One of these columns contains ethnicity
I have a worksheet with 50 rows & 10 column. One of the column
I have a Excel worksheet that has a button. When I call the usedRange()
I try to save each worksheet of an excel spreadsheet into CSV files. The
I'm basically trying to lock all but one sheet systematically (password driven) in excel.
I am creating an XLS worksheet that would be used to collect data from
I have the following Excel worksheet: | A B C -+--------------- 1|id date views

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.