LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default find first data entry in range

If you have removed the zeros and only the data is remaining, then you can
get just the cells containing number constants in column 3 as an example
with:

Dim rng as Range
On Error Resume Next
set rng = columns(3).specialcells(xlconstants,xlNumbers)
On Error goto 0
if not rng is nothing then
for each cell in rng

Next

or
ans = Application.Average(rng)


--
Regards,
Tom Ogilvy


"joho" wrote in message
...

Hi everybody
I have a little problem. I have a macro which copies data in a column
to a new sheet. This column contains a lot of cells with 0 as entry. In
order to calculate a correct average I remove all the 0 values and then
use "average". Now I need to find the first and last cells in the
column where there is data inorder to correspond to these rows. Can any
one help med pls?

Regards
Jonas


--
joho
------------------------------------------------------------------------
joho's Profile:

http://www.excelforum.com/member.php...o&userid=26984
View this thread: http://www.excelforum.com/showthread...hreadid=402064



 
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
find & copy data from most recent entry [email protected] Excel Discussion (Misc queries) 2 October 3rd 08 03:16 AM
find next line for data entry Decreenisi Excel Worksheet Functions 4 December 3rd 07 06:12 PM
where can i find grid data entry in excel? JMH New Users to Excel 3 April 22nd 07 10:56 AM
where on earth can I find data entry forms in Excel 2007 retep Excel Discussion (Misc queries) 4 February 10th 07 02:14 PM
Can't seem to find way to have easy data entry AND analysis - idea Heidi Excel Discussion (Misc queries) 2 January 2nd 07 11:24 PM


All times are GMT +1. The time now is 11:02 AM.

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

About Us

"It's about Microsoft Excel"