Dynamic Column Data

jaqkar

New Member
Joined
Apr 15, 2005
Messages
6
Hi

Been looking at dynamic ranges for populating a column with data in another sheet but not sure if it is what I need.

Is there another way of getting the data in sheet1 col-A to sheet2 col-B dynamicaly and with automatic expansion to that if I add a row to sheet1 it will reflect in sheet2? I would idealy like for sheet2 col-A to mirror sheet1 col-B exactly with formatting etc.

Thanks in advance.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

dcnick

Board Regular
Joined
May 5, 2003
Messages
62
Can you not copy the entire column?

Code:
Worksheets("Sheet1").Columns("A:A").Copy
Worksheets("Sheet2").Columns("B:B").PasteSpecial
Application.CutCopyMode = False
 

jaqkar

New Member
Joined
Apr 15, 2005
Messages
6
If a new row gets added to sheet1 I don't really wanna copy and paste as there will be a number of records and columns.
 

dcnick

Board Regular
Joined
May 5, 2003
Messages
62
Try this in Sheet 2, Cell B1, then drag the formula down the column:

=IF(Sheet1!A1="","",Sheet1!A1)

This is saying if Sheet1 Cell A1 is blank, then make Sheet2 Cell B1 blank. Otherwise, make Sheet2 Cell B1 = value in Sheet1 Cell A1.

Hope this helps.
 

Forum statistics

Threads
1,141,029
Messages
5,703,826
Members
421,318
Latest member
cg_cartoonexcel

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
Top