copy a formula down a column of varying size

njbeancounter

Board Regular
Joined
Oct 7, 2002
Messages
158
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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,222,195
Messages
6,164,513
Members
451,900
Latest member
lamski

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