ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dynamic named list includes blank cell at bottom (https://www.excelbanter.com/excel-discussion-misc-queries/83093-dynamic-named-list-includes-blank-cell-bottom.html)

L Scholes

Dynamic named list includes blank cell at bottom
 
I am using the following to create a dynamic list:

=OFFSET(LookupLists!$A$2,0,0,COUNTA(LookupLists!$A :$A),-1)

The problem is, it always adds the blank cell at the bottom of the list
that is also included in the combobox. How do I modify this so it does
not include the blank cell at the bottom? (I have a header above the
list in A1 that I do not want included in the list - it is currently
not included.)

Thanks in advance.


L Scholes

Dynamic named list includes blank cell at bottom
 
Nevermind, got it!
=OFFSET(LookupLists!$A$2,0,0,(COUNTA(LookupLists!$ A:$A)-1),-1)



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

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