auto fill multiple cell based on a non blank value

roncoJones

New Member
Joined
Aug 30, 2011
Messages
1
Hi,
I am trying to populate a column of cells based on another cell being non blank. The content of the cells would exist in a column on another worksheet.

for example, if A1 contains any value, cells B2:B10 would be filed in with values from a range of cells in another worksheet.

For example;
A1 = Bob
B2 = sheet2!C2
B3 = sheet2!C3
B4 = sheet2!C4
etc...

Using an IF statement i can populate one cell (B2)
=IF(A2<>"",datasource!G3)

In the above statement, the content of A2 can be anything, however B2 would contain the value of datasource!G3

how can i extend this formula to populate cells B3,B4,B5,etc...

Let me know if my question isn't clear or if more details would help.

thanks in advance.

R.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,224,598
Messages
6,179,823
Members
452,946
Latest member
JoseDavid

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