• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

sum cells formatted strikethrough

Bossie

New Member
Hi,

I want to sum a range (say a5:a20). But some values have been 'striked through' (done manually)
Is there a (non vba) way to sum all the values, except the 'striked through' cells?

2000
4000
6000
8000
sum= 14000
 
upload_2018-4-12_16-25-35.png

Another option without helper cells

1. Define Name >>

>> Name : SumCellsExceptStrikethrough

>> Refer to :

=SUM((1-GET.CELL(23,IF(1,+OFFSET($A$2:$A$100,ROW($A$2:$A$100)-MIN(ROW($A$2:$A$100)),))))*$A$2:$A$100)

2] In C2, enter :

=SumCellsExceptStrikethrough

p.s. Since Get.Cell is a Macro 4 function, the file should be saved in Excel .xlsm type

Regards
Bosco
 

Attachments

  • SumCellsExceptStrikethrough.xlsm
    11.2 KB · Views: 2
thx, Bosco
But, would you like to explain what this does? I mean, I copied it and it works, but I don't understand why:)...
The bit after "if(" is difficult to understand...

grtz
Hugo
 
Back
Top