VBA - link sheet 1 and sheet 2 with autofill formula in sheet 2

ACCA369

New Member
Joined
Dec 27, 2020
Messages
48
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Book2
ABCDEFGHIJKLMN
1Source_Datatime_Stamp -1Linked_data Value_1Value_2Time_Stamp-2Data_set2Netural_set2
21929/01/21 22:25:1119-9090526
31010-180180627
41515360360829
5559090930
61414909011
722-909012
83434-18018014
9141436036015
101111909017
11292909018
1200-909020
13151518018021
141313-909032
1544-18018033
162727036035
172525-36036036
182525-720720
19272701440
20111114401440
21341)Time stamp with seconds34-9090
2262) source_data in sheet 16180180
23303) Linked_data In sheet 2 30090
2418when data entered in sheet 1 - A column189090
251 G column in sheet 2 should be update automatically1-9090
2688180180
2724)sheet 2, H & I column contains formula2-9090
2824H & I column should automatically update when24-180180
2918data in G is entered18360360
302222-9090
31275) pls provide VBA code for Sheet 1 & Sheet 2 270180
3221I am not familiar with VBA21180180
333434-9090
343434-180180
352222-360360
363232720720
Sheet1
Cell Formulas
RangeFormula
B2B2=NOW()
G2:G36G2=A2
H2:H36H2=IF(ISNUMBER(MATCH(G2,Data_set2,0)),I2,IF(ISNUMBER(MATCH(G2,Netural_set2,0)),0,I2*-1))
I3:I36I3=IF(H2=0,I2,IF(H2<0,I2*2,90))
Named Ranges
NameRefers ToCells
Data_set2=Sheet1!$L:$LH2:H36
Netural_set2=Sheet1!$N:$NH2:H36
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A39Expression=OR(B2=0)textNO
A2:A39Expression=OR(B2>0)textNO
G1:G39Expression=OR(H1=0)textNO
G2:G39Expression=OR(H2>0)textNO
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi, you have shared Sheet1. Please confirm what is required?

What sheet2 contains?

Thanks,
Saurabh
 
Upvote 0
Hi, you have shared Sheet1. Please confirm what is required?

What sheet2 contains?

Thanks,
Saurabh
Instead of sending two sheets , I have mentioned the contents of both sheet 2 and sheet 2 for quick understanding

Sheet 1 contains column A and B
Sheet 2 contains data Of column G, H, I, J, L & N

If you scroll right to column the attached excel doc. You can see the contents of sheet 2
 
Upvote 0
Hi, you have shared Sheet1. Please confirm what is required?

What sheet2 contains?

Thanks,
Saurabh

Hi,

Using VBA Could you pls help me to
1) Sheet 1 A:A data need to be referenced in Sheet 2 in A:A range

2) whenever I entered data in Sheet 1 - A:A columns, the same data has to be get populated in Sheet 2 - A:A column

Sample ( Sheet1 - Column A:A).
10
20
15
0
34
36
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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