SAM2017

New Member
Joined
Sep 26, 2017
Messages
3
I'm trying to workout formula whereby when a date (eg 26/09/17) is input in A1 Tab1 the SAME date changes automatically in Tab 2 A1. Next day input 27/09/17 in A1,Tab1 date changes automatically to SAME date in Tab 2,B1 and so on. . .This is becoming frustrating.

I trust someone will be able to advise (hopefully short formula). Cheers.

Sam
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
- In Sheet1!A2 type 27/09/17
- In Sheet2!A1 type =Sheet1!$A$2 and copy right next as much as you want
- Now when Sheet2!A1 shows 27/09/17, copy and value paste it.

- In next day type a new date in Sheet1!A2
- It will automatically shown in Sheet2!B1
- Now copy and value paste it.

By this way you can do it.
 
Upvote 0
Hello Sam,

A Worksheet_Change event is another option. A simple code as follows should work:-


Code:
Private Sub Worksheet_Change(ByVal Target As Range)

Application.ScreenUpdating = False
    
        If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
        Sheet1.Range("A1").Copy Sheet2.Cells(1, Columns.Count).End(xlToLeft).Offset(, 1)
        Sheet2.Columns.AutoFit
        
Application.ScreenUpdating = True
Sheet2.Select

End Sub

Manually enter your very first date in both Sheet1 A1 and Sheet2 A1. When you change the date in Sheet1 A1 and click away (or press enter or down arrow), the code will transfer the new date to the next cell in row1 Sheet2 horizontally.

To implement the code:-

- Right click on the Sheet1 tab.
- Select "View Code" from the menu that appears.
- Paste the above code into the big white field that then appears.

I hope that this helps.

Cheerio,
vcoolio.
 
Upvote 0
Hello Sam,

No. You only need to go back to the main sheet and start your data entries.

Cheerio,
vcoolio.
 
Upvote 0

Forum statistics

Threads
1,215,490
Messages
6,125,096
Members
449,205
Latest member
ralemanygarcia

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