Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Summ figures that are not struck-through

I have a column of figures and a separate cell that displays their sum. I'd
like to be able to exclude from the summing process, the figures in that
column that are struck-through. Can anyone suggest a way of doing this?

Thanks

Andy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Summ figures that are not struck-through

hi, Andy !

I have a column of figures and a separate cell that displays their sum.
I'd like to be able to exclude from the summing process, the figures in that column that are struck-through.
Can anyone suggest a way of doing this?


you need the same approach as for sum/count cells with certain color
do a google search and you will get a lot of sample "base" code

or, if the Font.Strikethrough property is set in a sort of format condition...
you could use the same condition to exclude these cells from the summing operation

however (AFAIK) there is no any event that can trapp a simple format-change in your cells :-(

if any doubts (or further information)... would you please comment ?
hth,
hector.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Summ figures that are not struck-through

Public Function SumNoStrike(rngSumRange As Range) As Single
Dim rngCell As Range
If IsNumeric(rngCell.Value) Then
If rngCell.Font.Strikethrough = False Then
SumNoStrike = SumNoStrike + rngCell.Value
End If
End If
Next rngCell
End Function

=SumNoStrike(range)


Gord Dibben MS Excel MVP

On Wed, 2 Jul 2008 16:18:00 -0700, AndyKC
wrote:

I have a column of figures and a separate cell that displays their sum. I'd
like to be able to exclude from the summing process, the figures in that
column that are struck-through. Can anyone suggest a way of doing this?

Thanks

Andy


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why are my row numbers/column letters struck through? David B. Excel Discussion (Misc queries) 1 June 29th 07 03:44 PM
summ aumont with interesection with two index.... sal21 Excel Discussion (Misc queries) 0 January 21st 07 10:01 AM
Rounding decimals in a summ Francesco Excel Discussion (Misc queries) 2 April 3rd 06 10:26 AM
Changing positive figures to minus figures Louise Excel Worksheet Functions 2 September 14th 05 10:05 AM
How can I use SUMIF and AND to test for two conditons before summ. Neal Excel Worksheet Functions 1 November 16th 04 09:06 PM


All times are GMT +1. The time now is 06:44 PM.

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

About Us

"It's about Microsoft Excel"