Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2018, 02:38 AM
p45cal's Avatar
p45cal p45cal is offline count only rows with a value other than 0 Windows 10 count only rows with a value other than 0 Office 2016
Expert
 
Join Date: Apr 2014
Posts: 962
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default


a guess:
Code:
lngLastRow = Sheets("RISKS").Range("A65535").End(xlUp).Row
Do Until Sheets("RISKS").Range("A" & lngLastRow).Value <> 0
  lngLastRow = lngLastRow - 1
Loop
'now lngLastRow contains last non-zero value in column A
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find duplicate rows in a huge excel file containing 500000 rows Stc25234 Excel Programming 2 06-23-2017 10:51 AM
Nested tables. Count rows NevilleT Word VBA 9 05-10-2017 05:22 AM
count only rows with a value other than 0 Getting the Count formula to count all rows Jennifer Murphy Word Tables 11 08-23-2016 09:37 PM
simple way to count rows in a table? bkcell Word 4 03-09-2015 09:06 PM
count only rows with a value other than 0 Count rows and add blank rows accordingly Hoochtheseal Word VBA 1 01-29-2013 09:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft