ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   end of column refence in several calculations (https://www.excelbanter.com/excel-discussion-misc-queries/1849-end-column-refence-several-calculations.html)

James Garlock

end of column refence in several calculations
 
I have several caculations (countif) that are based on the last-row of a
single column. So if column-A ends at row 120 how can I reference that
location automaticlly in my caculations without having to manually update the
row refence in all my caculations (example: =COUNTIF($BH$3:$BH$xxx,BP2) where
xxx is 120)?

Frank Kabel

Hi
if you have no blank rows in between try:
=COUNTIF(OFFSET($BH$3,0,0,COUNTA($BH:$BH)-2),BP2)
if also rows 1 and 2 are filled

--
Regards
Frank Kabel
Frankfurt, Germany

James Garlock wrote:
I have several caculations (countif) that are based on the last-row
of a single column. So if column-A ends at row 120 how can I
reference that location automaticlly in my caculations without having
to manually update the row refence in all my caculations (example:
=COUNTIF($BH$3:$BH$xxx,BP2) where xxx is 120)?





All times are GMT +1. The time now is 09:22 PM.

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