ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   incrementing on inserrt row (https://www.excelbanter.com/excel-programming/302005-incrementing-inserrt-row.html)

Becky[_2_]

incrementing on inserrt row
 
In the following code, how can i get the numbers 54 to
automatically increment to 55when i insert a new line. For
some reason this does not happen, however, the number 63
does increase to 64.

=HLOOKUP('Project Summary'!B1,OFFSET('Associates Hours
(actuals)'!$S$5:$AD$63,0,0,COUNTA('Associates Hours
(actuals)'!$S$5:$AD$63)),54,TRUE)*30

Many thanks
Becky


Don Guillett[_4_]

incrementing on inserrt row
 
because 54 is not a cell address. Try using indirect and rows() as in:
=SUM(INDIRECT("b2:b"&ROWS(3)))

--
Don Guillett
SalesAid Software

"Becky" wrote in message
...
In the following code, how can i get the numbers 54 to
automatically increment to 55when i insert a new line. For
some reason this does not happen, however, the number 63
does increase to 64.

=HLOOKUP('Project Summary'!B1,OFFSET('Associates Hours
(actuals)'!$S$5:$AD$63,0,0,COUNTA('Associates Hours
(actuals)'!$S$5:$AD$63)),54,TRUE)*30

Many thanks
Becky





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

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