Autofill and Formula problem :)

chrisguk

Board Regular
Joined
Jan 10, 2011
Messages
135
Hi,

For the purpose of this question I have two sheets named "Data" and "Compiled".

Data - This has predetermined headers and the raw data is pasted in only.

Compiled - The first column of this sheet has a formula like so:

Code:
=IF(Data!A5=0,"",Data!A5)

The problem is I cannot autofil column A and I dont know how to do it with VBA which would be my idea solution. For example.

Column A1 look at Data!A1 and count how many rows are populated then autofill that value.

Hope that makes sense?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi

Can't you use an autofilter to filter on column A in the Data tab, filtering on the non-zero values?
 
Upvote 0
The data tab is already populated with raw data.

The Compiled tab is what I want to autofill down based on the amount of rows populated in the data tab.

Like I said the Compiled tab has the first formula in it. I want it to count how many rows are populated then autofill to that given number.
 
Upvote 0
What is the range of cells used on both worksheets?
 
Upvote 0
Basically range for the Data tab is Column D and the rows are determined by how many rows are populated.

Then the autofill will carry out the autofull in Column A in the Compiled tab.
 
Upvote 0
Duplicate post and response here
Code:
http://www.mrexcel.com/forum/showthread.php?t=587000
 
Upvote 0
Really sorry about that Mike, I thought it would be better to try and word it different.
 
Upvote 0

Forum statistics

Threads
1,203,734
Messages
6,057,054
Members
444,902
Latest member
ExerciseInFutility

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