#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default sum

OK what i have is a spread sheet that starts on line 41 and goes down.
What i need to do is count how many rows from 41 down and then sum just
column I.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default sum

Maybe one way:

=SUM(INDIRECT("I41:I"& 40+COUNTA(A41:A65536)))

Regards,
Paul

"jln via OfficeKB.com" <u25956@uwe wrote in message
news:68fe7c8c800d9@uwe...
OK what i have is a spread sheet that starts on line 41 and goes down.
What i need to do is count how many rows from 41 down and then sum just
column I.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1



  #3   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default sum

Another Option. Modify to suit

RowCount = Range("I41").CurrentRegion.Rows.Count
colISum = Application.Sum(Range(Columns("I").Cells(41, 1),
Columns("I").Cells(41 + RowCount - 1, 1)))

MsgBox RowCount & " " & colISum

--
Jay


"PCLIVE" wrote:

Maybe one way:

=SUM(INDIRECT("I41:I"& 40+COUNTA(A41:A65536)))

Regards,
Paul

"jln via OfficeKB.com" <u25956@uwe wrote in message
news:68fe7c8c800d9@uwe...
OK what i have is a spread sheet that starts on line 41 and goes down.
What i need to do is count how many rows from 41 down and then sum just
column I.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default sum

Try =SUMIF($I$41:$I$2000,"<0",$I$41:$I$2000)
for a simplistic solution. Just be sure to set the range to always include
enough rows.
Use countif in similar fashion if you really need to count the rows. May
need to play with criteria if some values may equal zero.

"jln via OfficeKB.com" <u25956@uwe wrote in message
news:68fe7c8c800d9@uwe...
OK what i have is a spread sheet that starts on line 41 and goes down.
What i need to do is count how many rows from 41 down and then sum just
column I.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1



Reply
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



All times are GMT +1. The time now is 02:32 PM.

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"