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: 9
Default Sum column with count formula

On Nov 26, 3:28*pm, Wally wrote:
With Worksheets("Orders")
* * LastRow = .Cells(Rows.Count, "J").End(xlUp).Row
* * End With
* * Range("J2").Select
* * Selection.End(xlDown).Select
* * ActiveCell.Offset(1, 0).Activate
* * ActiveCell.Formula = "=Sum(J2:J" & LastRow&")"

How would I write the Formula for this cell?

TIA

Gerry


Ok, I got that one figured out.

I forgot to set Dim LastRow as String

 
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
How do I set up a formula to count only unique items in a column? LYLERR Excel Worksheet Functions 3 September 25th 09 12:53 AM
formula to do a count for info in another column mike Excel Discussion (Misc queries) 3 December 24th 08 07:00 PM
Using 'The count of' column in a pivot table formula Peter Excel Discussion (Misc queries) 0 December 4th 08 06:38 PM
How can i set up a formula to count option buttons in a column Lewis Excel Programming 1 May 7th 07 03:21 PM
What formula do I use to count if value in other column? LoriT Excel Worksheet Functions 5 November 15th 06 07:42 AM


All times are GMT +1. The time now is 06:55 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"