copy a formula down a column of varying size

njbeancounter

Board Regular
Joined
Oct 7, 2002
Messages
156
I have one worksheet that pulls information from an outside source, which includes vendor numbers and invoice dates. Once the sheet is refreshed, the vendor info populates column A. In column B, I need to remove the leading zeroes from the information in column A, which I can do. BUT, because the vendor information varies from day to day, while column A will have information, there will be empty cells in column B whenever different vendors are added. I need to copy the formula in B2 down to the end of column B, but only as far as the information in column A goes because this range is then used in a pivot table someplace else.

I have looked through the archives, but I can't find exactly what I need. Any help will be appreciated.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,181,412
Messages
5,929,782
Members
436,689
Latest member
IbraheemWard

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