ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Auto extend formula down a column (https://www.excelbanter.com/excel-worksheet-functions/140630-auto-extend-formula-down-column.html)

Sandy

Auto extend formula down a column
 
I have data in columnB which is automatically inserted from an input sheet
by a macro running via a button.. In column A I have the following formula
which inserts a unique number to that column should a unique item be found
in column B

"=IF(COUNTIF(B$1:B70,B70)=1,MAX(A$1:A69)+1,"") ".

How can I have the formula automatically inserted into row 71 with the
formula updated for that row, ie

"=IF(COUNTIF(B$1:B71,B71)=1,MAX(A$1:A70)+1,"") ".

Sandy




All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com