Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Strike-throughs and equations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin - 20 May 2008 22:00 GMT
Hello people:
I need some advice:  When you have an equation to sum all the numbers of a
column, is there some way that when you use a strike-through (part of the
fonts), that the number that now has the strike-through can be not-included
in the summation or is this impossible?
IE: There is a list of 10 items in the sum equation, but you want to
'cross-off' 2 of them, but not remove them from the list, while at the same
time only sum the remaining 8.
Thanks.
Signature

Kevin

T. Valko - 20 May 2008 22:16 GMT
How about an easier alternative?

Use an adjacent column and mark values to exclude with a "X" :

..........A..........B
1....................10
2........X.........10
3........X.........20
4....................15
5....................10

=SUMIF(A1:A5,"<>X",B1:B5)

Signature

Biff
Microsoft Excel MVP

> Hello people:
> I need some advice:  When you have an equation to sum all the numbers of a
[quoted text clipped - 7 lines]
> time only sum the remaining 8.
> Thanks.
Gord Dibben - 20 May 2008 23:09 GMT
Public Function SumNoStrike(rngSumRange As Range) As Single
Dim rngCell As Range
For Each rngCell In rngSumRange
       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

>Hello people:
>I need some advice:  When you have an equation to sum all the numbers of a
[quoted text clipped - 5 lines]
>time only sum the remaining 8.
>Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.