LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default total a column in which there are sum formula

to me you have to define your own function

Function sum_no_formulas(target As Range) As Double

For Each cell In target
If Not cell.HasFormula Then
sum_no_formulas = sum_no_formulas + cell.Value
End If
Next cell

End Function

this function will sum all cells in a range that include ANY formulae
(i.e. not only those with SUM function but ANY cells strating with =
sign)

check this one out and let me know if it works for you
 
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
Formula for average of a top 12 numbers in a column of 24 total nu Sean Excel Discussion (Misc queries) 2 August 17th 07 06:48 PM
FORMULA; ADD A COLUMN, SUBTRACT 1 CELL, TAKE THE TOTAL X 10% Teresea Excel Discussion (Misc queries) 4 October 12th 06 07:37 PM
Formula to add top 4 entries in a column and total them at the bot New2excel Excel Worksheet Functions 2 January 7th 06 05:18 AM
XL formula - total of row = total of column topaz Excel Worksheet Functions 2 March 17th 05 10:04 PM
Create an if-then formula in Excel to limit column total? Nancy M Excel Discussion (Misc queries) 2 February 13th 05 10:47 PM


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