Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unknown column length
How can I change this:
=COUNTIF($B$7:$B$2000,Z8) to something which will 'detect' the max row numberin column 'B'? 2000 is an arbitrary figure and will fluctuate either way so I was looking for a 'catch all' Thanks, Traa Dy Liooar Jock |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unknown column length
Jock
If the data is contiguous then =COUNTA(B:B) will give you the number of rows in ColumnB with data, if there are gaps, it will still return a number, but will not count the blanks -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS web: www.nickhodge.co.uk blog (non tech): www.nickhodge.co.uk/blog "Jock" wrote in message ... How can I change this: =COUNTIF($B$7:$B$2000,Z8) to something which will 'detect' the max row numberin column 'B'? 2000 is an arbitrary figure and will fluctuate either way so I was looking for a 'catch all' Thanks, Traa Dy Liooar Jock |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unknown column length
why bother?
=COUNTIF(B7:B65536,Z8) covers all cases -- Gary''s Student - gsnu200752 "Jock" wrote: How can I change this: =COUNTIF($B$7:$B$2000,Z8) to something which will 'detect' the max row numberin column 'B'? 2000 is an arbitrary figure and will fluctuate either way so I was looking for a 'catch all' Thanks, Traa Dy Liooar Jock |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unknown column length
one option is to use a dynamic range. check debra's site
http://www.contextures.com/xlNames01.html -- Gary "Jock" wrote in message ... How can I change this: =COUNTIF($B$7:$B$2000,Z8) to something which will 'detect' the max row numberin column 'B'? 2000 is an arbitrary figure and will fluctuate either way so I was looking for a 'catch all' Thanks, Traa Dy Liooar Jock |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unknown column length
If there are no empty cells in your list this will report out the
exact sheet row number: Dim nRow As Integer Range("B7").Select Selection.End(xlDown).Select nRow = Selection.Row MsgBox nRow On Oct 29, 10:04 am, Jock wrote: How can I change this: =COUNTIF($B$7:$B$2000,Z8) to something which will 'detect' the max row numberin column 'B'? 2000 is an arbitrary figure and will fluctuate either way so I was looking for a 'catch all' Thanks, Traa Dy Liooar Jock |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Finding a string of unknown length in a string of unknown length, Help! | Excel Discussion (Misc queries) | |||
SMALL() on unknown length of list | Excel Worksheet Functions | |||
Merge to Columns with Unknown length | Excel Programming | |||
How do I sum a column of unknown length using a macro | Excel Programming | |||
Sum unknown length column data in VBA | Excel Programming |