Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello from Steved
Thankyou Dave it works as I require. Cheers "Dave Peterson" wrote: One mo MsgBox "SUM:" & Application.WorksheetFunction.Sum(Range("D:G")) If that doesn't help, maybe your values aren't numbers--they could be text. You may want to try David McRitchie's routine to clean the data: http://www.mvps.org/dmcritchie/excel/join.htm#trimall (look for "Sub Trimall()") Steved wrote: Hello from Steved Below will sum Col D How would I get it to sum D:G please Sub AddSum() r = Range("D65536").End(xlUp) MsgBox "SUM:" & _ Application.WorksheetFunction.Sum(Range("D1:D" & r)) End Sub Thankyou. -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
divide column(x) by column(y) to give column(x/y) in excel? | New Users to Excel | |||
Calculating column A * column B = Results in another column | Excel Worksheet Functions | |||
Referencing date column A & time column B to get info from column | Excel Discussion (Misc queries) | |||
Return text in Column A if Column B and Column K match | Excel Worksheet Functions | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) |