LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #18   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Code Count the items in a named range

Hi Howard,

Am Fri, 29 Dec 2017 06:37:22 -0800 (PST) schrieb L. Howard:

I tried it like this and the "myCnt =" line errors yellow.

Dim myCnt As Long
With Application
myCnt = .CountA(Range("Cable_1")) - .CountBlank(Range("Cable_1"))
End With


if Cable_1 is a worksheet scope name you must insert the sheet name in
front of the range.

The blank cells are at the end. The end cell could vary but still all blanks will be at the end.


Then try for Cable_1 range name:
=OFFSET(Tabelle1!$C$2,,,MATCH("",Tabelle1!$C:$C,0)-2)


Regards
Claus B.
--
Windows10
Office 2016
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation; add items to named range Ixtreme Excel Discussion (Misc queries) 5 July 17th 09 11:01 PM
Count items in range Steven Excel Worksheet Functions 16 July 23rd 08 02:57 PM
Count unique items in range Thom Excel Worksheet Functions 4 October 12th 06 01:13 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Selecting Filtered Items from Named range Soniya Excel Programming 2 August 20th 03 10:59 AM


All times are GMT +1. The time now is 07:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"